Interface WikiPageLocalService

All Superinterfaces:
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
All Known Implementing Classes:
WikiPageLocalServiceWrapper

@CTAware @ProviderType @Transactional(isolation=PORTAL, rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class}) public interface WikiPageLocalService extends 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
Provides the local service interface for WikiPage. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
See Also:
Generated:
  • Method Details

    • addPage

      @Deprecated 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPage

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

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

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

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

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

      void addPageResources(long nodeId, String title, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPageResources

      void addPageResources(WikiPage page, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addPageResources

      void addPageResources(WikiPage page, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addTempFileEntry

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

      @Indexable(type=REINDEX) 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.

      Parameters:
      wikiPage - the wiki page
      Returns:
      the wiki page that was added
    • changeParent

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

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

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

      @Transactional(enabled=false) WikiPage createWikiPage(long pageId)
      Creates a new wiki page with the primary key. Does not add the wiki page to the database.
      Parameters:
      pageId - the primary key for the new wiki page
      Returns:
      the new wiki page
    • deletePage

      void deletePage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePage

      @SystemEvent(action=1, send=false, type=1) void deletePage(WikiPage page) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePageAttachment

      void deletePageAttachment(long nodeId, String title, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePageAttachments

      void deletePageAttachments(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePages

      void deletePages(long nodeId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

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

      void deleteTempFileEntry(long groupId, long userId, String folderName, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteTrashPageAttachments

      void deleteTrashPageAttachments(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteWikiPage

      @Indexable(type=DELETE) 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.

      Parameters:
      pageId - the primary key of the wiki page
      Returns:
      the wiki page that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a wiki page with the primary key could not be found
    • deleteWikiPage

      @Indexable(type=DELETE) 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.

      Parameters:
      wikiPage - the wiki page
      Returns:
      the wiki page that was removed
    • discardDraft

      void discardDraft(long nodeId, String title, double version) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

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

      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

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

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) 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.
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchLatestPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage fetchLatestPage(long resourcePrimKey, int status, boolean preferApproved)
    • fetchLatestPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage fetchLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved)
    • fetchLatestPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage fetchLatestPage(long nodeId, String title, int status, boolean preferApproved)
    • fetchLatestPageByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage fetchLatestPageByExternalReferenceCode(long groupId, String externalReferenceCode)
      Returns the latest wiki page matching the group and the external reference code
      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

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage fetchPage(long resourcePrimKey)
    • fetchPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage fetchPage(long nodeId, String title)
    • fetchPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage fetchPage(long nodeId, String title, double version)
    • fetchPersistedModel

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel fetchPersistedModel(Serializable primaryKeyObj)
      Specified by:
      fetchPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • fetchWikiPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage fetchWikiPage(long pageId)
    • fetchWikiPageByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage fetchWikiPageByUuidAndGroupId(String uuid, long groupId)
      Returns the wiki page matching the UUID and group.
      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

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getChildren

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle)
    • getChildren

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle, int status)
    • getChildren

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle, int start, int end)
    • getChildren

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator)
    • getChildrenCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getChildrenCount(long nodeId, boolean head, String parentTitle)
    • getChildrenCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getChildrenCount(long nodeId, boolean head, String parentTitle, int status)
    • getDependentPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getDependentPages(long nodeId, boolean head, String title, int status)
    • getDisplay

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPageDisplay getDisplay(long nodeId, String title, javax.portlet.PortletURL viewPageURL, Supplier<javax.portlet.PortletURL> editPageURLSupplier, String attachmentURLPrefix) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDraftPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getDraftPage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getExportActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
    • getIncomingLinks

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getIncomingLinks(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getIndexableActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getLatestPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getLatestPage(long resourcePrimKey, int status, boolean preferApproved) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getLatestPage(long nodeId, String title, int status, boolean preferApproved) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestPageByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) 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
      Parameters:
      groupId - the primary key of the group
      externalReferenceCode - the wiki page's external reference code
      Returns:
      the latest matching wiki page
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a portal exception occurred
    • getOrphans

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getOrphans(List<WikiPage> pages) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOrphans

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getOrphans(long nodeId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getOutgoingLinks

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getOutgoingLinks(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getPage(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getPage(long resourcePrimKey, Boolean head) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getPage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getPage(long nodeId, String title, Boolean head) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getPage(long nodeId, String title, double version) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPageByPageId

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getPageByPageId(long pageId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPageDisplay

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPageDisplay getPageDisplay(long nodeId, String title, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, String attachmentURLPrefix) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPageDisplay

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPageDisplay getPageDisplay(WikiPage page, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, String attachmentURLPrefix) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPageDisplay

      @Transactional(propagation=SUPPORTS, readOnly=true) 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPageDisplay

      @Transactional(propagation=SUPPORTS, readOnly=true) 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long nodeId, boolean head, int start, int end)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long nodeId, boolean head, int status, int start, int end)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long nodeId, boolean head, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long nodeId, boolean head, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long nodeId, int start, int end)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long nodeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long resourcePrimKey, long nodeId, int status)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long userId, long nodeId, int status, int start, int end)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long groupId, long nodeId, int status, long statusByUserId)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long nodeId, String title, boolean head, int start, int end)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long nodeId, String title, int start, int end)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(long nodeId, String title, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator)
    • getPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getPages(String format)
    • getPagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getPagesCount(long nodeId)
    • getPagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getPagesCount(long nodeId, boolean head)
    • getPagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getPagesCount(long nodeId, boolean head, int status)
    • getPagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getPagesCount(long nodeId, int status)
    • getPagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getPagesCount(long userId, long nodeId, int status)
    • getPagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getPagesCount(long nodeId, String title)
    • getPagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getPagesCount(long nodeId, String title, boolean head)
    • getPagesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getPagesCount(String format)
    • getPersistedModel

      @Transactional(propagation=SUPPORTS, readOnly=true) 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPersistedModel

      @Transactional(propagation=SUPPORTS, readOnly=true) 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getPreviousVersionPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getPreviousVersionPage(WikiPage page) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getRecentChanges

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getRecentChanges(long groupId, long nodeId, int start, int end)
    • getRecentChangesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getRecentChangesCount(long groupId, long nodeId)
    • getRedirectorPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getRedirectorPages(long nodeId, boolean head, String redirectTitle, int status)
    • getRedirectorPages

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getRedirectorPages(long nodeId, String redirectTitle)
    • getTempFileNames

      @Transactional(propagation=SUPPORTS, readOnly=true) String[] getTempFileNames(long groupId, long userId, String folderName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getWikiPage

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getWikiPage(long pageId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the wiki page with the primary key.
      Parameters:
      pageId - the primary key of the wiki page
      Returns:
      the wiki page
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a wiki page with the primary key could not be found
    • getWikiPageByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) WikiPage getWikiPageByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the wiki page matching the UUID and group.
      Parameters:
      uuid - the wiki page's UUID
      groupId - the primary key of the group
      Returns:
      the matching wiki page
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching wiki page could not be found
    • getWikiPages

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

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) List<WikiPage> getWikiPagesByUuidAndCompanyId(String uuid, long companyId)
      Returns all the wiki pages matching the UUID and company.
      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

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

      @Transactional(propagation=SUPPORTS, readOnly=true) int getWikiPagesCount()
      Returns the number of wiki pages.
      Returns:
      the number of wiki pages
    • hasDraftPage

      @Transactional(propagation=SUPPORTS, readOnly=true) boolean hasDraftPage(long nodeId, String title)
    • moveDependentToTrash

      void moveDependentToTrash(WikiPage page, long trashEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • movePageAttachmentToTrash

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

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

      WikiPage movePageToTrash(long userId, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • movePageToTrash

      WikiPage movePageToTrash(long userId, long nodeId, String title, double version) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • movePageToTrash

      WikiPage movePageToTrash(long userId, WikiPage page) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • renamePage

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

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

      void restorePageAttachmentFromTrash(long userId, long nodeId, String title, String fileName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restorePageFromTrash

      void restorePageFromTrash(long userId, WikiPage page) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • revertPage

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

      void subscribePage(long userId, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • unsubscribePage

      void unsubscribePage(long userId, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAsset

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

      @BufferedIncrement(configuration="WikiNode", incrementClass=com.liferay.portal.kernel.increment.DateOverrideIncrement.class) void updateLastPostDate(long nodeId, Date lastPostDate)
    • updatePage

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

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

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

      @Indexable(type=REINDEX) 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.

      Parameters:
      wikiPage - the wiki page
      Returns:
      the wiki page that was updated
    • updateWikiPage

      WikiPage updateWikiPage(WikiPage wikiPage, com.liferay.portal.kernel.service.ServiceContext serviceContext)
    • getCTPersistence

      @Transactional(enabled=false) 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>
    • getModelClass

      @Transactional(enabled=false) Class<WikiPage> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<WikiPage>
    • updateWithUnsafeFunction

      @Transactional(rollbackFor=java.lang.Throwable.class) <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>
      Throws:
      E extends Throwable