com.liferay.portlet.wiki.service
Class WikiPageServiceUtil

java.lang.Object
  extended by com.liferay.portlet.wiki.service.WikiPageServiceUtil

public class WikiPageServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the WikiPageService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

Author:
Brian Wing Shun Chan
See Also:
WikiPageService

Constructor Summary
WikiPageServiceUtil()
           
 
Method Summary
static WikiPage addPage(long nodeId, java.lang.String title, java.lang.String content, java.lang.String summary, boolean minorEdit, javax.portlet.PortletPreferences prefs, ThemeDisplay themeDisplay)
           
static WikiPage addPage(long nodeId, java.lang.String title, java.lang.String content, java.lang.String summary, boolean minorEdit, java.lang.String format, java.lang.String parentTitle, java.lang.String redirectTitle, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, ThemeDisplay themeDisplay)
           
static void addPageAttachments(long nodeId, java.lang.String title, java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files)
           
static void changeParent(long nodeId, java.lang.String title, java.lang.String newParentTitle, javax.portlet.PortletPreferences prefs, ThemeDisplay themeDisplay)
           
static void deletePage(long nodeId, java.lang.String title)
           
static void deletePageAttachment(long nodeId, java.lang.String title, java.lang.String fileName)
           
static java.util.List<WikiPage> getNodePages(long nodeId, int max)
           
static java.lang.String getNodePagesRSS(long nodeId, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL)
           
static WikiPage getPage(long nodeId, java.lang.String title)
           
static WikiPage getPage(long nodeId, java.lang.String title, double version)
           
static java.lang.String getPagesRSS(long companyId, long nodeId, java.lang.String title, int max, java.lang.String type, double version, java.lang.String displayStyle, java.lang.String feedURL, java.lang.String entryURL, java.util.Locale locale)
           
static WikiPageService getService()
           
static void movePage(long nodeId, java.lang.String title, java.lang.String newTitle, javax.portlet.PortletPreferences prefs, ThemeDisplay themeDisplay)
           
static WikiPage revertPage(long nodeId, java.lang.String title, double version, javax.portlet.PortletPreferences prefs, ThemeDisplay themeDisplay)
           
 void setService(WikiPageService service)
           
static void subscribePage(long nodeId, java.lang.String title)
           
static void unsubscribePage(long nodeId, java.lang.String title)
           
static WikiPage updatePage(long nodeId, java.lang.String title, double version, java.lang.String content, java.lang.String summary, boolean minorEdit, java.lang.String format, java.lang.String parentTitle, java.lang.String redirectTitle, java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs, ThemeDisplay themeDisplay)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiPageServiceUtil

public WikiPageServiceUtil()
Method Detail

addPage

public static WikiPage addPage(long nodeId,
                               java.lang.String title,
                               java.lang.String content,
                               java.lang.String summary,
                               boolean minorEdit,
                               javax.portlet.PortletPreferences prefs,
                               ThemeDisplay themeDisplay)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException,
                               java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

addPage

public static WikiPage addPage(long nodeId,
                               java.lang.String title,
                               java.lang.String content,
                               java.lang.String summary,
                               boolean minorEdit,
                               java.lang.String format,
                               java.lang.String parentTitle,
                               java.lang.String redirectTitle,
                               java.lang.String[] tagsEntries,
                               javax.portlet.PortletPreferences prefs,
                               ThemeDisplay themeDisplay)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException,
                               java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

addPageAttachments

public static void addPageAttachments(long nodeId,
                                      java.lang.String title,
                                      java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,byte[]>> files)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException,
                                      java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

changeParent

public static void changeParent(long nodeId,
                                java.lang.String title,
                                java.lang.String newParentTitle,
                                javax.portlet.PortletPreferences prefs,
                                ThemeDisplay themeDisplay)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException,
                                java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

deletePage

public static void deletePage(long nodeId,
                              java.lang.String title)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException,
                              java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

deletePageAttachment

public static void deletePageAttachment(long nodeId,
                                        java.lang.String title,
                                        java.lang.String fileName)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException,
                                        java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getNodePages

public static java.util.List<WikiPage> getNodePages(long nodeId,
                                                    int max)
                                             throws com.liferay.portal.PortalException,
                                                    com.liferay.portal.SystemException,
                                                    java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getNodePagesRSS

public static java.lang.String getNodePagesRSS(long nodeId,
                                               int max,
                                               java.lang.String type,
                                               double version,
                                               java.lang.String displayStyle,
                                               java.lang.String feedURL,
                                               java.lang.String entryURL)
                                        throws com.liferay.portal.PortalException,
                                               com.liferay.portal.SystemException,
                                               java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getPage

public static WikiPage getPage(long nodeId,
                               java.lang.String title)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException,
                               java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getPage

public static WikiPage getPage(long nodeId,
                               java.lang.String title,
                               double version)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException,
                               java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getPagesRSS

public static java.lang.String getPagesRSS(long companyId,
                                           long nodeId,
                                           java.lang.String title,
                                           int max,
                                           java.lang.String type,
                                           double version,
                                           java.lang.String displayStyle,
                                           java.lang.String feedURL,
                                           java.lang.String entryURL,
                                           java.util.Locale locale)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException,
                                           java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

movePage

public static void movePage(long nodeId,
                            java.lang.String title,
                            java.lang.String newTitle,
                            javax.portlet.PortletPreferences prefs,
                            ThemeDisplay themeDisplay)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException,
                            java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

revertPage

public static WikiPage revertPage(long nodeId,
                                  java.lang.String title,
                                  double version,
                                  javax.portlet.PortletPreferences prefs,
                                  ThemeDisplay themeDisplay)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException,
                                  java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

subscribePage

public static void subscribePage(long nodeId,
                                 java.lang.String title)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException,
                                 java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

unsubscribePage

public static void unsubscribePage(long nodeId,
                                   java.lang.String title)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException,
                                   java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

updatePage

public static WikiPage updatePage(long nodeId,
                                  java.lang.String title,
                                  double version,
                                  java.lang.String content,
                                  java.lang.String summary,
                                  boolean minorEdit,
                                  java.lang.String format,
                                  java.lang.String parentTitle,
                                  java.lang.String redirectTitle,
                                  java.lang.String[] tagsEntries,
                                  javax.portlet.PortletPreferences prefs,
                                  ThemeDisplay themeDisplay)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException,
                                  java.rmi.RemoteException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException

getService

public static WikiPageService getService()

setService

public void setService(WikiPageService service)