|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.wiki.service.WikiPageLocalServiceUtil
@ProviderType public class WikiPageLocalServiceUtil
Provides the local service utility for WikiPage. This utility wraps
WikiPageLocalServiceImpl and is the
primary 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.
WikiPageLocalService,
WikiPageLocalServiceBaseImpl,
WikiPageLocalServiceImpl| Constructor Summary | |
|---|---|
WikiPageLocalServiceUtil()
|
|
| Method Summary | ||
|---|---|---|
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,
ServiceContext serviceContext)
|
|
static WikiPage |
addPage(long userId,
long nodeId,
String title,
String content,
String summary,
boolean minorEdit,
ServiceContext serviceContext)
|
|
static void |
addPageAttachment(long userId,
long nodeId,
String title,
String fileName,
File file,
String mimeType)
|
|
static void |
addPageAttachment(long userId,
long nodeId,
String title,
String fileName,
InputStream inputStream,
String mimeType)
|
|
static void |
addPageAttachments(long userId,
long nodeId,
String title,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
|
|
static void |
addPageResources(long nodeId,
String title,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
|
static void |
addPageResources(long nodeId,
String title,
String[] groupPermissions,
String[] guestPermissions)
|
|
static void |
addPageResources(WikiPage page,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
|
static void |
addPageResources(WikiPage page,
String[] groupPermissions,
String[] guestPermissions)
|
|
static void |
addTempFileEntry(long groupId,
long userId,
String folderName,
String fileName,
InputStream inputStream,
String mimeType)
|
|
static void |
addTempPageAttachment(long groupId,
long userId,
String fileName,
String tempFolderName,
InputStream inputStream,
String mimeType)
Deprecated. As of 7.0.0 replaced by addTempFileEntry(long, long,
String, String, InputStream, String) |
|
static WikiPage |
addWikiPage(WikiPage wikiPage)
Adds the wiki page to the database. |
|
static void |
changeNode(long userId,
long nodeId,
String title,
long newNodeId,
ServiceContext serviceContext)
|
|
static WikiPage |
changeParent(long userId,
long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
|
|
static void |
copyPageAttachments(long userId,
long templateNodeId,
String templateTitle,
long nodeId,
String title)
|
|
static WikiPage |
createWikiPage(long pageId)
Creates a new wiki page with the primary key. |
|
static void |
deletePage(long nodeId,
String title)
|
|
static void |
deletePage(long nodeId,
String title,
double version)
Deprecated. As of 6.2.0 replaced by discardDraft(long, String,
double) |
|
static void |
deletePage(WikiPage page)
|
|
static void |
deletePageAttachment(long nodeId,
String title,
String fileName)
|
|
static void |
deletePageAttachments(long nodeId,
String title)
|
|
static void |
deletePages(long nodeId)
|
|
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel)
|
|
static void |
deleteTempFileEntry(long groupId,
long userId,
String folderName,
String fileName)
|
|
static void |
deleteTrashPageAttachments(long nodeId,
String title)
|
|
static WikiPage |
deleteWikiPage(long pageId)
Deletes the wiki page with the primary key from the database. |
|
static WikiPage |
deleteWikiPage(WikiPage wikiPage)
Deletes the wiki page from the database. |
|
static void |
discardDraft(long nodeId,
String title,
double version)
|
|
static DynamicQuery |
dynamicQuery()
|
|
static
|
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
|
static
|
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
|
static
|
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query. |
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query. |
|
static WikiPage |
fetchLatestPage(long resourcePrimKey,
int status,
boolean preferApproved)
|
|
static WikiPage |
fetchLatestPage(long resourcePrimKey,
long nodeId,
int status,
boolean preferApproved)
|
|
static WikiPage |
fetchLatestPage(long nodeId,
String title,
int status,
boolean preferApproved)
|
|
static WikiPage |
fetchPage(long resourcePrimKey)
|
|
static WikiPage |
fetchPage(long nodeId,
String title)
|
|
static WikiPage |
fetchPage(long nodeId,
String title,
double version)
|
|
static WikiPage |
fetchWikiPage(long pageId)
|
|
static WikiPage |
fetchWikiPageByUuidAndGroupId(String uuid,
long groupId)
Returns the wiki page matching the UUID and group. |
|
static ActionableDynamicQuery |
getActionableDynamicQuery()
|
|
static String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
|
static List<WikiPage> |
getChildren(long nodeId,
boolean head,
String parentTitle)
|
|
static List<WikiPage> |
getChildren(long nodeId,
boolean head,
String parentTitle,
int status)
|
|
static List<WikiPage> |
getChildren(long nodeId,
boolean head,
String parentTitle,
int start,
int end)
|
|
static int |
getChildrenCount(long nodeId,
boolean head,
String parentTitle)
|
|
static int |
getChildrenCount(long nodeId,
boolean head,
String parentTitle,
int status)
|
|
static List<WikiPage> |
getDependentPages(long nodeId,
boolean head,
String title,
int status)
|
|
static WikiPage |
getDraftPage(long nodeId,
String title)
|
|
static ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext)
|
|
static List<WikiPage> |
getIncomingLinks(long nodeId,
String title)
|
|
static WikiPage |
getLatestPage(long resourcePrimKey,
int status,
boolean preferApproved)
|
|
static WikiPage |
getLatestPage(long resourcePrimKey,
long nodeId,
int status,
boolean preferApproved)
|
|
static WikiPage |
getLatestPage(long nodeId,
String title,
int status,
boolean preferApproved)
|
|
static List<WikiPage> |
getNoAssetPages()
|
|
static List<WikiPage> |
getOrphans(long nodeId)
|
|
static List<WikiPage> |
getOutgoingLinks(long nodeId,
String title)
|
|
static WikiPage |
getPage(long resourcePrimKey)
|
|
static WikiPage |
getPage(long resourcePrimKey,
Boolean head)
|
|
static WikiPage |
getPage(long nodeId,
String title)
|
|
static WikiPage |
getPage(long nodeId,
String title,
Boolean head)
|
|
static WikiPage |
getPage(long nodeId,
String title,
double version)
|
|
static WikiPage |
getPageByPageId(long pageId)
|
|
static WikiPageDisplay |
getPageDisplay(long nodeId,
String title,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
|
|
static WikiPageDisplay |
getPageDisplay(WikiPage page,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
|
|
static List<WikiPage> |
getPages(long nodeId,
boolean head,
int start,
int end)
|
|
static List<WikiPage> |
getPages(long nodeId,
boolean head,
int status,
int start,
int end)
|
|
static List<WikiPage> |
getPages(long nodeId,
boolean head,
int status,
int start,
int end,
OrderByComparator<WikiPage> obc)
|
|
static List<WikiPage> |
getPages(long nodeId,
boolean head,
int start,
int end,
OrderByComparator<WikiPage> obc)
|
|
static List<WikiPage> |
getPages(long nodeId,
int start,
int end)
|
|
static List<WikiPage> |
getPages(long nodeId,
int start,
int end,
OrderByComparator<WikiPage> obc)
|
|
static List<WikiPage> |
getPages(long resourcePrimKey,
long nodeId,
int status)
|
|
static List<WikiPage> |
getPages(long userId,
long nodeId,
int status,
int start,
int end)
|
|
static List<WikiPage> |
getPages(long nodeId,
String title,
boolean head,
int start,
int end)
|
|
static List<WikiPage> |
getPages(long nodeId,
String title,
int start,
int end)
|
|
static List<WikiPage> |
getPages(long nodeId,
String title,
int start,
int end,
OrderByComparator<WikiPage> obc)
|
|
static List<WikiPage> |
getPages(String format)
|
|
static int |
getPagesCount(long nodeId)
|
|
static int |
getPagesCount(long nodeId,
boolean head)
|
|
static int |
getPagesCount(long nodeId,
boolean head,
int status)
|
|
static int |
getPagesCount(long nodeId,
int status)
|
|
static int |
getPagesCount(long userId,
long nodeId,
int status)
|
|
static int |
getPagesCount(long nodeId,
String title)
|
|
static int |
getPagesCount(long nodeId,
String title,
boolean head)
|
|
static int |
getPagesCount(String format)
|
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
|
static WikiPage |
getPreviousVersionPage(WikiPage page)
|
|
static List<WikiPage> |
getRecentChanges(long nodeId,
int start,
int end)
Deprecated. As of 6.2.0, replaced by getRecentChanges(long, long,
int, int) |
|
static List<WikiPage> |
getRecentChanges(long groupId,
long nodeId,
int start,
int end)
|
|
static int |
getRecentChangesCount(long nodeId)
Deprecated. As of 6.2.0, replaced by getRecentChangesCount(long,
long) |
|
static int |
getRecentChangesCount(long groupId,
long nodeId)
|
|
static List<WikiPage> |
getRedirectPages(long nodeId,
boolean head,
String redirectTitle,
int status)
|
|
static WikiPageLocalService |
getService()
|
|
static String[] |
getTempFileNames(long groupId,
long userId,
String folderName)
|
|
static WikiPage |
getWikiPage(long pageId)
Returns the wiki page with the primary key. |
|
static WikiPage |
getWikiPageByUuidAndGroupId(String uuid,
long groupId)
Returns the wiki page matching the UUID and group. |
|
static List<WikiPage> |
getWikiPages(int start,
int end)
Returns a range of all the wiki pages. |
|
static List<WikiPage> |
getWikiPagesByUuidAndCompanyId(String uuid,
long companyId)
Returns all the wiki pages matching the UUID and company. |
|
static List<WikiPage> |
getWikiPagesByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<WikiPage> orderByComparator)
Returns a range of wiki pages matching the UUID and company. |
|
static int |
getWikiPagesCount()
Returns the number of wiki pages. |
|
static boolean |
hasDraftPage(long nodeId,
String title)
|
|
static void |
moveDependentToTrash(WikiPage page,
long trashEntryId)
|
|
static void |
movePage(long userId,
long nodeId,
String title,
String newTitle,
boolean strict,
ServiceContext serviceContext)
Deprecated. As of 6.2.0, replaced by renamePage(long, long,
String, String, boolean, ServiceContext) |
|
static void |
movePage(long userId,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
Deprecated. As of 7.0.0, replaced by renamePage(long, long,
String, String, ServiceContext) |
|
static FileEntry |
movePageAttachmentToTrash(long userId,
long nodeId,
String title,
String fileName)
|
|
static WikiPage |
movePageFromTrash(long userId,
long nodeId,
String title,
long newNodeId,
String newParentTitle)
|
|
static WikiPage |
movePageFromTrash(long userId,
long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
Deprecated. As of 7.0.0, replaced by movePageFromTrash(long,
long, String, long, String) * |
|
static WikiPage |
movePageToTrash(long userId,
long nodeId,
String title)
|
|
static WikiPage |
movePageToTrash(long userId,
long nodeId,
String title,
double version)
|
|
static WikiPage |
movePageToTrash(long userId,
WikiPage page)
|
|
static void |
renamePage(long userId,
long nodeId,
String title,
String newTitle,
boolean strict,
ServiceContext serviceContext)
|
|
static void |
renamePage(long userId,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
|
|
static void |
restorePageAttachmentFromTrash(long userId,
long nodeId,
String title,
String fileName)
|
|
static void |
restorePageFromTrash(long userId,
WikiPage page)
|
|
static WikiPage |
revertPage(long userId,
long nodeId,
String title,
double version,
ServiceContext serviceContext)
|
|
static void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
|
void |
setService(WikiPageLocalService service)
Deprecated. As of 6.2.0 |
|
static void |
subscribePage(long userId,
long nodeId,
String title)
|
|
static void |
unsubscribePage(long userId,
long nodeId,
String title)
|
|
static void |
updateAsset(long userId,
WikiPage page,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
|
|
static WikiPage |
updatePage(long userId,
long nodeId,
String title,
double version,
String content,
String summary,
boolean minorEdit,
String format,
String parentTitle,
String redirectTitle,
ServiceContext serviceContext)
|
|
static WikiPage |
updateStatus(long userId,
long resourcePrimKey,
int status,
ServiceContext serviceContext)
|
|
static WikiPage |
updateStatus(long userId,
WikiPage page,
int status,
ServiceContext serviceContext)
Deprecated. As of 7.0.0, replaced by updateStatus(long, WikiPage,
int, ServiceContext, Map) |
|
static WikiPage |
updateStatus(long userId,
WikiPage page,
int status,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext)
|
|
static WikiPage |
updateWikiPage(WikiPage wikiPage)
Updates the wiki page in the database or adds it if it does not yet exist. |
|
static void |
validateTitle(String title)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WikiPageLocalServiceUtil()
| Method Detail |
|---|
public static WikiPage addPage(long userId,
long nodeId,
String title,
String content,
String summary,
boolean minorEdit,
ServiceContext serviceContext)
throws PortalException
PortalException
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,
ServiceContext serviceContext)
throws PortalException
PortalException
public static void addPageAttachment(long userId,
long nodeId,
String title,
String fileName,
File file,
String mimeType)
throws PortalException
PortalException
public static void addPageAttachment(long userId,
long nodeId,
String title,
String fileName,
InputStream inputStream,
String mimeType)
throws PortalException
PortalException
public static void addPageAttachments(long userId,
long nodeId,
String title,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
throws PortalException
PortalException
public static void addPageResources(long nodeId,
String title,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
PortalException
public static void addPageResources(long nodeId,
String title,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException
PortalException
public static void addPageResources(WikiPage page,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
PortalException
public static void addPageResources(WikiPage page,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException
PortalException
public static void addTempFileEntry(long groupId,
long userId,
String folderName,
String fileName,
InputStream inputStream,
String mimeType)
throws PortalException
PortalException
@Deprecated
public static void addTempPageAttachment(long groupId,
long userId,
String fileName,
String tempFolderName,
InputStream inputStream,
String mimeType)
throws PortalException
addTempFileEntry(long, long,
String, String, InputStream, String)
PortalExceptionpublic static WikiPage addWikiPage(WikiPage wikiPage)
wikiPage - the wiki page
public static void changeNode(long userId,
long nodeId,
String title,
long newNodeId,
ServiceContext serviceContext)
throws PortalException
PortalException
public static WikiPage changeParent(long userId,
long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
throws PortalException
PortalException
public static void copyPageAttachments(long userId,
long templateNodeId,
String templateTitle,
long nodeId,
String title)
throws PortalException
PortalExceptionpublic static WikiPage createWikiPage(long pageId)
pageId - the primary key for the new wiki page
public static void deletePage(long nodeId,
String title)
throws PortalException
PortalException
@Deprecated
public static void deletePage(long nodeId,
String title,
double version)
throws PortalException
discardDraft(long, String,
double)
PortalException
public static void deletePage(WikiPage page)
throws PortalException
PortalException
public static void deletePageAttachment(long nodeId,
String title,
String fileName)
throws PortalException
PortalException
public static void deletePageAttachments(long nodeId,
String title)
throws PortalException
PortalException
public static void deletePages(long nodeId)
throws PortalException
PortalException
public static PersistedModel deletePersistedModel(PersistedModel persistedModel)
throws PortalException
PortalException
public static void deleteTempFileEntry(long groupId,
long userId,
String folderName,
String fileName)
throws PortalException
PortalException
public static void deleteTrashPageAttachments(long nodeId,
String title)
throws PortalException
PortalException
public static WikiPage deleteWikiPage(long pageId)
throws PortalException
pageId - the primary key of the wiki page
PortalException - if a wiki page with the primary key could not be foundpublic static WikiPage deleteWikiPage(WikiPage wikiPage)
wikiPage - the wiki page
public static void discardDraft(long nodeId,
String title,
double version)
throws PortalException
PortalExceptionpublic static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from WikiPageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from WikiPageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null)
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query
public static long dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the query
public static WikiPage fetchLatestPage(long nodeId,
String title,
int status,
boolean preferApproved)
public static WikiPage fetchLatestPage(long resourcePrimKey,
long nodeId,
int status,
boolean preferApproved)
public static WikiPage fetchLatestPage(long resourcePrimKey,
int status,
boolean preferApproved)
public static WikiPage fetchPage(long nodeId,
String title)
public static WikiPage fetchPage(long nodeId,
String title,
double version)
public static WikiPage fetchPage(long resourcePrimKey)
public static WikiPage fetchWikiPage(long pageId)
public static WikiPage fetchWikiPageByUuidAndGroupId(String uuid,
long groupId)
uuid - the wiki page's UUIDgroupId - the primary key of the group
null if a matching wiki page could not be foundpublic static ActionableDynamicQuery getActionableDynamicQuery()
public static String getBeanIdentifier()
public static List<WikiPage> getChildren(long nodeId,
boolean head,
String parentTitle)
public static List<WikiPage> getChildren(long nodeId,
boolean head,
String parentTitle,
int start,
int end)
public static List<WikiPage> getChildren(long nodeId,
boolean head,
String parentTitle,
int status)
public static int getChildrenCount(long nodeId,
boolean head,
String parentTitle)
public static int getChildrenCount(long nodeId,
boolean head,
String parentTitle,
int status)
public static List<WikiPage> getDependentPages(long nodeId,
boolean head,
String title,
int status)
public static WikiPage getDraftPage(long nodeId,
String title)
throws PortalException
PortalExceptionpublic static ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
public static List<WikiPage> getIncomingLinks(long nodeId,
String title)
throws PortalException
PortalException
public static WikiPage getLatestPage(long nodeId,
String title,
int status,
boolean preferApproved)
throws PortalException
PortalException
public static WikiPage getLatestPage(long resourcePrimKey,
long nodeId,
int status,
boolean preferApproved)
throws PortalException
PortalException
public static WikiPage getLatestPage(long resourcePrimKey,
int status,
boolean preferApproved)
throws PortalException
PortalExceptionpublic static List<WikiPage> getNoAssetPages()
public static List<WikiPage> getOrphans(long nodeId)
throws PortalException
PortalException
public static List<WikiPage> getOutgoingLinks(long nodeId,
String title)
throws PortalException
PortalException
public static WikiPage getPage(long nodeId,
String title)
throws PortalException
PortalException
public static WikiPage getPage(long nodeId,
String title,
Boolean head)
throws PortalException
PortalException
public static WikiPage getPage(long nodeId,
String title,
double version)
throws PortalException
PortalException
public static WikiPage getPage(long resourcePrimKey)
throws PortalException
PortalException
public static WikiPage getPage(long resourcePrimKey,
Boolean head)
throws PortalException
PortalException
public static WikiPage getPageByPageId(long pageId)
throws PortalException
PortalException
public static WikiPageDisplay getPageDisplay(long nodeId,
String title,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
throws PortalException
PortalException
public static WikiPageDisplay getPageDisplay(WikiPage page,
PortletURL viewPageURL,
PortletURL editPageURL,
String attachmentURLPrefix)
throws PortalException
PortalExceptionpublic static List<WikiPage> getPages(String format)
public static List<WikiPage> getPages(long nodeId,
boolean head,
int start,
int end)
public static List<WikiPage> getPages(long nodeId,
boolean head,
int start,
int end,
OrderByComparator<WikiPage> obc)
public static List<WikiPage> getPages(long nodeId,
boolean head,
int status,
int start,
int end)
public static List<WikiPage> getPages(long nodeId,
boolean head,
int status,
int start,
int end,
OrderByComparator<WikiPage> obc)
public static List<WikiPage> getPages(long nodeId,
int start,
int end)
public static List<WikiPage> getPages(long nodeId,
int start,
int end,
OrderByComparator<WikiPage> obc)
public static List<WikiPage> getPages(long nodeId,
String title,
boolean head,
int start,
int end)
public static List<WikiPage> getPages(long nodeId,
String title,
int start,
int end)
public static List<WikiPage> getPages(long nodeId,
String title,
int start,
int end,
OrderByComparator<WikiPage> obc)
public static List<WikiPage> getPages(long resourcePrimKey,
long nodeId,
int status)
public static List<WikiPage> getPages(long userId,
long nodeId,
int status,
int start,
int end)
public static int getPagesCount(String format)
public static int getPagesCount(long nodeId)
public static int getPagesCount(long nodeId,
boolean head)
public static int getPagesCount(long nodeId,
boolean head,
int status)
public static int getPagesCount(long nodeId,
int status)
public static int getPagesCount(long nodeId,
String title)
public static int getPagesCount(long nodeId,
String title,
boolean head)
public static int getPagesCount(long userId,
long nodeId,
int status)
public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException
PortalException
public static WikiPage getPreviousVersionPage(WikiPage page)
throws PortalException
PortalException
public static List<WikiPage> getRecentChanges(long groupId,
long nodeId,
int start,
int end)
@Deprecated
public static List<WikiPage> getRecentChanges(long nodeId,
int start,
int end)
throws PortalException
getRecentChanges(long, long,
int, int)
PortalException
public static int getRecentChangesCount(long groupId,
long nodeId)
@Deprecated
public static int getRecentChangesCount(long nodeId)
throws PortalException
getRecentChangesCount(long,
long)
PortalException
public static List<WikiPage> getRedirectPages(long nodeId,
boolean head,
String redirectTitle,
int status)
public static String[] getTempFileNames(long groupId,
long userId,
String folderName)
throws PortalException
PortalException
public static WikiPage getWikiPage(long pageId)
throws PortalException
pageId - the primary key of the wiki page
PortalException - if a wiki page with the primary key could not be found
public static WikiPage getWikiPageByUuidAndGroupId(String uuid,
long groupId)
throws PortalException
uuid - the wiki page's UUIDgroupId - the primary key of the group
PortalException - if a matching wiki page could not be found
public static List<WikiPage> getWikiPages(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from WikiPageModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of wiki pagesend - the upper bound of the range of wiki pages (not inclusive)
public static List<WikiPage> getWikiPagesByUuidAndCompanyId(String uuid,
long companyId)
uuid - the UUID of the wiki pagescompanyId - the primary key of the company
public static List<WikiPage> getWikiPagesByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<WikiPage> orderByComparator)
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 (optionally null)
public static int getWikiPagesCount()
public static boolean hasDraftPage(long nodeId,
String title)
public static void moveDependentToTrash(WikiPage page,
long trashEntryId)
throws PortalException
PortalException
@Deprecated
public static void movePage(long userId,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
throws PortalException
renamePage(long, long,
String, String, ServiceContext)
PortalException
@Deprecated
public static void movePage(long userId,
long nodeId,
String title,
String newTitle,
boolean strict,
ServiceContext serviceContext)
throws PortalException
renamePage(long, long,
String, String, boolean, ServiceContext)
PortalException
public static FileEntry movePageAttachmentToTrash(long userId,
long nodeId,
String title,
String fileName)
throws PortalException
PortalException
public static WikiPage movePageFromTrash(long userId,
long nodeId,
String title,
long newNodeId,
String newParentTitle)
throws PortalException
PortalException
@Deprecated
public static WikiPage movePageFromTrash(long userId,
long nodeId,
String title,
String newParentTitle,
ServiceContext serviceContext)
throws PortalException
movePageFromTrash(long,
long, String, long, String) *
PortalException
public static WikiPage movePageToTrash(long userId,
long nodeId,
String title)
throws PortalException
PortalException
public static WikiPage movePageToTrash(long userId,
long nodeId,
String title,
double version)
throws PortalException
PortalException
public static WikiPage movePageToTrash(long userId,
WikiPage page)
throws PortalException
PortalException
public static void renamePage(long userId,
long nodeId,
String title,
String newTitle,
ServiceContext serviceContext)
throws PortalException
PortalException
public static void renamePage(long userId,
long nodeId,
String title,
String newTitle,
boolean strict,
ServiceContext serviceContext)
throws PortalException
PortalException
public static void restorePageAttachmentFromTrash(long userId,
long nodeId,
String title,
String fileName)
throws PortalException
PortalException
public static void restorePageFromTrash(long userId,
WikiPage page)
throws PortalException
PortalException
public static WikiPage revertPage(long userId,
long nodeId,
String title,
double version,
ServiceContext serviceContext)
throws PortalException
PortalExceptionpublic static void setBeanIdentifier(String beanIdentifier)
beanIdentifier - the Spring bean ID for this bean
public static void subscribePage(long userId,
long nodeId,
String title)
throws PortalException
PortalException
public static void unsubscribePage(long userId,
long nodeId,
String title)
throws PortalException
PortalException
public static void updateAsset(long userId,
WikiPage page,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException
PortalException
public static WikiPage updatePage(long userId,
long nodeId,
String title,
double version,
String content,
String summary,
boolean minorEdit,
String format,
String parentTitle,
String redirectTitle,
ServiceContext serviceContext)
throws PortalException
PortalException
@Deprecated
public static WikiPage updateStatus(long userId,
WikiPage page,
int status,
ServiceContext serviceContext)
throws PortalException
updateStatus(long, WikiPage,
int, ServiceContext, Map)
PortalException
public static WikiPage updateStatus(long userId,
WikiPage page,
int status,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext)
throws PortalException
PortalException
public static WikiPage updateStatus(long userId,
long resourcePrimKey,
int status,
ServiceContext serviceContext)
throws PortalException
PortalExceptionpublic static WikiPage updateWikiPage(WikiPage wikiPage)
wikiPage - the wiki page
public static void validateTitle(String title)
throws PortalException
PortalExceptionpublic static WikiPageLocalService getService()
@Deprecated public void setService(WikiPageLocalService service)
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||