com.liferay.portlet.wiki.util
Class WikiUtil

java.lang.Object
  extended by com.liferay.portlet.wiki.util.WikiUtil

public class WikiUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan, Jorge Ferrer

Field Summary
static java.lang.String POP_PORTLET_PREFIX
           
 
Constructor Summary
WikiUtil()
           
 
Method Summary
static java.lang.String convert(com.liferay.portlet.wiki.model.WikiPage page, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, java.lang.String attachmentURLPrefix)
           
static java.lang.String getEditPage(java.lang.String format)
           
static java.lang.String getEmailFromAddress(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailFromName(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailPageAddedBody(javax.portlet.PortletPreferences prefs)
           
static boolean getEmailPageAddedEnabled(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailPageAddedSignature(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailPageAddedSubjectPrefix(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailPageUpdatedBody(javax.portlet.PortletPreferences prefs)
           
static boolean getEmailPageUpdatedEnabled(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailPageUpdatedSignature(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailPageUpdatedSubjectPrefix(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getHelpPage(java.lang.String format)
           
static java.lang.String getHelpURL(java.lang.String format)
           
static java.util.Map<java.lang.String,java.lang.Boolean> getLinks(com.liferay.portlet.wiki.model.WikiPage page)
           
static java.lang.String getMailId(java.lang.String mx, long nodeId, long pageId)
           
static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(long groupId, java.lang.String[] visibleNodes, java.lang.String[] hiddenNodes, com.liferay.portal.security.permission.PermissionChecker permissionChecker)
           
static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(javax.portlet.RenderRequest renderRequest)
           
static java.lang.String processContent(java.lang.String content)
           
static boolean validate(long nodeId, java.lang.String content, java.lang.String format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POP_PORTLET_PREFIX

public static final java.lang.String POP_PORTLET_PREFIX
See Also:
Constant Field Values
Constructor Detail

WikiUtil

public WikiUtil()
Method Detail

convert

public static java.lang.String convert(com.liferay.portlet.wiki.model.WikiPage page,
                                       javax.portlet.PortletURL viewPageURL,
                                       javax.portlet.PortletURL editPageURL,
                                       java.lang.String attachmentURLPrefix)
                                throws com.liferay.portlet.wiki.PageContentException,
                                       com.liferay.portlet.wiki.WikiFormatException
Throws:
com.liferay.portlet.wiki.PageContentException
com.liferay.portlet.wiki.WikiFormatException

getEditPage

public static java.lang.String getEditPage(java.lang.String format)

getEmailFromAddress

public static java.lang.String getEmailFromAddress(javax.portlet.PortletPreferences prefs)

getEmailFromName

public static java.lang.String getEmailFromName(javax.portlet.PortletPreferences prefs)

getEmailPageAddedEnabled

public static boolean getEmailPageAddedEnabled(javax.portlet.PortletPreferences prefs)

getEmailPageAddedBody

public static java.lang.String getEmailPageAddedBody(javax.portlet.PortletPreferences prefs)

getEmailPageAddedSignature

public static java.lang.String getEmailPageAddedSignature(javax.portlet.PortletPreferences prefs)

getEmailPageAddedSubjectPrefix

public static java.lang.String getEmailPageAddedSubjectPrefix(javax.portlet.PortletPreferences prefs)

getEmailPageUpdatedEnabled

public static boolean getEmailPageUpdatedEnabled(javax.portlet.PortletPreferences prefs)

getEmailPageUpdatedBody

public static java.lang.String getEmailPageUpdatedBody(javax.portlet.PortletPreferences prefs)

getEmailPageUpdatedSignature

public static java.lang.String getEmailPageUpdatedSignature(javax.portlet.PortletPreferences prefs)

getEmailPageUpdatedSubjectPrefix

public static java.lang.String getEmailPageUpdatedSubjectPrefix(javax.portlet.PortletPreferences prefs)

getHelpPage

public static java.lang.String getHelpPage(java.lang.String format)

getHelpURL

public static java.lang.String getHelpURL(java.lang.String format)

getLinks

public static java.util.Map<java.lang.String,java.lang.Boolean> getLinks(com.liferay.portlet.wiki.model.WikiPage page)
                                                                  throws com.liferay.portlet.wiki.PageContentException
Throws:
com.liferay.portlet.wiki.PageContentException

getMailId

public static java.lang.String getMailId(java.lang.String mx,
                                         long nodeId,
                                         long pageId)

getNodes

public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(javax.portlet.RenderRequest renderRequest)
                                                                        throws com.liferay.portal.PortalException,
                                                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getNodes

public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(long groupId,
                                                                               java.lang.String[] visibleNodes,
                                                                               java.lang.String[] hiddenNodes,
                                                                               com.liferay.portal.security.permission.PermissionChecker permissionChecker)
                                                                        throws com.liferay.portal.PortalException,
                                                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

processContent

public static java.lang.String processContent(java.lang.String content)

validate

public static boolean validate(long nodeId,
                               java.lang.String content,
                               java.lang.String format)
                        throws com.liferay.portlet.wiki.WikiFormatException
Throws:
com.liferay.portlet.wiki.WikiFormatException