com.liferay.portlet.wiki.util
Class WikiUtil
java.lang.Object
com.liferay.portlet.wiki.util.WikiUtil
public class WikiUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan, Jorge Ferrer
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 preferences)
|
static java.lang.String |
getEmailFromName(javax.portlet.PortletPreferences preferences)
|
static java.lang.String |
getEmailPageAddedBody(javax.portlet.PortletPreferences preferences)
|
static boolean |
getEmailPageAddedEnabled(javax.portlet.PortletPreferences preferences)
|
static java.lang.String |
getEmailPageAddedSignature(javax.portlet.PortletPreferences preferences)
|
static java.lang.String |
getEmailPageAddedSubjectPrefix(javax.portlet.PortletPreferences preferences)
|
static java.lang.String |
getEmailPageUpdatedBody(javax.portlet.PortletPreferences preferences)
|
static boolean |
getEmailPageUpdatedEnabled(javax.portlet.PortletPreferences preferences)
|
static java.lang.String |
getEmailPageUpdatedSignature(javax.portlet.PortletPreferences preferences)
|
static java.lang.String |
getEmailPageUpdatedSubjectPrefix(javax.portlet.PortletPreferences preferences)
|
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 |
POP_PORTLET_PREFIX
public static final java.lang.String POP_PORTLET_PREFIX
- See Also:
- Constant Field Values
WikiUtil
public WikiUtil()
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 preferences)
getEmailFromName
public static java.lang.String getEmailFromName(javax.portlet.PortletPreferences preferences)
getEmailPageAddedEnabled
public static boolean getEmailPageAddedEnabled(javax.portlet.PortletPreferences preferences)
getEmailPageAddedBody
public static java.lang.String getEmailPageAddedBody(javax.portlet.PortletPreferences preferences)
getEmailPageAddedSignature
public static java.lang.String getEmailPageAddedSignature(javax.portlet.PortletPreferences preferences)
getEmailPageAddedSubjectPrefix
public static java.lang.String getEmailPageAddedSubjectPrefix(javax.portlet.PortletPreferences preferences)
getEmailPageUpdatedEnabled
public static boolean getEmailPageUpdatedEnabled(javax.portlet.PortletPreferences preferences)
getEmailPageUpdatedBody
public static java.lang.String getEmailPageUpdatedBody(javax.portlet.PortletPreferences preferences)
getEmailPageUpdatedSignature
public static java.lang.String getEmailPageUpdatedSignature(javax.portlet.PortletPreferences preferences)
getEmailPageUpdatedSubjectPrefix
public static java.lang.String getEmailPageUpdatedSubjectPrefix(javax.portlet.PortletPreferences preferences)
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