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 |
diffHtml(WikiPage sourcePage,
WikiPage targetPage,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
|
static List<WikiPage> |
filterOrphans(List<WikiPage> pages)
|
static String |
getAttachmentURLPrefix(String mainPath,
long plid,
long nodeId,
String title)
|
static String |
getEditPage(String format)
|
static String |
getEmailFromAddress(PortletPreferences preferences,
long companyId)
|
static String |
getEmailFromName(PortletPreferences preferences,
long companyId)
|
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 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 |
WikiUtil
public WikiUtil()
convert
public static String convert(WikiPage page,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
throws PageContentException,
WikiFormatException
- Throws:
PageContentException
WikiFormatException
diffHtml
public static String diffHtml(WikiPage sourcePage,
WikiPage targetPage,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
throws Exception
- Throws:
Exception
filterOrphans
public static List<WikiPage> filterOrphans(List<WikiPage> pages)
throws PortalException
- Throws:
PortalException
getAttachmentURLPrefix
public static String getAttachmentURLPrefix(String mainPath,
long plid,
long nodeId,
String title)
getEditPage
public static String getEditPage(String format)
getEmailFromAddress
public static String getEmailFromAddress(PortletPreferences preferences,
long companyId)
throws SystemException
- Throws:
SystemException
getEmailFromName
public static String getEmailFromName(PortletPreferences preferences,
long companyId)
throws SystemException
- Throws:
SystemException
getEmailPageAddedBody
public static String getEmailPageAddedBody(PortletPreferences preferences)
getEmailPageAddedEnabled
public static boolean getEmailPageAddedEnabled(PortletPreferences preferences)
getEmailPageAddedSignature
public static String getEmailPageAddedSignature(PortletPreferences preferences)
getEmailPageAddedSubjectPrefix
public static String getEmailPageAddedSubjectPrefix(PortletPreferences preferences)
getEmailPageUpdatedBody
public static String getEmailPageUpdatedBody(PortletPreferences preferences)
getEmailPageUpdatedEnabled
public static boolean getEmailPageUpdatedEnabled(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
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