com.liferay.portlet.wiki.service
Interface WikiPageLocalService

All Known Implementing Classes:
WikiPageLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface WikiPageLocalService

View Source

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

This interface defines the service. The default implementation is com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
WikiPageLocalServiceUtil
Generated:

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

Method Detail

addWikiPage

WikiPage addWikiPage(WikiPage wikiPage)
                     throws SystemException
Throws:
SystemException

createWikiPage

WikiPage createWikiPage(long pageId)

deleteWikiPage

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

deleteWikiPage

void deleteWikiPage(WikiPage wikiPage)
                    throws SystemException
Throws:
SystemException

dynamicQuery

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

dynamicQuery

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

dynamicQuery

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

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getWikiPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage getWikiPage(long pageId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getWikiPageByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage getWikiPageByUuidAndGroupId(java.lang.String uuid,
                                                                              long groupId)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

getWikiPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getWikiPages(int start,
                                                                               int end)
                                      throws SystemException
Throws:
SystemException

getWikiPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getWikiPagesCount()
                      throws SystemException
Throws:
SystemException

updateWikiPage

WikiPage updateWikiPage(WikiPage wikiPage)
                        throws SystemException
Throws:
SystemException

updateWikiPage

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

addPage

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

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

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

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

addPageResources

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

addPageResources

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

addPageResources

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

addPageResources

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

changeParent

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

deletePage

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

deletePage

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

deletePageAttachment

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

deletePages

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

getChildren

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getChildren(long nodeId,
                                                                              boolean head,
                                                                              java.lang.String parentTitle)
                                     throws SystemException
Throws:
SystemException

getDraftPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage getDraftPage(long nodeId,
                                                               java.lang.String title)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getDraftPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getDraftPages(long userId,
                                                                                long nodeId,
                                                                                int start,
                                                                                int end)
                                       throws SystemException
Throws:
SystemException

getDraftPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getDraftPagesCount(long userId,
                                                                long nodeId)
                       throws SystemException
Throws:
SystemException

getIncomingLinks

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getIncomingLinks(long nodeId,
                                                                                   java.lang.String title)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getNoAssetPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getNoAssetPages()
                                         throws SystemException
Throws:
SystemException

getOrphans

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getOrphans(long nodeId)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getOutgoingLinks

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getOutgoingLinks(long nodeId,
                                                                                   java.lang.String title)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getPage

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

getPage

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

getPage

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

getPage

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

getPageDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getPages(long nodeId,
                                                                           int start,
                                                                           int end)
                                  throws SystemException
Throws:
SystemException

getPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getPages(java.lang.String format)
                                  throws SystemException
Throws:
SystemException

getPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getPages(long nodeId,
                                                                           java.lang.String title,
                                                                           int start,
                                                                           int end)
                                  throws SystemException
Throws:
SystemException

getPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getPages(long nodeId,
                                                                           java.lang.String title,
                                                                           int start,
                                                                           int end,
                                                                           OrderByComparator obc)
                                  throws SystemException
Throws:
SystemException

getPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getPages(long nodeId,
                                                                           boolean head,
                                                                           int start,
                                                                           int end)
                                  throws SystemException
Throws:
SystemException

getPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getPages(long resourcePrimKey,
                                                                           long nodeId,
                                                                           int status)
                                  throws SystemException
Throws:
SystemException

getPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getPages(long nodeId,
                                                                           java.lang.String title,
                                                                           boolean head,
                                                                           int start,
                                                                           int end)
                                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(long nodeId)
                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(long nodeId,
                                                           java.lang.String title)
                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(long nodeId,
                                                           boolean head)
                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(long nodeId,
                                                           java.lang.String title,
                                                           boolean head)
                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(java.lang.String format)
                  throws SystemException
Throws:
SystemException

getRecentChanges

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<WikiPage> getRecentChanges(long nodeId,
                                                                                   int start,
                                                                                   int end)
                                          throws SystemException
Throws:
SystemException

getRecentChangesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getRecentChangesCount(long nodeId)
                          throws SystemException
Throws:
SystemException

hasDraftPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasDraftPage(long nodeId,
                                                              java.lang.String title)
                     throws SystemException
Throws:
SystemException

movePage

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

movePage

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

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

subscribePage

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

unsubscribePage

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

updateAsset

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

updatePage

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

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

updateStatus

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

validateTitle

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