Liferay 7.0-ce-m3

com.liferay.portlet.wiki.service
Class WikiPageLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.wiki.service.WikiPageLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<WikiPageLocalService>, WikiPageLocalService

@ProviderType
public class WikiPageLocalServiceWrapper
extends Object
implements WikiPageLocalService, ServiceWrapper<WikiPageLocalService>

Provides a wrapper for WikiPageLocalService.

See Also:
WikiPageLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
WikiPageLocalServiceWrapper(WikiPageLocalService wikiPageLocalService)
           
 
Method Summary
 WikiPage addPage(long userId, long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, boolean head, String parentTitle, String redirectTitle, ServiceContext serviceContext)
           
 WikiPage addPage(long userId, long nodeId, String title, String content, String summary, boolean minorEdit, ServiceContext serviceContext)
           
 void addPageAttachment(long userId, long nodeId, String title, String fileName, File file, String mimeType)
           
 void addPageAttachment(long userId, long nodeId, String title, String fileName, InputStream inputStream, String mimeType)
           
 void addPageAttachments(long userId, long nodeId, String title, List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
           
 void addPageResources(long nodeId, String title, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addPageResources(long nodeId, String title, String[] groupPermissions, String[] guestPermissions)
           
 void addPageResources(WikiPage page, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addPageResources(WikiPage page, String[] groupPermissions, String[] guestPermissions)
           
 void addTempFileEntry(long groupId, long userId, String folderName, String fileName, InputStream inputStream, String mimeType)
           
 void addTempPageAttachment(long groupId, long userId, String fileName, String tempFolderName, InputStream inputStream, String mimeType)
          Deprecated. As of 7.0.0 replaced by addTempFileEntry(long, long, String, String, InputStream, String)
 WikiPage addWikiPage(WikiPage wikiPage)
          Adds the wiki page to the database.
 void changeNode(long userId, long nodeId, String title, long newNodeId, ServiceContext serviceContext)
           
 WikiPage changeParent(long userId, long nodeId, String title, String newParentTitle, ServiceContext serviceContext)
           
 void copyPageAttachments(long userId, long templateNodeId, String templateTitle, long nodeId, String title)
           
 WikiPage createWikiPage(long pageId)
          Creates a new wiki page with the primary key.
 void deletePage(long nodeId, String title)
           
 void deletePage(long nodeId, String title, double version)
          Deprecated. As of 6.2.0 replaced by discardDraft(long, String, double)
 void deletePage(WikiPage page)
           
 void deletePageAttachment(long nodeId, String title, String fileName)
           
 void deletePageAttachments(long nodeId, String title)
           
 void deletePages(long nodeId)
           
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 void deleteTempFileEntry(long groupId, long userId, String folderName, String fileName)
           
 void deleteTrashPageAttachments(long nodeId, String title)
           
 WikiPage deleteWikiPage(long pageId)
          Deletes the wiki page with the primary key from the database.
 WikiPage deleteWikiPage(WikiPage wikiPage)
          Deletes the wiki page from the database.
 void discardDraft(long nodeId, String title, double version)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 WikiPage fetchLatestPage(long resourcePrimKey, int status, boolean preferApproved)
           
 WikiPage fetchLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved)
           
 WikiPage fetchLatestPage(long nodeId, String title, int status, boolean preferApproved)
           
 WikiPage fetchPage(long resourcePrimKey)
           
 WikiPage fetchPage(long nodeId, String title)
           
 WikiPage fetchPage(long nodeId, String title, double version)
           
 WikiPage fetchWikiPage(long pageId)
           
 WikiPage fetchWikiPageByUuidAndGroupId(String uuid, long groupId)
          Returns the wiki page matching the UUID and group.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle)
           
 List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle, int status)
           
 List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle, int start, int end)
           
 int getChildrenCount(long nodeId, boolean head, String parentTitle)
           
 int getChildrenCount(long nodeId, boolean head, String parentTitle, int status)
           
 List<WikiPage> getDependentPages(long nodeId, boolean head, String title, int status)
           
 WikiPage getDraftPage(long nodeId, String title)
           
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 List<WikiPage> getIncomingLinks(long nodeId, String title)
           
 WikiPage getLatestPage(long resourcePrimKey, int status, boolean preferApproved)
           
 WikiPage getLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved)
           
 WikiPage getLatestPage(long nodeId, String title, int status, boolean preferApproved)
           
 List<WikiPage> getNoAssetPages()
           
 List<WikiPage> getOrphans(long nodeId)
           
 List<WikiPage> getOutgoingLinks(long nodeId, String title)
           
 WikiPage getPage(long resourcePrimKey)
           
 WikiPage getPage(long resourcePrimKey, Boolean head)
           
 WikiPage getPage(long nodeId, String title)
           
 WikiPage getPage(long nodeId, String title, Boolean head)
           
 WikiPage getPage(long nodeId, String title, double version)
           
 WikiPage getPageByPageId(long pageId)
           
 WikiPageDisplay getPageDisplay(long nodeId, String title, PortletURL viewPageURL, PortletURL editPageURL, String attachmentURLPrefix)
           
 WikiPageDisplay getPageDisplay(WikiPage page, PortletURL viewPageURL, PortletURL editPageURL, String attachmentURLPrefix)
           
 List<WikiPage> getPages(long nodeId, boolean head, int start, int end)
           
 List<WikiPage> getPages(long nodeId, boolean head, int status, int start, int end)
           
 List<WikiPage> getPages(long nodeId, boolean head, int status, int start, int end, OrderByComparator<WikiPage> obc)
           
 List<WikiPage> getPages(long nodeId, boolean head, int start, int end, OrderByComparator<WikiPage> obc)
           
 List<WikiPage> getPages(long nodeId, int start, int end)
           
 List<WikiPage> getPages(long nodeId, int start, int end, OrderByComparator<WikiPage> obc)
           
 List<WikiPage> getPages(long resourcePrimKey, long nodeId, int status)
           
 List<WikiPage> getPages(long userId, long nodeId, int status, int start, int end)
           
 List<WikiPage> getPages(long nodeId, String title, boolean head, int start, int end)
           
 List<WikiPage> getPages(long nodeId, String title, int start, int end)
           
 List<WikiPage> getPages(long nodeId, String title, int start, int end, OrderByComparator<WikiPage> obc)
           
 List<WikiPage> getPages(String format)
           
 int getPagesCount(long nodeId)
           
 int getPagesCount(long nodeId, boolean head)
           
 int getPagesCount(long nodeId, boolean head, int status)
           
 int getPagesCount(long nodeId, int status)
           
 int getPagesCount(long userId, long nodeId, int status)
           
 int getPagesCount(long nodeId, String title)
           
 int getPagesCount(long nodeId, String title, boolean head)
           
 int getPagesCount(String format)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 WikiPage getPreviousVersionPage(WikiPage page)
           
 List<WikiPage> getRecentChanges(long nodeId, int start, int end)
          Deprecated. As of 6.2.0, replaced by getRecentChanges(long, long, int, int)
 List<WikiPage> getRecentChanges(long groupId, long nodeId, int start, int end)
           
 int getRecentChangesCount(long nodeId)
          Deprecated. As of 6.2.0, replaced by getRecentChangesCount(long, long)
 int getRecentChangesCount(long groupId, long nodeId)
           
 List<WikiPage> getRedirectPages(long nodeId, boolean head, String redirectTitle, int status)
           
 String[] getTempFileNames(long groupId, long userId, String folderName)
           
 WikiPage getWikiPage(long pageId)
          Returns the wiki page with the primary key.
 WikiPage getWikiPageByUuidAndGroupId(String uuid, long groupId)
          Returns the wiki page matching the UUID and group.
 List<WikiPage> getWikiPages(int start, int end)
          Returns a range of all the wiki pages.
 List<WikiPage> getWikiPagesByUuidAndCompanyId(String uuid, long companyId)
          Returns all the wiki pages matching the UUID and company.
 List<WikiPage> getWikiPagesByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<WikiPage> orderByComparator)
          Returns a range of wiki pages matching the UUID and company.
 int getWikiPagesCount()
          Returns the number of wiki pages.
 WikiPageLocalService getWrappedService()
           
 WikiPageLocalService getWrappedWikiPageLocalService()
          Deprecated. As of 6.1.0, replaced by getWrappedService()
 boolean hasDraftPage(long nodeId, String title)
           
 void moveDependentToTrash(WikiPage page, long trashEntryId)
           
 void movePage(long userId, long nodeId, String title, String newTitle, boolean strict, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by renamePage(long, long, String, String, boolean, ServiceContext)
 void movePage(long userId, long nodeId, String title, String newTitle, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by renamePage(long, long, String, String, ServiceContext)
 FileEntry movePageAttachmentToTrash(long userId, long nodeId, String title, String fileName)
           
 WikiPage movePageFromTrash(long userId, long nodeId, String title, long newNodeId, String newParentTitle)
           
 WikiPage movePageFromTrash(long userId, long nodeId, String title, String newParentTitle, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by movePageFromTrash(long, long, String, long, String) *
 WikiPage movePageToTrash(long userId, long nodeId, String title)
           
 WikiPage movePageToTrash(long userId, long nodeId, String title, double version)
           
 WikiPage movePageToTrash(long userId, WikiPage page)
           
 void renamePage(long userId, long nodeId, String title, String newTitle, boolean strict, ServiceContext serviceContext)
           
 void renamePage(long userId, long nodeId, String title, String newTitle, ServiceContext serviceContext)
           
 void restorePageAttachmentFromTrash(long userId, long nodeId, String title, String fileName)
           
 void restorePageFromTrash(long userId, WikiPage page)
           
 WikiPage revertPage(long userId, long nodeId, String title, double version, ServiceContext serviceContext)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedService(WikiPageLocalService wikiPageLocalService)
           
 void setWrappedWikiPageLocalService(WikiPageLocalService wikiPageLocalService)
          Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.wiki.service.WikiPageLocalService)
 void subscribePage(long userId, long nodeId, String title)
           
 void unsubscribePage(long userId, long nodeId, String title)
           
 void updateAsset(long userId, WikiPage page, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
 WikiPage updatePage(long userId, long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, ServiceContext serviceContext)
           
 WikiPage updateStatus(long userId, long resourcePrimKey, int status, ServiceContext serviceContext)
           
 WikiPage updateStatus(long userId, WikiPage page, int status, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateStatus(long, WikiPage, int, ServiceContext, Map)
 WikiPage updateStatus(long userId, WikiPage page, int status, ServiceContext serviceContext, Map<String,Serializable> workflowContext)
           
 WikiPage updateWikiPage(WikiPage wikiPage)
          Updates the wiki page in the database or adds it if it does not yet exist.
 void validateTitle(String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiPageLocalServiceWrapper

public WikiPageLocalServiceWrapper(WikiPageLocalService wikiPageLocalService)
Method Detail

addPage

public WikiPage addPage(long userId,
                        long nodeId,
                        String title,
                        String content,
                        String summary,
                        boolean minorEdit,
                        ServiceContext serviceContext)
                 throws PortalException
Specified by:
addPage in interface WikiPageLocalService
Throws:
PortalException

addPage

public WikiPage addPage(long userId,
                        long nodeId,
                        String title,
                        double version,
                        String content,
                        String summary,
                        boolean minorEdit,
                        String format,
                        boolean head,
                        String parentTitle,
                        String redirectTitle,
                        ServiceContext serviceContext)
                 throws PortalException
Specified by:
addPage in interface WikiPageLocalService
Throws:
PortalException

addPageAttachment

public void addPageAttachment(long userId,
                              long nodeId,
                              String title,
                              String fileName,
                              File file,
                              String mimeType)
                       throws PortalException
Specified by:
addPageAttachment in interface WikiPageLocalService
Throws:
PortalException

addPageAttachment

public void addPageAttachment(long userId,
                              long nodeId,
                              String title,
                              String fileName,
                              InputStream inputStream,
                              String mimeType)
                       throws PortalException
Specified by:
addPageAttachment in interface WikiPageLocalService
Throws:
PortalException

addPageAttachments

public void addPageAttachments(long userId,
                               long nodeId,
                               String title,
                               List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
                        throws PortalException
Specified by:
addPageAttachments in interface WikiPageLocalService
Throws:
PortalException

addPageResources

public void addPageResources(long nodeId,
                             String title,
                             boolean addGroupPermissions,
                             boolean addGuestPermissions)
                      throws PortalException
Specified by:
addPageResources in interface WikiPageLocalService
Throws:
PortalException

addPageResources

public void addPageResources(long nodeId,
                             String title,
                             String[] groupPermissions,
                             String[] guestPermissions)
                      throws PortalException
Specified by:
addPageResources in interface WikiPageLocalService
Throws:
PortalException

addPageResources

public void addPageResources(WikiPage page,
                             boolean addGroupPermissions,
                             boolean addGuestPermissions)
                      throws PortalException
Specified by:
addPageResources in interface WikiPageLocalService
Throws:
PortalException

addPageResources

public void addPageResources(WikiPage page,
                             String[] groupPermissions,
                             String[] guestPermissions)
                      throws PortalException
Specified by:
addPageResources in interface WikiPageLocalService
Throws:
PortalException

addTempFileEntry

public void addTempFileEntry(long groupId,
                             long userId,
                             String folderName,
                             String fileName,
                             InputStream inputStream,
                             String mimeType)
                      throws PortalException
Specified by:
addTempFileEntry in interface WikiPageLocalService
Throws:
PortalException

addTempPageAttachment

@Deprecated
public void addTempPageAttachment(long groupId,
                                             long userId,
                                             String fileName,
                                             String tempFolderName,
                                             InputStream inputStream,
                                             String mimeType)
                           throws PortalException
Deprecated. As of 7.0.0 replaced by addTempFileEntry(long, long, String, String, InputStream, String)

Specified by:
addTempPageAttachment in interface WikiPageLocalService
Throws:
PortalException

addWikiPage

public WikiPage addWikiPage(WikiPage wikiPage)
Adds the wiki page to the database. Also notifies the appropriate model listeners.

Specified by:
addWikiPage in interface WikiPageLocalService
Parameters:
wikiPage - the wiki page
Returns:
the wiki page that was added

changeNode

public void changeNode(long userId,
                       long nodeId,
                       String title,
                       long newNodeId,
                       ServiceContext serviceContext)
                throws PortalException
Specified by:
changeNode in interface WikiPageLocalService
Throws:
PortalException

changeParent

public WikiPage changeParent(long userId,
                             long nodeId,
                             String title,
                             String newParentTitle,
                             ServiceContext serviceContext)
                      throws PortalException
Specified by:
changeParent in interface WikiPageLocalService
Throws:
PortalException

copyPageAttachments

public void copyPageAttachments(long userId,
                                long templateNodeId,
                                String templateTitle,
                                long nodeId,
                                String title)
                         throws PortalException
Specified by:
copyPageAttachments in interface WikiPageLocalService
Throws:
PortalException

createWikiPage

public WikiPage createWikiPage(long pageId)
Creates a new wiki page with the primary key. Does not add the wiki page to the database.

Specified by:
createWikiPage in interface WikiPageLocalService
Parameters:
pageId - the primary key for the new wiki page
Returns:
the new wiki page

deletePage

public void deletePage(long nodeId,
                       String title)
                throws PortalException
Specified by:
deletePage in interface WikiPageLocalService
Throws:
PortalException

deletePage

@Deprecated
public void deletePage(long nodeId,
                                  String title,
                                  double version)
                throws PortalException
Deprecated. As of 6.2.0 replaced by discardDraft(long, String, double)

Specified by:
deletePage in interface WikiPageLocalService
Throws:
PortalException

deletePage

public void deletePage(WikiPage page)
                throws PortalException
Specified by:
deletePage in interface WikiPageLocalService
Throws:
PortalException

deletePageAttachment

public void deletePageAttachment(long nodeId,
                                 String title,
                                 String fileName)
                          throws PortalException
Specified by:
deletePageAttachment in interface WikiPageLocalService
Throws:
PortalException

deletePageAttachments

public void deletePageAttachments(long nodeId,
                                  String title)
                           throws PortalException
Specified by:
deletePageAttachments in interface WikiPageLocalService
Throws:
PortalException

deletePages

public void deletePages(long nodeId)
                 throws PortalException
Specified by:
deletePages in interface WikiPageLocalService
Throws:
PortalException

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface WikiPageLocalService
Throws:
PortalException

deleteTempFileEntry

public void deleteTempFileEntry(long groupId,
                                long userId,
                                String folderName,
                                String fileName)
                         throws PortalException
Specified by:
deleteTempFileEntry in interface WikiPageLocalService
Throws:
PortalException

deleteTrashPageAttachments

public void deleteTrashPageAttachments(long nodeId,
                                       String title)
                                throws PortalException
Specified by:
deleteTrashPageAttachments in interface WikiPageLocalService
Throws:
PortalException

deleteWikiPage

public WikiPage deleteWikiPage(long pageId)
                        throws PortalException
Deletes the wiki page with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteWikiPage in interface WikiPageLocalService
Parameters:
pageId - the primary key of the wiki page
Returns:
the wiki page that was removed
Throws:
PortalException - if a wiki page with the primary key could not be found

deleteWikiPage

public WikiPage deleteWikiPage(WikiPage wikiPage)
Deletes the wiki page from the database. Also notifies the appropriate model listeners.

Specified by:
deleteWikiPage in interface WikiPageLocalService
Parameters:
wikiPage - the wiki page
Returns:
the wiki page that was removed

discardDraft

public void discardDraft(long nodeId,
                         String title,
                         double version)
                  throws PortalException
Specified by:
discardDraft in interface WikiPageLocalService
Throws:
PortalException

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface WikiPageLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface WikiPageLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from WikiPageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface WikiPageLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from WikiPageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface WikiPageLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface WikiPageLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface WikiPageLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchLatestPage

public WikiPage fetchLatestPage(long nodeId,
                                String title,
                                int status,
                                boolean preferApproved)
Specified by:
fetchLatestPage in interface WikiPageLocalService

fetchLatestPage

public WikiPage fetchLatestPage(long resourcePrimKey,
                                long nodeId,
                                int status,
                                boolean preferApproved)
Specified by:
fetchLatestPage in interface WikiPageLocalService

fetchLatestPage

public WikiPage fetchLatestPage(long resourcePrimKey,
                                int status,
                                boolean preferApproved)
Specified by:
fetchLatestPage in interface WikiPageLocalService

fetchPage

public WikiPage fetchPage(long nodeId,
                          String title)
Specified by:
fetchPage in interface WikiPageLocalService

fetchPage

public WikiPage fetchPage(long nodeId,
                          String title,
                          double version)
Specified by:
fetchPage in interface WikiPageLocalService

fetchPage

public WikiPage fetchPage(long resourcePrimKey)
Specified by:
fetchPage in interface WikiPageLocalService

fetchWikiPage

public WikiPage fetchWikiPage(long pageId)
Specified by:
fetchWikiPage in interface WikiPageLocalService

fetchWikiPageByUuidAndGroupId

public WikiPage fetchWikiPageByUuidAndGroupId(String uuid,
                                              long groupId)
Returns the wiki page matching the UUID and group.

Specified by:
fetchWikiPageByUuidAndGroupId in interface WikiPageLocalService
Parameters:
uuid - the wiki page's UUID
groupId - the primary key of the group
Returns:
the matching wiki page, or null if a matching wiki page could not be found

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface WikiPageLocalService

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface WikiPageLocalService
Returns:
the Spring bean ID for this bean

getChildren

public List<WikiPage> getChildren(long nodeId,
                                  boolean head,
                                  String parentTitle)
Specified by:
getChildren in interface WikiPageLocalService

getChildren

public List<WikiPage> getChildren(long nodeId,
                                  boolean head,
                                  String parentTitle,
                                  int start,
                                  int end)
Specified by:
getChildren in interface WikiPageLocalService

getChildren

public List<WikiPage> getChildren(long nodeId,
                                  boolean head,
                                  String parentTitle,
                                  int status)
Specified by:
getChildren in interface WikiPageLocalService

getChildrenCount

public int getChildrenCount(long nodeId,
                            boolean head,
                            String parentTitle)
Specified by:
getChildrenCount in interface WikiPageLocalService

getChildrenCount

public int getChildrenCount(long nodeId,
                            boolean head,
                            String parentTitle,
                            int status)
Specified by:
getChildrenCount in interface WikiPageLocalService

getDependentPages

public List<WikiPage> getDependentPages(long nodeId,
                                        boolean head,
                                        String title,
                                        int status)
Specified by:
getDependentPages in interface WikiPageLocalService

getDraftPage

public WikiPage getDraftPage(long nodeId,
                             String title)
                      throws PortalException
Specified by:
getDraftPage in interface WikiPageLocalService
Throws:
PortalException

getExportActionableDynamicQuery

public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Specified by:
getExportActionableDynamicQuery in interface WikiPageLocalService

getIncomingLinks

public List<WikiPage> getIncomingLinks(long nodeId,
                                       String title)
                                throws PortalException
Specified by:
getIncomingLinks in interface WikiPageLocalService
Throws:
PortalException

getLatestPage

public WikiPage getLatestPage(long nodeId,
                              String title,
                              int status,
                              boolean preferApproved)
                       throws PortalException
Specified by:
getLatestPage in interface WikiPageLocalService
Throws:
PortalException

getLatestPage

public WikiPage getLatestPage(long resourcePrimKey,
                              long nodeId,
                              int status,
                              boolean preferApproved)
                       throws PortalException
Specified by:
getLatestPage in interface WikiPageLocalService
Throws:
PortalException

getLatestPage

public WikiPage getLatestPage(long resourcePrimKey,
                              int status,
                              boolean preferApproved)
                       throws PortalException
Specified by:
getLatestPage in interface WikiPageLocalService
Throws:
PortalException

getNoAssetPages

public List<WikiPage> getNoAssetPages()
Specified by:
getNoAssetPages in interface WikiPageLocalService

getOrphans

public List<WikiPage> getOrphans(long nodeId)
                          throws PortalException
Specified by:
getOrphans in interface WikiPageLocalService
Throws:
PortalException

getOutgoingLinks

public List<WikiPage> getOutgoingLinks(long nodeId,
                                       String title)
                                throws PortalException
Specified by:
getOutgoingLinks in interface WikiPageLocalService
Throws:
PortalException

getPage

public WikiPage getPage(long nodeId,
                        String title)
                 throws PortalException
Specified by:
getPage in interface WikiPageLocalService
Throws:
PortalException

getPage

public WikiPage getPage(long nodeId,
                        String title,
                        Boolean head)
                 throws PortalException
Specified by:
getPage in interface WikiPageLocalService
Throws:
PortalException

getPage

public WikiPage getPage(long nodeId,
                        String title,
                        double version)
                 throws PortalException
Specified by:
getPage in interface WikiPageLocalService
Throws:
PortalException

getPage

public WikiPage getPage(long resourcePrimKey)
                 throws PortalException
Specified by:
getPage in interface WikiPageLocalService
Throws:
PortalException

getPage

public WikiPage getPage(long resourcePrimKey,
                        Boolean head)
                 throws PortalException
Specified by:
getPage in interface WikiPageLocalService
Throws:
PortalException

getPageByPageId

public WikiPage getPageByPageId(long pageId)
                         throws PortalException
Specified by:
getPageByPageId in interface WikiPageLocalService
Throws:
PortalException

getPageDisplay

public WikiPageDisplay getPageDisplay(long nodeId,
                                      String title,
                                      PortletURL viewPageURL,
                                      PortletURL editPageURL,
                                      String attachmentURLPrefix)
                               throws PortalException
Specified by:
getPageDisplay in interface WikiPageLocalService
Throws:
PortalException

getPageDisplay

public WikiPageDisplay getPageDisplay(WikiPage page,
                                      PortletURL viewPageURL,
                                      PortletURL editPageURL,
                                      String attachmentURLPrefix)
                               throws PortalException
Specified by:
getPageDisplay in interface WikiPageLocalService
Throws:
PortalException

getPages

public List<WikiPage> getPages(String format)
Specified by:
getPages in interface WikiPageLocalService

getPages

public List<WikiPage> getPages(long nodeId,
                               boolean head,
                               int start,
                               int end)
Specified by:
getPages in interface WikiPageLocalService

getPages

public List<WikiPage> getPages(long nodeId,
                               boolean head,
                               int start,
                               int end,
                               OrderByComparator<WikiPage> obc)
Specified by:
getPages in interface WikiPageLocalService

getPages

public List<WikiPage> getPages(long nodeId,
                               boolean head,
                               int status,
                               int start,
                               int end)
Specified by:
getPages in interface WikiPageLocalService

getPages

public List<WikiPage> getPages(long nodeId,
                               boolean head,
                               int status,
                               int start,
                               int end,
                               OrderByComparator<WikiPage> obc)
Specified by:
getPages in interface WikiPageLocalService

getPages

public List<WikiPage> getPages(long nodeId,
                               int start,
                               int end)
Specified by:
getPages in interface WikiPageLocalService

getPages

public List<WikiPage> getPages(long nodeId,
                               int start,
                               int end,
                               OrderByComparator<WikiPage> obc)
Specified by:
getPages in interface WikiPageLocalService

getPages

public List<WikiPage> getPages(long nodeId,
                               String title,
                               boolean head,
                               int start,
                               int end)
Specified by:
getPages in interface WikiPageLocalService

getPages

public List<WikiPage> getPages(long nodeId,
                               String title,
                               int start,
                               int end)
Specified by:
getPages in interface WikiPageLocalService

getPages

public List<WikiPage> getPages(long nodeId,
                               String title,
                               int start,
                               int end,
                               OrderByComparator<WikiPage> obc)
Specified by:
getPages in interface WikiPageLocalService

getPages

public List<WikiPage> getPages(long resourcePrimKey,
                               long nodeId,
                               int status)
Specified by:
getPages in interface WikiPageLocalService

getPages

public List<WikiPage> getPages(long userId,
                               long nodeId,
                               int status,
                               int start,
                               int end)
Specified by:
getPages in interface WikiPageLocalService

getPagesCount

public int getPagesCount(String format)
Specified by:
getPagesCount in interface WikiPageLocalService

getPagesCount

public int getPagesCount(long nodeId)
Specified by:
getPagesCount in interface WikiPageLocalService

getPagesCount

public int getPagesCount(long nodeId,
                         boolean head)
Specified by:
getPagesCount in interface WikiPageLocalService

getPagesCount

public int getPagesCount(long nodeId,
                         boolean head,
                         int status)
Specified by:
getPagesCount in interface WikiPageLocalService

getPagesCount

public int getPagesCount(long nodeId,
                         int status)
Specified by:
getPagesCount in interface WikiPageLocalService

getPagesCount

public int getPagesCount(long nodeId,
                         String title)
Specified by:
getPagesCount in interface WikiPageLocalService

getPagesCount

public int getPagesCount(long nodeId,
                         String title,
                         boolean head)
Specified by:
getPagesCount in interface WikiPageLocalService

getPagesCount

public int getPagesCount(long userId,
                         long nodeId,
                         int status)
Specified by:
getPagesCount in interface WikiPageLocalService

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface WikiPageLocalService
Throws:
PortalException

getPreviousVersionPage

public WikiPage getPreviousVersionPage(WikiPage page)
                                throws PortalException
Specified by:
getPreviousVersionPage in interface WikiPageLocalService
Throws:
PortalException

getRecentChanges

public List<WikiPage> getRecentChanges(long groupId,
                                       long nodeId,
                                       int start,
                                       int end)
Specified by:
getRecentChanges in interface WikiPageLocalService

getRecentChanges

@Deprecated
public List<WikiPage> getRecentChanges(long nodeId,
                                                  int start,
                                                  int end)
                                throws PortalException
Deprecated. As of 6.2.0, replaced by getRecentChanges(long, long, int, int)

Specified by:
getRecentChanges in interface WikiPageLocalService
Throws:
PortalException

getRecentChangesCount

public int getRecentChangesCount(long groupId,
                                 long nodeId)
Specified by:
getRecentChangesCount in interface WikiPageLocalService

getRecentChangesCount

@Deprecated
public int getRecentChangesCount(long nodeId)
                          throws PortalException
Deprecated. As of 6.2.0, replaced by getRecentChangesCount(long, long)

Specified by:
getRecentChangesCount in interface WikiPageLocalService
Throws:
PortalException

getRedirectPages

public List<WikiPage> getRedirectPages(long nodeId,
                                       boolean head,
                                       String redirectTitle,
                                       int status)
Specified by:
getRedirectPages in interface WikiPageLocalService

getTempFileNames

public String[] getTempFileNames(long groupId,
                                 long userId,
                                 String folderName)
                          throws PortalException
Specified by:
getTempFileNames in interface WikiPageLocalService
Throws:
PortalException

getWikiPage

public WikiPage getWikiPage(long pageId)
                     throws PortalException
Returns the wiki page with the primary key.

Specified by:
getWikiPage in interface WikiPageLocalService
Parameters:
pageId - the primary key of the wiki page
Returns:
the wiki page
Throws:
PortalException - if a wiki page with the primary key could not be found

getWikiPageByUuidAndGroupId

public WikiPage getWikiPageByUuidAndGroupId(String uuid,
                                            long groupId)
                                     throws PortalException
Returns the wiki page matching the UUID and group.

Specified by:
getWikiPageByUuidAndGroupId in interface WikiPageLocalService
Parameters:
uuid - the wiki page's UUID
groupId - the primary key of the group
Returns:
the matching wiki page
Throws:
PortalException - if a matching wiki page could not be found

getWikiPages

public List<WikiPage> getWikiPages(int start,
                                   int end)
Returns a range of all the wiki pages.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from WikiPageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
getWikiPages in interface WikiPageLocalService
Parameters:
start - the lower bound of the range of wiki pages
end - the upper bound of the range of wiki pages (not inclusive)
Returns:
the range of wiki pages

getWikiPagesByUuidAndCompanyId

public List<WikiPage> getWikiPagesByUuidAndCompanyId(String uuid,
                                                     long companyId)
Returns all the wiki pages matching the UUID and company.

Specified by:
getWikiPagesByUuidAndCompanyId in interface WikiPageLocalService
Parameters:
uuid - the UUID of the wiki pages
companyId - the primary key of the company
Returns:
the matching wiki pages, or an empty list if no matches were found

getWikiPagesByUuidAndCompanyId

public List<WikiPage> getWikiPagesByUuidAndCompanyId(String uuid,
                                                     long companyId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator<WikiPage> orderByComparator)
Returns a range of wiki pages matching the UUID and company.

Specified by:
getWikiPagesByUuidAndCompanyId in interface WikiPageLocalService
Parameters:
uuid - the UUID of the wiki pages
companyId - the primary key of the company
start - the lower bound of the range of wiki pages
end - the upper bound of the range of wiki pages (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the range of matching wiki pages, or an empty list if no matches were found

getWikiPagesCount

public int getWikiPagesCount()
Returns the number of wiki pages.

Specified by:
getWikiPagesCount in interface WikiPageLocalService
Returns:
the number of wiki pages

hasDraftPage

public boolean hasDraftPage(long nodeId,
                            String title)
Specified by:
hasDraftPage in interface WikiPageLocalService

moveDependentToTrash

public void moveDependentToTrash(WikiPage page,
                                 long trashEntryId)
                          throws PortalException
Specified by:
moveDependentToTrash in interface WikiPageLocalService
Throws:
PortalException

movePage

@Deprecated
public void movePage(long userId,
                                long nodeId,
                                String title,
                                String newTitle,
                                ServiceContext serviceContext)
              throws PortalException
Deprecated. As of 7.0.0, replaced by renamePage(long, long, String, String, ServiceContext)

Specified by:
movePage in interface WikiPageLocalService
Throws:
PortalException

movePage

@Deprecated
public void movePage(long userId,
                                long nodeId,
                                String title,
                                String newTitle,
                                boolean strict,
                                ServiceContext serviceContext)
              throws PortalException
Deprecated. As of 6.2.0, replaced by renamePage(long, long, String, String, boolean, ServiceContext)

Specified by:
movePage in interface WikiPageLocalService
Throws:
PortalException

movePageAttachmentToTrash

public FileEntry movePageAttachmentToTrash(long userId,
                                           long nodeId,
                                           String title,
                                           String fileName)
                                    throws PortalException
Specified by:
movePageAttachmentToTrash in interface WikiPageLocalService
Throws:
PortalException

movePageFromTrash

public WikiPage movePageFromTrash(long userId,
                                  long nodeId,
                                  String title,
                                  long newNodeId,
                                  String newParentTitle)
                           throws PortalException
Specified by:
movePageFromTrash in interface WikiPageLocalService
Throws:
PortalException

movePageFromTrash

@Deprecated
public WikiPage movePageFromTrash(long userId,
                                             long nodeId,
                                             String title,
                                             String newParentTitle,
                                             ServiceContext serviceContext)
                           throws PortalException
Deprecated. As of 7.0.0, replaced by movePageFromTrash(long, long, String, long, String) *

Specified by:
movePageFromTrash in interface WikiPageLocalService
Throws:
PortalException

movePageToTrash

public WikiPage movePageToTrash(long userId,
                                long nodeId,
                                String title)
                         throws PortalException
Specified by:
movePageToTrash in interface WikiPageLocalService
Throws:
PortalException

movePageToTrash

public WikiPage movePageToTrash(long userId,
                                long nodeId,
                                String title,
                                double version)
                         throws PortalException
Specified by:
movePageToTrash in interface WikiPageLocalService
Throws:
PortalException

movePageToTrash

public WikiPage movePageToTrash(long userId,
                                WikiPage page)
                         throws PortalException
Specified by:
movePageToTrash in interface WikiPageLocalService
Throws:
PortalException

renamePage

public void renamePage(long userId,
                       long nodeId,
                       String title,
                       String newTitle,
                       ServiceContext serviceContext)
                throws PortalException
Specified by:
renamePage in interface WikiPageLocalService
Throws:
PortalException

renamePage

public void renamePage(long userId,
                       long nodeId,
                       String title,
                       String newTitle,
                       boolean strict,
                       ServiceContext serviceContext)
                throws PortalException
Specified by:
renamePage in interface WikiPageLocalService
Throws:
PortalException

restorePageAttachmentFromTrash

public void restorePageAttachmentFromTrash(long userId,
                                           long nodeId,
                                           String title,
                                           String fileName)
                                    throws PortalException
Specified by:
restorePageAttachmentFromTrash in interface WikiPageLocalService
Throws:
PortalException

restorePageFromTrash

public void restorePageFromTrash(long userId,
                                 WikiPage page)
                          throws PortalException
Specified by:
restorePageFromTrash in interface WikiPageLocalService
Throws:
PortalException

revertPage

public WikiPage revertPage(long userId,
                           long nodeId,
                           String title,
                           double version,
                           ServiceContext serviceContext)
                    throws PortalException
Specified by:
revertPage in interface WikiPageLocalService
Throws:
PortalException

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface WikiPageLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

subscribePage

public void subscribePage(long userId,
                          long nodeId,
                          String title)
                   throws PortalException
Specified by:
subscribePage in interface WikiPageLocalService
Throws:
PortalException

unsubscribePage

public void unsubscribePage(long userId,
                            long nodeId,
                            String title)
                     throws PortalException
Specified by:
unsubscribePage in interface WikiPageLocalService
Throws:
PortalException

updateAsset

public void updateAsset(long userId,
                        WikiPage page,
                        long[] assetCategoryIds,
                        String[] assetTagNames,
                        long[] assetLinkEntryIds)
                 throws PortalException
Specified by:
updateAsset in interface WikiPageLocalService
Throws:
PortalException

updatePage

public WikiPage updatePage(long userId,
                           long nodeId,
                           String title,
                           double version,
                           String content,
                           String summary,
                           boolean minorEdit,
                           String format,
                           String parentTitle,
                           String redirectTitle,
                           ServiceContext serviceContext)
                    throws PortalException
Specified by:
updatePage in interface WikiPageLocalService
Throws:
PortalException

updateStatus

@Deprecated
public WikiPage updateStatus(long userId,
                                        WikiPage page,
                                        int status,
                                        ServiceContext serviceContext)
                      throws PortalException
Deprecated. As of 7.0.0, replaced by updateStatus(long, WikiPage, int, ServiceContext, Map)

Specified by:
updateStatus in interface WikiPageLocalService
Throws:
PortalException

updateStatus

public WikiPage updateStatus(long userId,
                             WikiPage page,
                             int status,
                             ServiceContext serviceContext,
                             Map<String,Serializable> workflowContext)
                      throws PortalException
Specified by:
updateStatus in interface WikiPageLocalService
Throws:
PortalException

updateStatus

public WikiPage updateStatus(long userId,
                             long resourcePrimKey,
                             int status,
                             ServiceContext serviceContext)
                      throws PortalException
Specified by:
updateStatus in interface WikiPageLocalService
Throws:
PortalException

updateWikiPage

public WikiPage updateWikiPage(WikiPage wikiPage)
Updates the wiki page in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateWikiPage in interface WikiPageLocalService
Parameters:
wikiPage - the wiki page
Returns:
the wiki page that was updated

validateTitle

public void validateTitle(String title)
                   throws PortalException
Specified by:
validateTitle in interface WikiPageLocalService
Throws:
PortalException

getWrappedWikiPageLocalService

@Deprecated
public WikiPageLocalService getWrappedWikiPageLocalService()
Deprecated. As of 6.1.0, replaced by getWrappedService()


setWrappedWikiPageLocalService

@Deprecated
public void setWrappedWikiPageLocalService(WikiPageLocalService wikiPageLocalService)
Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.wiki.service.WikiPageLocalService)


getWrappedService

public WikiPageLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<WikiPageLocalService>

setWrappedService

public void setWrappedService(WikiPageLocalService wikiPageLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<WikiPageLocalService>

Liferay 7.0-ce-m3