com.liferay.portlet.wiki.util
Class WikiUtil
java.lang.Object
com.liferay.portlet.wiki.util.WikiUtil
public class WikiUtil
- extends Object
Method Summary |
static String |
convert(WikiPage page,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
|
static String |
decodeJSPWikiName(String jspWikiName)
|
static String |
diffHtml(WikiPage sourcePage,
WikiPage targetPage,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
|
static String |
encodeJSPWikiContent(String content)
|
static String |
encodeJSPWikiName(String name)
|
static String |
getEditPage(String format)
|
static String |
getEmailFromAddress(PortletPreferences preferences)
|
static String |
getEmailFromName(PortletPreferences preferences)
|
static String |
getEmailPageAddedBody(PortletPreferences preferences)
|
static boolean |
getEmailPageAddedEnabled(PortletPreferences preferences)
|
static String |
getEmailPageAddedSignature(PortletPreferences preferences)
|
static String |
getEmailPageAddedSubjectPrefix(PortletPreferences preferences)
|
static String |
getEmailPageUpdatedBody(PortletPreferences preferences)
|
static boolean |
getEmailPageUpdatedEnabled(PortletPreferences preferences)
|
static String |
getEmailPageUpdatedSignature(PortletPreferences preferences)
|
static String |
getEmailPageUpdatedSubjectPrefix(PortletPreferences preferences)
|
static WikiNode |
getFirstNode(PortletRequest portletRequest)
|
static String |
getHelpPage(String format)
|
static String |
getHelpURL(String format)
|
static Map<String,Boolean> |
getLinks(WikiPage page)
|
static String |
getMailId(String mx,
long nodeId,
long pageId)
|
static List<String> |
getNodeNames(List<WikiNode> nodes)
|
static List<WikiNode> |
getNodes(List<WikiNode> nodes,
String[] hiddenNodes,
PermissionChecker permissionChecker)
|
static OrderByComparator |
getPageOrderByComparator(String orderByCol,
String orderByType)
|
static List<WikiNode> |
orderNodes(List<WikiNode> nodes,
String[] visibleNodeNames)
|
static String |
processContent(String content)
|
static boolean |
validate(long nodeId,
String content,
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 String POP_PORTLET_PREFIX
- See Also:
- Constant Field Values
WikiUtil
public WikiUtil()
convert
public static String convert(WikiPage page,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
throws PageContentException,
WikiFormatException
- Throws:
PageContentException
WikiFormatException
decodeJSPWikiName
public static String decodeJSPWikiName(String jspWikiName)
diffHtml
public static String diffHtml(WikiPage sourcePage,
WikiPage targetPage,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
throws Exception
- Throws:
Exception
encodeJSPWikiContent
public static String encodeJSPWikiContent(String content)
encodeJSPWikiName
public static String encodeJSPWikiName(String name)
getEditPage
public static String getEditPage(String format)
getEmailFromAddress
public static String getEmailFromAddress(PortletPreferences preferences)
getEmailFromName
public static String getEmailFromName(PortletPreferences preferences)
getEmailPageAddedEnabled
public static boolean getEmailPageAddedEnabled(PortletPreferences preferences)
getEmailPageAddedBody
public static String getEmailPageAddedBody(PortletPreferences preferences)
getEmailPageAddedSignature
public static String getEmailPageAddedSignature(PortletPreferences preferences)
getEmailPageAddedSubjectPrefix
public static String getEmailPageAddedSubjectPrefix(PortletPreferences preferences)
getEmailPageUpdatedEnabled
public static boolean getEmailPageUpdatedEnabled(PortletPreferences preferences)
getEmailPageUpdatedBody
public static String getEmailPageUpdatedBody(PortletPreferences preferences)
getEmailPageUpdatedSignature
public static String getEmailPageUpdatedSignature(PortletPreferences preferences)
getEmailPageUpdatedSubjectPrefix
public static String getEmailPageUpdatedSubjectPrefix(PortletPreferences preferences)
getFirstNode
public static WikiNode getFirstNode(PortletRequest portletRequest)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getHelpPage
public static String getHelpPage(String format)
getHelpURL
public static String getHelpURL(String format)
getLinks
public static Map<String,Boolean> getLinks(WikiPage page)
throws PageContentException
- Throws:
PageContentException
getMailId
public static String getMailId(String mx,
long nodeId,
long pageId)
getNodeNames
public static List<String> getNodeNames(List<WikiNode> nodes)
getNodes
public static List<WikiNode> getNodes(List<WikiNode> nodes,
String[] hiddenNodes,
PermissionChecker permissionChecker)
getPageOrderByComparator
public static OrderByComparator getPageOrderByComparator(String orderByCol,
String orderByType)
orderNodes
public static List<WikiNode> orderNodes(List<WikiNode> nodes,
String[] visibleNodeNames)
processContent
public static String processContent(String content)
validate
public static boolean validate(long nodeId,
String content,
String format)
throws WikiFormatException
- Throws:
WikiFormatException