com.liferay.portlet.wiki.service
Class WikiPageLocalServiceUtil

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

public class WikiPageLocalServiceUtil
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 WikiPageLocalService 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:
WikiPageLocalService
Generated:

Constructor Summary
WikiPageLocalServiceUtil()
           
 
Method Summary
static WikiPage addPage(long userId, long nodeId, java.lang.String title, java.lang.String content, java.lang.String summary, boolean minorEdit, ServiceContext serviceContext)
           
static WikiPage addPage(java.lang.String uuid, long userId, long nodeId, java.lang.String title, double version, java.lang.String content, java.lang.String summary, boolean minorEdit, java.lang.String format, boolean head, java.lang.String parentTitle, java.lang.String redirectTitle, ServiceContext serviceContext)
           
static void addPageAttachment(long companyId, java.lang.String dirName, java.util.Date modifiedDate, java.lang.String fileName, java.io.InputStream inputStream)
           
static void addPageAttachments(long nodeId, java.lang.String title, java.util.List<ObjectValuePair<java.lang.String,byte[]>> files)
           
static void addPageResources(long nodeId, java.lang.String title, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addPageResources(long nodeId, java.lang.String title, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addPageResources(WikiPage page, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addPageResources(WikiPage page, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static WikiPage addWikiPage(WikiPage wikiPage)
           
static void changeParent(long userId, long nodeId, java.lang.String title, java.lang.String newParentTitle, ServiceContext serviceContext)
           
static WikiPage createWikiPage(long pageId)
           
static void deletePage(long nodeId, java.lang.String title)
           
static void deletePage(WikiPage page)
           
static void deletePageAttachment(long nodeId, java.lang.String title, java.lang.String fileName)
           
static void deletePages(long nodeId)
           
static void deleteWikiPage(long pageId)
           
static void deleteWikiPage(WikiPage wikiPage)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static long dynamicQueryCount(DynamicQuery dynamicQuery)
           
static java.util.List<WikiPage> getChildren(long nodeId, boolean head, java.lang.String parentTitle)
           
static WikiPage getDraftPage(long nodeId, java.lang.String title)
           
static java.util.List<WikiPage> getDraftPages(long userId, long nodeId, int start, int end)
           
static int getDraftPagesCount(long userId, long nodeId)
           
static java.util.List<WikiPage> getIncomingLinks(long nodeId, java.lang.String title)
           
static java.util.List<WikiPage> getNoAssetPages()
           
static java.util.List<WikiPage> getOrphans(long nodeId)
           
static java.util.List<WikiPage> getOutgoingLinks(long nodeId, java.lang.String title)
           
static WikiPage getPage(long resourcePrimKey)
           
static WikiPage getPage(long nodeId, java.lang.String title)
           
static WikiPage getPage(long nodeId, java.lang.String title, boolean head)
           
static WikiPage getPage(long nodeId, java.lang.String title, double version)
           
static WikiPageDisplay getPageDisplay(long nodeId, java.lang.String title, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, java.lang.String attachmentURLPrefix)
           
static java.util.List<WikiPage> getPages(long nodeId, boolean head, int start, int end)
           
static java.util.List<WikiPage> getPages(long nodeId, int start, int end)
           
static java.util.List<WikiPage> getPages(long resourcePrimKey, long nodeId, int status)
           
static java.util.List<WikiPage> getPages(long nodeId, java.lang.String title, boolean head, int start, int end)
           
static java.util.List<WikiPage> getPages(long nodeId, java.lang.String title, int start, int end)
           
static java.util.List<WikiPage> getPages(long nodeId, java.lang.String title, int start, int end, OrderByComparator obc)
           
static java.util.List<WikiPage> getPages(java.lang.String format)
           
static int getPagesCount(long nodeId)
           
static int getPagesCount(long nodeId, boolean head)
           
static int getPagesCount(long nodeId, java.lang.String title)
           
static int getPagesCount(long nodeId, java.lang.String title, boolean head)
           
static int getPagesCount(java.lang.String format)
           
static java.util.List<WikiPage> getRecentChanges(long nodeId, int start, int end)
           
static int getRecentChangesCount(long nodeId)
           
static WikiPageLocalService getService()
           
static WikiPage getWikiPage(long pageId)
           
static WikiPage getWikiPageByUuidAndGroupId(java.lang.String uuid, long groupId)
           
static java.util.List<WikiPage> getWikiPages(int start, int end)
           
static int getWikiPagesCount()
           
static boolean hasDraftPage(long nodeId, java.lang.String title)
           
static void movePage(long userId, long nodeId, java.lang.String title, java.lang.String newTitle, boolean strict, ServiceContext serviceContext)
           
static void movePage(long userId, long nodeId, java.lang.String title, java.lang.String newTitle, ServiceContext serviceContext)
           
static WikiPage revertPage(long userId, long nodeId, java.lang.String title, double version, ServiceContext serviceContext)
           
 void setService(WikiPageLocalService service)
           
static void subscribePage(long userId, long nodeId, java.lang.String title)
           
static void unsubscribePage(long userId, long nodeId, java.lang.String title)
           
static void updateAsset(long userId, WikiPage page, long[] assetCategoryIds, java.lang.String[] assetTagNames)
           
static WikiPage updatePage(long userId, 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, ServiceContext serviceContext)
           
static WikiPage updateStatus(long userId, long resourcePrimKey, int status, ServiceContext serviceContext)
           
static WikiPage updateStatus(long userId, WikiPage page, int status, ServiceContext serviceContext)
           
static WikiPage updateWikiPage(WikiPage wikiPage)
           
static WikiPage updateWikiPage(WikiPage wikiPage, boolean merge)
           
static void validateTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiPageLocalServiceUtil

public WikiPageLocalServiceUtil()
Method Detail

addWikiPage

public static WikiPage addWikiPage(WikiPage wikiPage)
                            throws SystemException
Throws:
SystemException

createWikiPage

public static WikiPage createWikiPage(long pageId)

deleteWikiPage

public static void deleteWikiPage(long pageId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteWikiPage

public static void deleteWikiPage(WikiPage wikiPage)
                           throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                                   throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                                          int start,
                                          int end)
                                   throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Throws:
SystemException

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Throws:
SystemException

getWikiPage

public static WikiPage getWikiPage(long pageId)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getWikiPageByUuidAndGroupId

public static WikiPage getWikiPageByUuidAndGroupId(java.lang.String uuid,
                                                   long groupId)
                                            throws PortalException,
                                                   SystemException
Throws:
PortalException
SystemException

getWikiPages

public static java.util.List<WikiPage> getWikiPages(int start,
                                                    int end)
                                             throws SystemException
Throws:
SystemException

getWikiPagesCount

public static int getWikiPagesCount()
                             throws SystemException
Throws:
SystemException

updateWikiPage

public static WikiPage updateWikiPage(WikiPage wikiPage)
                               throws SystemException
Throws:
SystemException

updateWikiPage

public static WikiPage updateWikiPage(WikiPage wikiPage,
                                      boolean merge)
                               throws SystemException
Throws:
SystemException

addPage

public static WikiPage addPage(long userId,
                               long nodeId,
                               java.lang.String title,
                               java.lang.String content,
                               java.lang.String summary,
                               boolean minorEdit,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

addPage

public static WikiPage addPage(java.lang.String uuid,
                               long userId,
                               long nodeId,
                               java.lang.String title,
                               double version,
                               java.lang.String content,
                               java.lang.String summary,
                               boolean minorEdit,
                               java.lang.String format,
                               boolean head,
                               java.lang.String parentTitle,
                               java.lang.String redirectTitle,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

addPageAttachment

public static void addPageAttachment(long companyId,
                                     java.lang.String dirName,
                                     java.util.Date modifiedDate,
                                     java.lang.String fileName,
                                     java.io.InputStream inputStream)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

addPageAttachments

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

addPageResources

public static void addPageResources(long nodeId,
                                    java.lang.String title,
                                    boolean addCommunityPermissions,
                                    boolean addGuestPermissions)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

addPageResources

public static void addPageResources(WikiPage page,
                                    boolean addCommunityPermissions,
                                    boolean addGuestPermissions)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

addPageResources

public static void addPageResources(long nodeId,
                                    java.lang.String title,
                                    java.lang.String[] communityPermissions,
                                    java.lang.String[] guestPermissions)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

addPageResources

public static void addPageResources(WikiPage page,
                                    java.lang.String[] communityPermissions,
                                    java.lang.String[] guestPermissions)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

changeParent

public static void changeParent(long userId,
                                long nodeId,
                                java.lang.String title,
                                java.lang.String newParentTitle,
                                ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deletePage

public static void deletePage(long nodeId,
                              java.lang.String title)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deletePage

public static void deletePage(WikiPage page)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deletePageAttachment

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

deletePages

public static void deletePages(long nodeId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getChildren

public static java.util.List<WikiPage> getChildren(long nodeId,
                                                   boolean head,
                                                   java.lang.String parentTitle)
                                            throws SystemException
Throws:
SystemException

getDraftPage

public static WikiPage getDraftPage(long nodeId,
                                    java.lang.String title)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getDraftPages

public static java.util.List<WikiPage> getDraftPages(long userId,
                                                     long nodeId,
                                                     int start,
                                                     int end)
                                              throws SystemException
Throws:
SystemException

getDraftPagesCount

public static int getDraftPagesCount(long userId,
                                     long nodeId)
                              throws SystemException
Throws:
SystemException

getIncomingLinks

public static java.util.List<WikiPage> getIncomingLinks(long nodeId,
                                                        java.lang.String title)
                                                 throws PortalException,
                                                        SystemException
Throws:
PortalException
SystemException

getNoAssetPages

public static java.util.List<WikiPage> getNoAssetPages()
                                                throws SystemException
Throws:
SystemException

getOrphans

public static java.util.List<WikiPage> getOrphans(long nodeId)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

getOutgoingLinks

public static java.util.List<WikiPage> getOutgoingLinks(long nodeId,
                                                        java.lang.String title)
                                                 throws PortalException,
                                                        SystemException
Throws:
PortalException
SystemException

getPage

public static WikiPage getPage(long resourcePrimKey)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getPage

public static WikiPage getPage(long nodeId,
                               java.lang.String title)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getPage

public static WikiPage getPage(long nodeId,
                               java.lang.String title,
                               boolean head)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getPage

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

getPageDisplay

public static WikiPageDisplay getPageDisplay(long nodeId,
                                             java.lang.String title,
                                             javax.portlet.PortletURL viewPageURL,
                                             javax.portlet.PortletURL editPageURL,
                                             java.lang.String attachmentURLPrefix)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getPages

public static java.util.List<WikiPage> getPages(long nodeId,
                                                int start,
                                                int end)
                                         throws SystemException
Throws:
SystemException

getPages

public static java.util.List<WikiPage> getPages(java.lang.String format)
                                         throws SystemException
Throws:
SystemException

getPages

public static java.util.List<WikiPage> getPages(long nodeId,
                                                java.lang.String title,
                                                int start,
                                                int end)
                                         throws SystemException
Throws:
SystemException

getPages

public static java.util.List<WikiPage> getPages(long nodeId,
                                                java.lang.String title,
                                                int start,
                                                int end,
                                                OrderByComparator obc)
                                         throws SystemException
Throws:
SystemException

getPages

public static java.util.List<WikiPage> getPages(long nodeId,
                                                boolean head,
                                                int start,
                                                int end)
                                         throws SystemException
Throws:
SystemException

getPages

public static java.util.List<WikiPage> getPages(long resourcePrimKey,
                                                long nodeId,
                                                int status)
                                         throws SystemException
Throws:
SystemException

getPages

public static java.util.List<WikiPage> getPages(long nodeId,
                                                java.lang.String title,
                                                boolean head,
                                                int start,
                                                int end)
                                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(long nodeId)
                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(long nodeId,
                                java.lang.String title)
                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(long nodeId,
                                boolean head)
                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(long nodeId,
                                java.lang.String title,
                                boolean head)
                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(java.lang.String format)
                         throws SystemException
Throws:
SystemException

getRecentChanges

public static java.util.List<WikiPage> getRecentChanges(long nodeId,
                                                        int start,
                                                        int end)
                                                 throws SystemException
Throws:
SystemException

getRecentChangesCount

public static int getRecentChangesCount(long nodeId)
                                 throws SystemException
Throws:
SystemException

hasDraftPage

public static boolean hasDraftPage(long nodeId,
                                   java.lang.String title)
                            throws SystemException
Throws:
SystemException

movePage

public static void movePage(long userId,
                            long nodeId,
                            java.lang.String title,
                            java.lang.String newTitle,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

movePage

public static void movePage(long userId,
                            long nodeId,
                            java.lang.String title,
                            java.lang.String newTitle,
                            boolean strict,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

revertPage

public static WikiPage revertPage(long userId,
                                  long nodeId,
                                  java.lang.String title,
                                  double version,
                                  ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

subscribePage

public static void subscribePage(long userId,
                                 long nodeId,
                                 java.lang.String title)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

unsubscribePage

public static void unsubscribePage(long userId,
                                   long nodeId,
                                   java.lang.String title)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

updateAsset

public static void updateAsset(long userId,
                               WikiPage page,
                               long[] assetCategoryIds,
                               java.lang.String[] assetTagNames)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updatePage

public static WikiPage updatePage(long userId,
                                  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,
                                  ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

updateStatus

public static WikiPage updateStatus(long userId,
                                    long resourcePrimKey,
                                    int status,
                                    ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

updateStatus

public static WikiPage updateStatus(long userId,
                                    WikiPage page,
                                    int status,
                                    ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

validateTitle

public static void validateTitle(java.lang.String title)
                          throws PortalException
Throws:
PortalException

getService

public static WikiPageLocalService getService()

setService

public void setService(WikiPageLocalService service)