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 |
decodeJSPWikiName(java.lang.String jspWikiName)
|
static java.lang.String |
diffHtml(com.liferay.portlet.wiki.model.WikiPage sourcePage,
com.liferay.portlet.wiki.model.WikiPage targetPage,
javax.portlet.PortletURL viewPageURL,
javax.portlet.PortletURL editPageURL,
java.lang.String attachmentURLPrefix)
|
static java.lang.String |
encodeJSPWikiContent(java.lang.String content)
|
static java.lang.String |
encodeJSPWikiName(java.lang.String name)
|
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 com.liferay.portlet.wiki.model.WikiNode |
getFirstNode(javax.portlet.PortletRequest portletRequest)
|
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<java.lang.String> |
getNodeNames(java.util.List<com.liferay.portlet.wiki.model.WikiNode> nodes)
|
static java.util.List<com.liferay.portlet.wiki.model.WikiNode> |
getNodes(java.util.List<com.liferay.portlet.wiki.model.WikiNode> nodes,
java.lang.String[] hiddenNodes,
com.liferay.portal.security.permission.PermissionChecker permissionChecker)
|
static java.util.List<com.liferay.portlet.wiki.model.WikiNode> |
orderNodes(java.util.List<com.liferay.portlet.wiki.model.WikiNode> nodes,
java.lang.String[] visibleNodeNames)
|
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
decodeJSPWikiName
public static java.lang.String decodeJSPWikiName(java.lang.String jspWikiName)
diffHtml
public static java.lang.String diffHtml(com.liferay.portlet.wiki.model.WikiPage sourcePage,
com.liferay.portlet.wiki.model.WikiPage targetPage,
javax.portlet.PortletURL viewPageURL,
javax.portlet.PortletURL editPageURL,
java.lang.String attachmentURLPrefix)
throws java.lang.Exception
- Throws:
java.lang.Exception
encodeJSPWikiContent
public static java.lang.String encodeJSPWikiContent(java.lang.String content)
encodeJSPWikiName
public static java.lang.String encodeJSPWikiName(java.lang.String name)
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)
getFirstNode
public static com.liferay.portlet.wiki.model.WikiNode getFirstNode(javax.portlet.PortletRequest portletRequest)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
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)
getNodeNames
public static java.util.List<java.lang.String> getNodeNames(java.util.List<com.liferay.portlet.wiki.model.WikiNode> nodes)
getNodes
public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(java.util.List<com.liferay.portlet.wiki.model.WikiNode> nodes,
java.lang.String[] hiddenNodes,
com.liferay.portal.security.permission.PermissionChecker permissionChecker)
orderNodes
public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> orderNodes(java.util.List<com.liferay.portlet.wiki.model.WikiNode> nodes,
java.lang.String[] visibleNodeNames)
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