Liferay 6.2-ce-ga5

com.liferay.portlet.wiki.service
Class WikiPageLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.wiki.service.WikiPageLocalServiceUtil

@ProviderType
public class WikiPageLocalServiceUtil
extends Object

Provides the local service utility for WikiPage. This utility wraps com.liferay.portlet.wiki.service.impl.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.

See Also:
WikiPageLocalService, com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl, com.liferay.portlet.wiki.service.impl.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 addTempPageAttachment(long groupId, long userId, String fileName, String tempFolderName, InputStream inputStream, String mimeType)
           
static WikiPage addWikiPage(WikiPage wikiPage)
          Adds the wiki page to the database.
static void 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 void deleteTempPageAttachment(long groupId, long userId, String fileName, String tempFolderName)
           
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 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator 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 that match the dynamic query.
static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match 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 nodeId, String title)
           
static WikiPage fetchPage(long nodeId, String title, double version)
           
static WikiPage fetchWikiPage(long pageId)
           
static WikiPage fetchWikiPageByUuidAndCompanyId(String uuid, long companyId)
          Returns the wiki page with the matching UUID and company.
static WikiPage fetchWikiPageByUuidAndGroupId(String uuid, long groupId)
          Returns the wiki page matching the UUID and group.
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle)
           
static WikiPage getDraftPage(long nodeId, String title)
           
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 obc)
           
static List<WikiPage> getPages(long nodeId, boolean head, int start, int end, OrderByComparator obc)
           
static List<WikiPage> getPages(long nodeId, int start, int end)
           
static List<WikiPage> getPages(long nodeId, int start, int end, OrderByComparator 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 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 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 WikiPageLocalService getService()
           
static String[] getTempPageAttachmentNames(long groupId, long userId, String tempFolderName)
           
static WikiPage getWikiPage(long pageId)
          Returns the wiki page with the primary key.
static WikiPage getWikiPageByUuidAndCompanyId(String uuid, long companyId)
          Returns the wiki page with the matching UUID and company.
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 int getWikiPagesCount()
          Returns the number of wiki pages.
static boolean hasDraftPage(long nodeId, String title)
           
static void movePage(long userId, long nodeId, String title, String newTitle, boolean strict, ServiceContext serviceContext)
           
static void movePage(long userId, long nodeId, String title, String newTitle, ServiceContext serviceContext)
           
static FileEntry movePageAttachmentToTrash(long userId, long nodeId, String title, String fileName)
           
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 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)
           
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

WikiPageLocalServiceUtil

public WikiPageLocalServiceUtil()
Method Detail

addWikiPage

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

Parameters:
wikiPage - the wiki page
Returns:
the wiki page that was added
Throws:
SystemException - if a system exception occurred

createWikiPage

public static 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

deleteWikiPage

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

Parameters:
pageId - the primary key of the wiki page
Returns:
the wiki page that was removed
Throws:
PortalException - if a wiki page with the primary key could not be found
SystemException - if a system exception occurred

deleteWikiPage

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

Parameters:
wikiPage - the wiki page
Returns:
the wiki page that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static DynamicQuery dynamicQuery()

dynamicQuery

public static List dynamicQuery(DynamicQuery dynamicQuery)
                         throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

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

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
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

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

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
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Returns the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery,
                                     Projection projection)
                              throws SystemException
Returns the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchWikiPage

public static WikiPage fetchWikiPage(long pageId)
                              throws SystemException
Throws:
SystemException

fetchWikiPageByUuidAndCompanyId

public static WikiPage fetchWikiPageByUuidAndCompanyId(String uuid,
                                                       long companyId)
                                                throws SystemException
Returns the wiki page with the matching UUID and company.

Parameters:
uuid - the wiki page's UUID
companyId - the primary key of the company
Returns:
the matching wiki page, or null if a matching wiki page could not be found
Throws:
SystemException - if a system exception occurred

fetchWikiPageByUuidAndGroupId

public static WikiPage fetchWikiPageByUuidAndGroupId(String uuid,
                                                     long groupId)
                                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

getWikiPage

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

Parameters:
pageId - the primary key of the wiki page
Returns:
the wiki page
Throws:
PortalException - if a wiki page with the primary key could not be found
SystemException - if a system exception occurred

getPersistedModel

public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getWikiPageByUuidAndCompanyId

public static WikiPage getWikiPageByUuidAndCompanyId(String uuid,
                                                     long companyId)
                                              throws PortalException,
                                                     SystemException
Returns the wiki page with the matching UUID and company.

Parameters:
uuid - the wiki page's UUID
companyId - the primary key of the company
Returns:
the matching wiki page
Throws:
PortalException - if a matching wiki page could not be found
SystemException - if a system exception occurred

getWikiPageByUuidAndGroupId

public static WikiPage getWikiPageByUuidAndGroupId(String uuid,
                                                   long groupId)
                                            throws PortalException,
                                                   SystemException
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:
PortalException - if a matching wiki page could not be found
SystemException - if a system exception occurred

getWikiPages

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

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

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
Throws:
SystemException - if a system exception occurred

getWikiPagesCount

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

Returns:
the number of wiki pages
Throws:
SystemException - if a system exception occurred

updateWikiPage

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

Parameters:
wikiPage - the wiki page
Returns:
the wiki page that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

addPage

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,
                               SystemException
Throws:
PortalException
SystemException

addPage

public static WikiPage addPage(long userId,
                               long nodeId,
                               String title,
                               String content,
                               String summary,
                               boolean minorEdit,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

addPageAttachment

public static void addPageAttachment(long userId,
                                     long nodeId,
                                     String title,
                                     String fileName,
                                     File file,
                                     String mimeType)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

addPageAttachment

public static void addPageAttachment(long userId,
                                     long nodeId,
                                     String title,
                                     String fileName,
                                     InputStream inputStream,
                                     String mimeType)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

addPageAttachments

public static void addPageAttachments(long userId,
                                      long nodeId,
                                      String title,
                                      List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

addPageResources

public static void addPageResources(long nodeId,
                                    String title,
                                    boolean addGroupPermissions,
                                    boolean addGuestPermissions)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

addPageResources

public static void addPageResources(long nodeId,
                                    String title,
                                    String[] groupPermissions,
                                    String[] guestPermissions)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

addPageResources

public static void addPageResources(WikiPage page,
                                    boolean addGroupPermissions,
                                    boolean addGuestPermissions)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

addPageResources

public static void addPageResources(WikiPage page,
                                    String[] groupPermissions,
                                    String[] guestPermissions)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

addTempPageAttachment

public static void addTempPageAttachment(long groupId,
                                         long userId,
                                         String fileName,
                                         String tempFolderName,
                                         InputStream inputStream,
                                         String mimeType)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

changeParent

public static void changeParent(long userId,
                                long nodeId,
                                String title,
                                String newParentTitle,
                                ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

copyPageAttachments

public static void copyPageAttachments(long userId,
                                       long templateNodeId,
                                       String templateTitle,
                                       long nodeId,
                                       String title)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

deletePage

public static void deletePage(long nodeId,
                              String title)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deletePage

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

Throws:
PortalException
SystemException

deletePage

public static void deletePage(WikiPage page)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deletePageAttachment

public static void deletePageAttachment(long nodeId,
                                        String title,
                                        String fileName)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

deletePageAttachments

public static void deletePageAttachments(long nodeId,
                                         String title)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

deletePages

public static void deletePages(long nodeId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

deleteTempPageAttachment

public static void deleteTempPageAttachment(long groupId,
                                            long userId,
                                            String fileName,
                                            String tempFolderName)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

deleteTrashPageAttachments

public static void deleteTrashPageAttachments(long nodeId,
                                              String title)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

discardDraft

public static void discardDraft(long nodeId,
                                String title,
                                double version)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

fetchLatestPage

public static WikiPage fetchLatestPage(long resourcePrimKey,
                                       int status,
                                       boolean preferApproved)
                                throws SystemException
Throws:
SystemException

fetchLatestPage

public static WikiPage fetchLatestPage(long resourcePrimKey,
                                       long nodeId,
                                       int status,
                                       boolean preferApproved)
                                throws SystemException
Throws:
SystemException

fetchLatestPage

public static WikiPage fetchLatestPage(long nodeId,
                                       String title,
                                       int status,
                                       boolean preferApproved)
                                throws SystemException
Throws:
SystemException

fetchPage

public static WikiPage fetchPage(long nodeId,
                                 String title)
                          throws SystemException
Throws:
SystemException

fetchPage

public static WikiPage fetchPage(long nodeId,
                                 String title,
                                 double version)
                          throws SystemException
Throws:
SystemException

getChildren

public static List<WikiPage> getChildren(long nodeId,
                                         boolean head,
                                         String parentTitle)
                                  throws SystemException
Throws:
SystemException

getDraftPage

public static WikiPage getDraftPage(long nodeId,
                                    String title)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getIncomingLinks

public static List<WikiPage> getIncomingLinks(long nodeId,
                                              String title)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getLatestPage

public static WikiPage getLatestPage(long resourcePrimKey,
                                     int status,
                                     boolean preferApproved)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getLatestPage

public static WikiPage getLatestPage(long resourcePrimKey,
                                     long nodeId,
                                     int status,
                                     boolean preferApproved)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getLatestPage

public static WikiPage getLatestPage(long nodeId,
                                     String title,
                                     int status,
                                     boolean preferApproved)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getNoAssetPages

public static List<WikiPage> getNoAssetPages()
                                      throws SystemException
Throws:
SystemException

getOrphans

public static List<WikiPage> getOrphans(long nodeId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getOutgoingLinks

public static List<WikiPage> getOutgoingLinks(long nodeId,
                                              String title)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getPage

public static WikiPage getPage(long resourcePrimKey)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getPage

public static WikiPage getPage(long resourcePrimKey,
                               Boolean head)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getPage

public static WikiPage getPage(long nodeId,
                               String title)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getPage

public static WikiPage getPage(long nodeId,
                               String title,
                               Boolean head)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getPage

public static WikiPage getPage(long nodeId,
                               String title,
                               double version)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getPageByPageId

public static WikiPage getPageByPageId(long pageId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getPageDisplay

public static WikiPageDisplay getPageDisplay(long nodeId,
                                             String title,
                                             PortletURL viewPageURL,
                                             PortletURL editPageURL,
                                             String attachmentURLPrefix)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getPageDisplay

public static WikiPageDisplay getPageDisplay(WikiPage page,
                                             PortletURL viewPageURL,
                                             PortletURL editPageURL,
                                             String attachmentURLPrefix)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getPages

public static List<WikiPage> getPages(long nodeId,
                                      boolean head,
                                      int start,
                                      int end)
                               throws SystemException
Throws:
SystemException

getPages

public static List<WikiPage> getPages(long nodeId,
                                      boolean head,
                                      int status,
                                      int start,
                                      int end)
                               throws SystemException
Throws:
SystemException

getPages

public static List<WikiPage> getPages(long nodeId,
                                      boolean head,
                                      int status,
                                      int start,
                                      int end,
                                      OrderByComparator obc)
                               throws SystemException
Throws:
SystemException

getPages

public static List<WikiPage> getPages(long nodeId,
                                      boolean head,
                                      int start,
                                      int end,
                                      OrderByComparator obc)
                               throws SystemException
Throws:
SystemException

getPages

public static List<WikiPage> getPages(long nodeId,
                                      int start,
                                      int end)
                               throws SystemException
Throws:
SystemException

getPages

public static List<WikiPage> getPages(long nodeId,
                                      int start,
                                      int end,
                                      OrderByComparator obc)
                               throws SystemException
Throws:
SystemException

getPages

public static List<WikiPage> getPages(long resourcePrimKey,
                                      long nodeId,
                                      int status)
                               throws SystemException
Throws:
SystemException

getPages

public static List<WikiPage> getPages(long userId,
                                      long nodeId,
                                      int status,
                                      int start,
                                      int end)
                               throws SystemException
Throws:
SystemException

getPages

public static List<WikiPage> getPages(long nodeId,
                                      String title,
                                      boolean head,
                                      int start,
                                      int end)
                               throws SystemException
Throws:
SystemException

getPages

public static List<WikiPage> getPages(long nodeId,
                                      String title,
                                      int start,
                                      int end)
                               throws SystemException
Throws:
SystemException

getPages

public static List<WikiPage> getPages(long nodeId,
                                      String title,
                                      int start,
                                      int end,
                                      OrderByComparator obc)
                               throws SystemException
Throws:
SystemException

getPages

public static List<WikiPage> getPages(String format)
                               throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(long nodeId)
                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(long nodeId,
                                boolean head)
                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(long nodeId,
                                boolean head,
                                int status)
                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(long nodeId,
                                int status)
                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(long userId,
                                long nodeId,
                                int status)
                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(long nodeId,
                                String title)
                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(long nodeId,
                                String title,
                                boolean head)
                         throws SystemException
Throws:
SystemException

getPagesCount

public static int getPagesCount(String format)
                         throws SystemException
Throws:
SystemException

getRecentChanges

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

Throws:
PortalException
SystemException

getRecentChanges

public static List<WikiPage> getRecentChanges(long groupId,
                                              long nodeId,
                                              int start,
                                              int end)
                                       throws SystemException
Throws:
SystemException

getRecentChangesCount

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

Throws:
PortalException
SystemException

getRecentChangesCount

public static int getRecentChangesCount(long groupId,
                                        long nodeId)
                                 throws SystemException
Throws:
SystemException

getTempPageAttachmentNames

public static String[] getTempPageAttachmentNames(long groupId,
                                                  long userId,
                                                  String tempFolderName)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

hasDraftPage

public static boolean hasDraftPage(long nodeId,
                                   String title)
                            throws SystemException
Throws:
SystemException

movePage

public static void movePage(long userId,
                            long nodeId,
                            String title,
                            String newTitle,
                            boolean strict,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

movePage

public static void movePage(long userId,
                            long nodeId,
                            String title,
                            String newTitle,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

movePageAttachmentToTrash

public static FileEntry movePageAttachmentToTrash(long userId,
                                                  long nodeId,
                                                  String title,
                                                  String fileName)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

movePageToTrash

public static WikiPage movePageToTrash(long userId,
                                       long nodeId,
                                       String title)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

movePageToTrash

public static WikiPage movePageToTrash(long userId,
                                       long nodeId,
                                       String title,
                                       double version)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

movePageToTrash

public static WikiPage movePageToTrash(long userId,
                                       WikiPage page)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

restorePageAttachmentFromTrash

public static void restorePageAttachmentFromTrash(long userId,
                                                  long nodeId,
                                                  String title,
                                                  String fileName)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

restorePageFromTrash

public static void restorePageFromTrash(long userId,
                                        WikiPage page)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

revertPage

public static WikiPage revertPage(long userId,
                                  long nodeId,
                                  String title,
                                  double version,
                                  ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

subscribePage

public static void subscribePage(long userId,
                                 long nodeId,
                                 String title)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

unsubscribePage

public static void unsubscribePage(long userId,
                                   long nodeId,
                                   String title)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

updateAsset

public static void updateAsset(long userId,
                               WikiPage page,
                               long[] assetCategoryIds,
                               String[] assetTagNames,
                               long[] assetLinkEntryIds)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

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,
                                  ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

updateStatus

public static WikiPage updateStatus(long userId,
                                    long resourcePrimKey,
                                    int status,
                                    ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

updateStatus

public static WikiPage updateStatus(long userId,
                                    WikiPage page,
                                    int status,
                                    ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

validateTitle

public static void validateTitle(String title)
                          throws PortalException
Throws:
PortalException

getService

public static WikiPageLocalService getService()

setService

public void setService(WikiPageLocalService service)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5