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 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 boolean |
isLinkedTo(com.liferay.portlet.wiki.model.WikiPage page,
java.lang.String title)
|
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 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)
throws java.io.IOException
- Throws:
java.io.IOException
getEmailPageAddedSignature
public static java.lang.String getEmailPageAddedSignature(javax.portlet.PortletPreferences prefs)
throws java.io.IOException
- Throws:
java.io.IOException
getEmailPageAddedSubjectPrefix
public static java.lang.String getEmailPageAddedSubjectPrefix(javax.portlet.PortletPreferences prefs)
throws java.io.IOException
- Throws:
java.io.IOException
getEmailPageUpdatedEnabled
public static boolean getEmailPageUpdatedEnabled(javax.portlet.PortletPreferences prefs)
getEmailPageUpdatedBody
public static java.lang.String getEmailPageUpdatedBody(javax.portlet.PortletPreferences prefs)
throws java.io.IOException
- Throws:
java.io.IOException
getEmailPageUpdatedSignature
public static java.lang.String getEmailPageUpdatedSignature(javax.portlet.PortletPreferences prefs)
throws java.io.IOException
- Throws:
java.io.IOException
getEmailPageUpdatedSubjectPrefix
public static java.lang.String getEmailPageUpdatedSubjectPrefix(javax.portlet.PortletPreferences prefs)
throws java.io.IOException
- Throws:
java.io.IOException
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,
com.liferay.portlet.wiki.WikiFormatException
- Throws:
com.liferay.portlet.wiki.PageContentException
com.liferay.portlet.wiki.WikiFormatException
isLinkedTo
public static boolean isLinkedTo(com.liferay.portlet.wiki.model.WikiPage page,
java.lang.String title)
throws com.liferay.portlet.wiki.PageContentException,
com.liferay.portlet.wiki.WikiFormatException
- Throws:
com.liferay.portlet.wiki.PageContentException
com.liferay.portlet.wiki.WikiFormatException
getMailId
public static java.lang.String getMailId(java.lang.String mx,
long nodeId,
long pageId)
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