Liferay 6.2-ce-ga5

com.liferay.portlet.wiki.util
Class WikiUtil

java.lang.Object
  extended by com.liferay.portlet.wiki.util.WikiUtil

public class WikiUtil
extends Object


Constructor Summary
WikiUtil()
           
 
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 String escapeName(String name)
           
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 getEmailPageAddedSubject(PortletPreferences preferences)
           
static String getEmailPageUpdatedBody(PortletPreferences preferences)
           
static boolean getEmailPageUpdatedEnabled(PortletPreferences preferences)
           
static String getEmailPageUpdatedSignature(PortletPreferences preferences)
           
static String getEmailPageUpdatedSubject(PortletPreferences preferences)
           
static List<Object> getEntries(Hits hits)
           
static WikiNode getFirstNode(PortletRequest portletRequest)
           
static String getFormattedContent(RenderRequest renderRequest, RenderResponse renderResponse, WikiPage wikiPage, PortletURL viewPageURL, PortletURL editPageURL, String title, boolean preview)
           
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 String unescapeName(String name)
           
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
 

Constructor Detail

WikiUtil

public WikiUtil()
Method Detail

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

escapeName

public static String escapeName(String name)

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)

getEmailPageAddedSubject

public static String getEmailPageAddedSubject(PortletPreferences preferences)

getEmailPageUpdatedBody

public static String getEmailPageUpdatedBody(PortletPreferences preferences)

getEmailPageUpdatedEnabled

public static boolean getEmailPageUpdatedEnabled(PortletPreferences preferences)

getEmailPageUpdatedSignature

public static String getEmailPageUpdatedSignature(PortletPreferences preferences)

getEmailPageUpdatedSubject

public static String getEmailPageUpdatedSubject(PortletPreferences preferences)

getEntries

public static List<Object> getEntries(Hits hits)

getFirstNode

public static WikiNode getFirstNode(PortletRequest portletRequest)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getFormattedContent

public static String getFormattedContent(RenderRequest renderRequest,
                                         RenderResponse renderResponse,
                                         WikiPage wikiPage,
                                         PortletURL viewPageURL,
                                         PortletURL editPageURL,
                                         String title,
                                         boolean preview)
                                  throws Exception
Throws:
Exception

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)

unescapeName

public static String unescapeName(String name)

validate

public static boolean validate(long nodeId,
                               String content,
                               String format)
                        throws WikiFormatException
Throws:
WikiFormatException

Liferay 6.2-ce-ga5