Class WikiPageLocalServiceWrapper

java.lang.Object
com.liferay.wiki.service.WikiPageLocalServiceWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<WikiPage>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.PersistedResourcedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<WikiPageLocalService>, WikiPageLocalService

public class WikiPageLocalServiceWrapper extends Object implements com.liferay.portal.kernel.service.ServiceWrapper<WikiPageLocalService>, WikiPageLocalService
Provides a wrapper for WikiPageLocalService.
See Also:
Generated:
  • Constructor Details

    • WikiPageLocalServiceWrapper

      public WikiPageLocalServiceWrapper()
    • WikiPageLocalServiceWrapper

      public WikiPageLocalServiceWrapper(WikiPageLocalService wikiPageLocalService)
  • Method Details

    • addPage

      @Deprecated 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, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPage

      public WikiPage addPage(long userId, long nodeId, String title, String content, String summary, boolean minorEdit, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPage

      public WikiPage addPage(String externalReferenceCode, long userId, long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, boolean head, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPageAttachment

      public com.liferay.portal.kernel.repository.model.FileEntry addPageAttachment(long userId, long nodeId, String title, String fileName, File file, String mimeType) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addPageAttachment in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPageAttachment

      public com.liferay.portal.kernel.repository.model.FileEntry addPageAttachment(long userId, long nodeId, String title, String fileName, InputStream inputStream, String mimeType) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addPageAttachment in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPageAttachments

      public List<com.liferay.portal.kernel.repository.model.FileEntry> addPageAttachments(long userId, long nodeId, String title, List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addPageAttachments in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPageResources

      public void addPageResources(long nodeId, String title, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addPageResources in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPageResources

      public void addPageResources(WikiPage page, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addPageResources in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPageResources

      public void addPageResources(WikiPage page, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addPageResources in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addTempFileEntry

      public com.liferay.portal.kernel.repository.model.FileEntry addTempFileEntry(long groupId, long userId, String folderName, String fileName, InputStream inputStream, String mimeType) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addTempFileEntry in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addWikiPage

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

      Important: Inspect WikiPageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

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

      public WikiPage changeParent(long userId, long nodeId, String title, String newParentTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      changeParent in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • copyPageAttachments

      public void copyPageAttachments(long userId, long templateNodeId, String templateTitle, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      copyPageAttachments in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      createPersistedModel in interface WikiPageLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.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 com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePage

      public void deletePage(WikiPage page) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePageAttachment

      public void deletePageAttachment(long nodeId, String title, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePageAttachment in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePageAttachments

      public void deletePageAttachments(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePageAttachments in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePages

      public void deletePages(long nodeId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePages in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

      public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      deletePersistedModel in interface WikiPageLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteTempFileEntry

      public void deleteTempFileEntry(long groupId, long userId, String folderName, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteTempFileEntry in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteTrashPageAttachments

      public void deleteTrashPageAttachments(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteTrashPageAttachments in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteWikiPage

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

      Important: Inspect WikiPageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      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
      com.liferay.portal.kernel.exception.PortalException
    • deleteWikiPage

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

      Important: Inspect WikiPageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      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 com.liferay.portal.kernel.exception.PortalException
      Specified by:
      discardDraft in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      dslQuery in interface WikiPageLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      dslQueryCount in interface WikiPageLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface WikiPageLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.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(com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.wiki.model.impl.WikiPageModelImpl.

      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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.wiki.model.impl.WikiPageModelImpl.

      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(com.liferay.portal.kernel.dao.orm.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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.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 resourcePrimKey, 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 nodeId, String title, int status, boolean preferApproved)
      Specified by:
      fetchLatestPage in interface WikiPageLocalService
    • fetchLatestPageByExternalReferenceCode

      public WikiPage fetchLatestPageByExternalReferenceCode(long groupId, String externalReferenceCode)
      Returns the latest wiki page matching the group and the external reference code
      Specified by:
      fetchLatestPageByExternalReferenceCode in interface WikiPageLocalService
      Parameters:
      groupId - the primary key of the group
      externalReferenceCode - the wiki page's external reference code
      Returns:
      the latest matching wiki page, or null if no matching wiki page could be found
    • fetchPage

      public WikiPage fetchPage(long resourcePrimKey)
      Specified by:
      fetchPage 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
    • fetchPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel fetchPersistedModel(Serializable primaryKeyObj)
      Specified by:
      fetchPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      fetchPersistedModel 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 com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface WikiPageLocalService
    • 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 status)
      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, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator)
      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
    • getDisplay

      public WikiPageDisplay getDisplay(long nodeId, String title, javax.portlet.PortletURL viewPageURL, Supplier<javax.portlet.PortletURL> editPageURLSupplier, String attachmentURLPrefix) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getDisplay in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDraftPage

      public WikiPage getDraftPage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getDraftPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface WikiPageLocalService
    • getIncomingLinks

      public List<WikiPage> getIncomingLinks(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getIncomingLinks in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface WikiPageLocalService
    • getLatestPage

      public WikiPage getLatestPage(long resourcePrimKey, int status, boolean preferApproved) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getLatestPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestPage

      public WikiPage getLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getLatestPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestPage

      public WikiPage getLatestPage(long nodeId, String title, int status, boolean preferApproved) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getLatestPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestPageByExternalReferenceCode

      public WikiPage getLatestPageByExternalReferenceCode(long groupId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Returns the latest wiki page matching the group and the external reference code
      Specified by:
      getLatestPageByExternalReferenceCode in interface WikiPageLocalService
      Parameters:
      groupId - the primary key of the group
      externalReferenceCode - the wiki page's external reference code
      Returns:
      the latest matching wiki page
      Throws:
      PortalException - if a portal exception occurred
      com.liferay.portal.kernel.exception.PortalException
    • getOrphans

      public List<WikiPage> getOrphans(List<WikiPage> pages) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getOrphans in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOrphans

      public List<WikiPage> getOrphans(long nodeId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getOrphans in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface WikiPageLocalService
      Returns:
      the OSGi service identifier
    • getOutgoingLinks

      public List<WikiPage> getOutgoingLinks(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getOutgoingLinks in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPage

      public WikiPage getPage(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPage

      public WikiPage getPage(long resourcePrimKey, Boolean head) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPage

      public WikiPage getPage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPage

      public WikiPage getPage(long nodeId, String title, Boolean head) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPage

      public WikiPage getPage(long nodeId, String title, double version) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPageByPageId

      public WikiPage getPageByPageId(long pageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPageByPageId in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPageDisplay

      public WikiPageDisplay getPageDisplay(long nodeId, String title, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, String attachmentURLPrefix) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPageDisplay in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPageDisplay

      public WikiPageDisplay getPageDisplay(WikiPage page, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, String attachmentURLPrefix) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPageDisplay in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPageDisplay

      public WikiPageDisplay getPageDisplay(WikiPage page, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, String attachmentURLPrefix, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPageDisplay in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPageDisplay

      public WikiPageDisplay getPageDisplay(WikiPage page, javax.portlet.PortletURL viewPageURL, Supplier<javax.portlet.PortletURL> editPageURLSupplier, String attachmentURLPrefix, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPageDisplay in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • 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 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, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator)
      Specified by:
      getPages in interface WikiPageLocalService
    • getPages

      public List<WikiPage> getPages(long nodeId, boolean head, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator)
      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, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator)
      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
    • getPages

      public List<WikiPage> getPages(long groupId, long nodeId, int status, long statusByUserId)
      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, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator)
      Specified by:
      getPages in interface WikiPageLocalService
    • getPages

      public List<WikiPage> getPages(String format)
      Specified by:
      getPages 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 userId, 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(String format)
      Specified by:
      getPagesCount in interface WikiPageLocalService
    • getPersistedModel

      public List<? extends com.liferay.portal.kernel.model.PersistedModel> getPersistedModel(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedResourcedModelLocalService
      Specified by:
      getPersistedModel in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      getPersistedModel in interface WikiPageLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getPreviousVersionPage

      public WikiPage getPreviousVersionPage(WikiPage page) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPreviousVersionPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getRecentChanges

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

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

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

      public List<WikiPage> getRedirectorPages(long nodeId, String redirectTitle)
      Specified by:
      getRedirectorPages in interface WikiPageLocalService
    • getTempFileNames

      public String[] getTempFileNames(long groupId, long userId, String folderName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getTempFileNames in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getWikiPage

      public WikiPage getWikiPage(long pageId) throws com.liferay.portal.kernel.exception.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
      com.liferay.portal.kernel.exception.PortalException
    • getWikiPageByUuidAndGroupId

      public WikiPage getWikiPageByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.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
      com.liferay.portal.kernel.exception.PortalException
    • 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.wiki.model.impl.WikiPageModelImpl.

      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, com.liferay.portal.kernel.util.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 com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveDependentToTrash in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • movePageAttachmentToTrash

      public com.liferay.portal.kernel.repository.model.FileEntry movePageAttachmentToTrash(long userId, long nodeId, String title, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      movePageAttachmentToTrash in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • movePageFromTrash

      public WikiPage movePageFromTrash(long userId, long nodeId, String title, long newNodeId, String newParentTitle) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      movePageFromTrash in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • movePageToTrash

      public WikiPage movePageToTrash(long userId, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      movePageToTrash in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • movePageToTrash

      public WikiPage movePageToTrash(long userId, long nodeId, String title, double version) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      movePageToTrash in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • movePageToTrash

      public WikiPage movePageToTrash(long userId, WikiPage page) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      movePageToTrash in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • renamePage

      public void renamePage(long userId, long nodeId, String title, String newTitle, boolean strict, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      renamePage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • renamePage

      public void renamePage(long userId, long nodeId, String title, String newTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      renamePage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restorePageAttachmentFromTrash

      public void restorePageAttachmentFromTrash(long userId, long nodeId, String title, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      restorePageAttachmentFromTrash in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restorePageFromTrash

      public void restorePageFromTrash(long userId, WikiPage page) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      restorePageFromTrash in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • revertPage

      public WikiPage revertPage(long userId, long nodeId, String title, double version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      revertPage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • subscribePage

      public void subscribePage(long userId, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      subscribePage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • unsubscribePage

      public void unsubscribePage(long userId, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      unsubscribePage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAsset

      public void updateAsset(long userId, WikiPage page, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateAsset in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLastPostDate

      public void updateLastPostDate(long nodeId, Date lastPostDate)
      Specified by:
      updateLastPostDate in interface WikiPageLocalService
    • updatePage

      public WikiPage updatePage(long userId, long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updatePage in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public WikiPage updateStatus(long userId, long resourcePrimKey, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public WikiPage updateStatus(long userId, WikiPage page, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String,Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface WikiPageLocalService
      Throws:
      com.liferay.portal.kernel.exception.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.

      Important: Inspect WikiPageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

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

      public WikiPage updateWikiPage(WikiPage wikiPage, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      updateWikiPage in interface WikiPageLocalService
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getCTPersistence

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<WikiPage> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<WikiPage>
      Specified by:
      getCTPersistence in interface WikiPageLocalService
    • getModelClass

      public Class<WikiPage> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<WikiPage>
      Specified by:
      getModelClass in interface WikiPageLocalService
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<WikiPage>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<WikiPage>
      Specified by:
      updateWithUnsafeFunction in interface WikiPageLocalService
      Throws:
      E extends Throwable
    • getWrappedService

      public WikiPageLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<WikiPageLocalService>
    • setWrappedService

      public void setWrappedService(WikiPageLocalService wikiPageLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<WikiPageLocalService>