Class WikiPageLocalServiceUtil
com.liferay.wiki.service.impl.WikiPageLocalServiceImpl and
is an access point for service operations in application layer code running
on the local server. 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WikiPageaddPage(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) Deprecated.static WikiPageaddPage(long userId, long nodeId, String title, String content, String summary, boolean minorEdit, com.liferay.portal.kernel.service.ServiceContext serviceContext) static WikiPageaddPage(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) static com.liferay.portal.kernel.repository.model.FileEntryaddPageAttachment(long userId, long nodeId, String title, String fileName, File file, String mimeType) static com.liferay.portal.kernel.repository.model.FileEntryaddPageAttachment(long userId, long nodeId, String title, String fileName, InputStream inputStream, String mimeType) static 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) static voidaddPageResources(long nodeId, String title, boolean addGroupPermissions, boolean addGuestPermissions) static voidaddPageResources(WikiPage page, boolean addGroupPermissions, boolean addGuestPermissions) static voidaddPageResources(WikiPage page, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) static com.liferay.portal.kernel.repository.model.FileEntryaddTempFileEntry(long groupId, long userId, String folderName, String fileName, InputStream inputStream, String mimeType) static WikiPageaddWikiPage(WikiPage wikiPage) Adds the wiki page to the database.static WikiPagechangeParent(long userId, long nodeId, String title, String newParentTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidcopyPageAttachments(long userId, long templateNodeId, String templateTitle, long nodeId, String title) static com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) static WikiPagecreateWikiPage(long pageId) Creates a new wiki page with the primary key.static voiddeletePage(long nodeId, String title) static voiddeletePage(WikiPage page) static voiddeletePageAttachment(long nodeId, String title, String fileName) static voiddeletePageAttachments(long nodeId, String title) static voiddeletePages(long nodeId) static com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) static voiddeleteTempFileEntry(long groupId, long userId, String folderName, String fileName) static voiddeleteTrashPageAttachments(long nodeId, String title) static WikiPagedeleteWikiPage(long pageId) Deletes the wiki page with the primary key from the database.static WikiPagedeleteWikiPage(WikiPage wikiPage) Deletes the wiki page from the database.static voiddiscardDraft(long nodeId, String title, double version) static <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static com.liferay.portal.kernel.dao.orm.DynamicQuerystatic <T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.static <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.static <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.static longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.static longdynamicQueryCount(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.static WikiPagefetchLatestPage(long resourcePrimKey, int status, boolean preferApproved) static WikiPagefetchLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved) static WikiPagefetchLatestPage(long nodeId, String title, int status, boolean preferApproved) static WikiPagefetchLatestPageByExternalReferenceCode(long groupId, String externalReferenceCode) Returns the latest wiki page matching the group and the external reference codestatic WikiPagefetchPage(long resourcePrimKey) static WikiPagestatic WikiPagestatic com.liferay.portal.kernel.model.PersistedModelfetchPersistedModel(Serializable primaryKeyObj) static WikiPagefetchWikiPage(long pageId) static WikiPagefetchWikiPageByUuidAndGroupId(String uuid, long groupId) Returns the wiki page matching the UUID and group.static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerygetChildren(long nodeId, boolean head, String parentTitle) getChildren(long nodeId, boolean head, String parentTitle, int status) getChildren(long nodeId, boolean head, String parentTitle, int start, int end) getChildren(long nodeId, boolean head, String parentTitle, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator) static intgetChildrenCount(long nodeId, boolean head, String parentTitle) static intgetChildrenCount(long nodeId, boolean head, String parentTitle, int status) getDependentPages(long nodeId, boolean head, String title, int status) static WikiPageDisplaygetDisplay(long nodeId, String title, javax.portlet.PortletURL viewPageURL, Supplier<javax.portlet.PortletURL> editPageURLSupplier, String attachmentURLPrefix) static WikiPagegetDraftPage(long nodeId, String title) static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) getIncomingLinks(long nodeId, String title) static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerystatic WikiPagegetLatestPage(long resourcePrimKey, int status, boolean preferApproved) static WikiPagegetLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved) static WikiPagegetLatestPage(long nodeId, String title, int status, boolean preferApproved) static WikiPagegetLatestPageByExternalReferenceCode(long groupId, String externalReferenceCode) Returns the latest wiki page matching the group and the external reference codegetOrphans(long nodeId) getOrphans(List<WikiPage> pages) static StringReturns the OSGi service identifier.getOutgoingLinks(long nodeId, String title) static WikiPagegetPage(long resourcePrimKey) static WikiPagestatic WikiPagestatic WikiPagestatic WikiPagestatic WikiPagegetPageByPageId(long pageId) static WikiPageDisplaygetPageDisplay(long nodeId, String title, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, String attachmentURLPrefix) static WikiPageDisplaygetPageDisplay(WikiPage page, javax.portlet.PortletURL viewPageURL, Supplier<javax.portlet.PortletURL> editPageURLSupplier, String attachmentURLPrefix, com.liferay.portal.kernel.service.ServiceContext serviceContext) static WikiPageDisplaygetPageDisplay(WikiPage page, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, String attachmentURLPrefix) static WikiPageDisplaygetPageDisplay(WikiPage page, javax.portlet.PortletURL viewPageURL, javax.portlet.PortletURL editPageURL, String attachmentURLPrefix, com.liferay.portal.kernel.service.ServiceContext serviceContext) getPages(long nodeId, boolean head, int start, int end) getPages(long nodeId, boolean head, int status, int start, int end) getPages(long nodeId, boolean head, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator) getPages(long nodeId, boolean head, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator) getPages(long nodeId, int start, int end) getPages(long nodeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator) getPages(long resourcePrimKey, long nodeId, int status) getPages(long userId, long nodeId, int status, int start, int end) getPages(long groupId, long nodeId, int status, long statusByUserId) getPages(long nodeId, String title, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<WikiPage> orderByComparator) static intgetPagesCount(long nodeId) static intgetPagesCount(long nodeId, boolean head) static intgetPagesCount(long nodeId, boolean head, int status) static intgetPagesCount(long nodeId, int status) static intgetPagesCount(long userId, long nodeId, int status) static intgetPagesCount(long nodeId, String title) static intgetPagesCount(long nodeId, String title, boolean head) static intgetPagesCount(String format) static List<? extends com.liferay.portal.kernel.model.PersistedModel>getPersistedModel(long resourcePrimKey) static com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) static WikiPagegetRecentChanges(long groupId, long nodeId, int start, int end) static intgetRecentChangesCount(long groupId, long nodeId) getRedirectorPages(long nodeId, boolean head, String redirectTitle, int status) getRedirectorPages(long nodeId, String redirectTitle) static WikiPageLocalServicestatic String[]getTempFileNames(long groupId, long userId, String folderName) static WikiPagegetWikiPage(long pageId) Returns the wiki page with the primary key.static WikiPagegetWikiPageByUuidAndGroupId(String uuid, long groupId) Returns the wiki page matching the UUID and group.getWikiPages(int start, int end) Returns a range of all the wiki pages.getWikiPagesByUuidAndCompanyId(String uuid, long companyId) Returns all the wiki pages matching the UUID and company.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.static intReturns the number of wiki pages.static booleanhasDraftPage(long nodeId, String title) static voidmoveDependentToTrash(WikiPage page, long trashEntryId) static com.liferay.portal.kernel.repository.model.FileEntrymovePageAttachmentToTrash(long userId, long nodeId, String title, String fileName) static WikiPagemovePageFromTrash(long userId, long nodeId, String title, long newNodeId, String newParentTitle) static WikiPagemovePageToTrash(long userId, long nodeId, String title) static WikiPagemovePageToTrash(long userId, long nodeId, String title, double version) static WikiPagemovePageToTrash(long userId, WikiPage page) static voidrenamePage(long userId, long nodeId, String title, String newTitle, boolean strict, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidrenamePage(long userId, long nodeId, String title, String newTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidrestorePageAttachmentFromTrash(long userId, long nodeId, String title, String fileName) static voidrestorePageFromTrash(long userId, WikiPage page) static WikiPagerevertPage(long userId, long nodeId, String title, double version, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidsubscribePage(long userId, long nodeId, String title) static voidunsubscribePage(long userId, long nodeId, String title) static voidupdateAsset(long userId, WikiPage page, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds, Double priority) static voidupdateLastPostDate(long nodeId, Date lastPostDate) static WikiPageupdatePage(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) static WikiPageupdateStatus(long userId, long resourcePrimKey, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) static WikiPageupdateStatus(long userId, WikiPage page, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) static WikiPageupdateWikiPage(WikiPage wikiPage) Updates the wiki page in the database or adds it if it does not yet exist.static WikiPageupdateWikiPage(WikiPage wikiPage, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
WikiPageLocalServiceUtil
public WikiPageLocalServiceUtil()
-
-
Method Details
-
addPage
@Deprecated public static 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 Deprecated.As of Cavanaugh (7.4.x), replaced byaddPage(String, long, long, String, double, String, String, boolean, String, boolean, String, String, ServiceContext)- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addPage
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static void addPageResources(WikiPage page, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addPageResources
public static 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
public static 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
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
public static 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
public static 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
public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
createWikiPage
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
public static void deletePage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePage
public static void deletePage(WikiPage page) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePageAttachment
public static void deletePageAttachment(long nodeId, String title, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePageAttachments
public static void deletePageAttachments(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePages
public static void deletePages(long nodeId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteTempFileEntry
public static 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
public static void deleteTrashPageAttachments(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteWikiPage
public static 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
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
public static void discardDraft(long nodeId, String title, double version) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dslQueryCount
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dynamicQuery
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() -
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public static <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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.wiki.model.impl.WikiPageModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public static <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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.wiki.model.impl.WikiPageModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public static 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
public static 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 queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchLatestPage
-
fetchLatestPage
public static WikiPage fetchLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved) -
fetchLatestPage
-
fetchLatestPageByExternalReferenceCode
public static 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 groupexternalReferenceCode- the wiki page's external reference code- Returns:
- the latest matching wiki page, or
nullif no matching wiki page could be found
-
fetchPage
-
fetchPage
-
fetchPage
-
fetchPersistedModel
public static com.liferay.portal.kernel.model.PersistedModel fetchPersistedModel(Serializable primaryKeyObj) -
fetchWikiPage
-
fetchWikiPageByUuidAndGroupId
Returns the wiki page matching the UUID and group.- Parameters:
uuid- the wiki page's UUIDgroupId- the primary key of the group- Returns:
- the matching wiki page, or
nullif a matching wiki page could not be found
-
getActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getChildren
-
getChildren
-
getChildren
-
getChildren
-
getChildrenCount
-
getChildrenCount
-
getDependentPages
-
getDisplay
public static 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
public static WikiPage getDraftPage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getExportActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
getIncomingLinks
public static List<WikiPage> getIncomingLinks(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getIndexableActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getLatestPage
public static WikiPage getLatestPage(long resourcePrimKey, int status, boolean preferApproved) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLatestPage
public static 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
public static 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
public static 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 groupexternalReferenceCode- 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
public static List<WikiPage> getOrphans(List<WikiPage> pages) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOrphans
public static List<WikiPage> getOrphans(long nodeId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getOutgoingLinks
public static List<WikiPage> getOutgoingLinks(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPage
public static WikiPage getPage(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPage
public static WikiPage getPage(long resourcePrimKey, Boolean head) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPage
public static WikiPage getPage(long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPage
public static WikiPage getPage(long nodeId, String title, Boolean head) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPage
public static WikiPage getPage(long nodeId, String title, double version) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPageByPageId
public static WikiPage getPageByPageId(long pageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPageDisplay
public static 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
public static 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
public static 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
public static 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
-
getPages
-
getPages
-
getPages
-
getPages
-
getPages
-
getPages
-
getPages
-
getPages
-
getPages
-
getPages
-
getPages
-
getPages
-
getPagesCount
public static int getPagesCount(long nodeId) -
getPagesCount
public static int getPagesCount(long nodeId, boolean head) -
getPagesCount
public static int getPagesCount(long nodeId, boolean head, int status) -
getPagesCount
public static int getPagesCount(long nodeId, int status) -
getPagesCount
public static int getPagesCount(long userId, long nodeId, int status) -
getPagesCount
-
getPagesCount
-
getPagesCount
-
getPersistedModel
public static List<? extends com.liferay.portal.kernel.model.PersistedModel> getPersistedModel(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPersistedModel
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPreviousVersionPage
public static WikiPage getPreviousVersionPage(WikiPage page) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRecentChanges
-
getRecentChangesCount
public static int getRecentChangesCount(long groupId, long nodeId) -
getRedirectorPages
-
getRedirectorPages
-
getTempFileNames
public static String[] getTempFileNames(long groupId, long userId, String folderName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getWikiPage
public static 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
public static 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 UUIDgroupId- 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
Returns a range of all the wiki pages.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.wiki.model.impl.WikiPageModelImpl.- Parameters:
start- the lower bound of the range of wiki pagesend- the upper bound of the range of wiki pages (not inclusive)- Returns:
- the range of wiki pages
-
getWikiPagesByUuidAndCompanyId
Returns all the wiki pages matching the UUID and company.- Parameters:
uuid- the UUID of the wiki pagescompanyId- the primary key of the company- Returns:
- the matching wiki pages, or an empty list if no matches were found
-
getWikiPagesByUuidAndCompanyId
public static 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 pagescompanyId- the primary key of the companystart- the lower bound of the range of wiki pagesend- the upper bound of the range of wiki pages (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the range of matching wiki pages, or an empty list if no matches were found
-
getWikiPagesCount
public static int getWikiPagesCount()Returns the number of wiki pages.- Returns:
- the number of wiki pages
-
hasDraftPage
-
moveDependentToTrash
public static void moveDependentToTrash(WikiPage page, long trashEntryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
movePageAttachmentToTrash
public static 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
public static 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
public static WikiPage movePageToTrash(long userId, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
movePageToTrash
public static 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
public static WikiPage movePageToTrash(long userId, WikiPage page) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
renamePage
public static 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
public static 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
public static 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
public static void restorePageFromTrash(long userId, WikiPage page) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
revertPage
public static 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
public static void subscribePage(long userId, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribePage
public static void unsubscribePage(long userId, long nodeId, String title) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAsset
public static 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
-
updatePage
public static 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
public static 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
public static 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
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
-
getService
-
addPage(String, long, long, String, double, String, String, boolean, String, boolean, String, String, ServiceContext)