Liferay 6.2.0

com.liferay.portlet.wiki.service
Interface WikiPageLocalService

All Superinterfaces:
BaseLocalService, PersistedModelLocalService
All Known Implementing Classes:
WikiPageLocalServiceBaseImpl, WikiPageLocalServiceImpl, WikiPageLocalServiceWrapper

@ProviderType
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface WikiPageLocalService
extends BaseLocalService, PersistedModelLocalService

Provides the local service interface for WikiPage. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
WikiPageLocalServiceUtil, WikiPageLocalServiceBaseImpl, WikiPageLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
abstract  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)
           
abstract  WikiPage addPage(long userId, long nodeId, String title, String content, String summary, boolean minorEdit, ServiceContext serviceContext)
           
abstract  void addPageAttachment(long userId, long nodeId, String title, String fileName, File file, String mimeType)
           
abstract  void addPageAttachment(long userId, long nodeId, String title, String fileName, InputStream inputStream, String mimeType)
           
abstract  void addPageAttachments(long userId, long nodeId, String title, List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
           
abstract  void addPageResources(long nodeId, String title, boolean addGroupPermissions, boolean addGuestPermissions)
           
abstract  void addPageResources(long nodeId, String title, String[] groupPermissions, String[] guestPermissions)
           
abstract  void addPageResources(WikiPage page, boolean addGroupPermissions, boolean addGuestPermissions)
           
abstract  void addPageResources(WikiPage page, String[] groupPermissions, String[] guestPermissions)
           
abstract  void addTempPageAttachment(long groupId, long userId, String fileName, String tempFolderName, InputStream inputStream, String mimeType)
           
abstract  WikiPage addWikiPage(WikiPage wikiPage)
          Adds the wiki page to the database.
abstract  void changeParent(long userId, long nodeId, String title, String newParentTitle, ServiceContext serviceContext)
           
abstract  void copyPageAttachments(long userId, long templateNodeId, String templateTitle, long nodeId, String title)
           
abstract  WikiPage createWikiPage(long pageId)
          Creates a new wiki page with the primary key.
abstract  void deletePage(long nodeId, String title)
           
abstract  void deletePage(long nodeId, String title, double version)
          Deprecated. As of 6.2.0 replaced by discardDraft(long, String, double)
abstract  void deletePage(WikiPage page)
           
abstract  void deletePageAttachment(long nodeId, String title, String fileName)
           
abstract  void deletePageAttachments(long nodeId, String title)
           
abstract  void deletePages(long nodeId)
           
abstract  void deleteTempPageAttachment(long groupId, long userId, String fileName, String tempFolderName)
           
abstract  void deleteTrashPageAttachments(long nodeId, String title)
           
abstract  WikiPage deleteWikiPage(long pageId)
          Deletes the wiki page with the primary key from the database.
abstract  WikiPage deleteWikiPage(WikiPage wikiPage)
          Deletes the wiki page from the database.
abstract  void discardDraft(long nodeId, String title, double version)
           
abstract  DynamicQuery dynamicQuery()
           
abstract  List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
abstract  List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
abstract  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.
abstract  long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows that match the dynamic query.
abstract  long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match the dynamic query.
abstract  WikiPage fetchLatestPage(long resourcePrimKey, int status, boolean preferApproved)
           
abstract  WikiPage fetchLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved)
           
abstract  WikiPage fetchLatestPage(long nodeId, String title, int status, boolean preferApproved)
           
abstract  WikiPage fetchPage(long nodeId, String title, double version)
           
abstract  WikiPage fetchWikiPage(long pageId)
           
abstract  WikiPage fetchWikiPageByUuidAndCompanyId(String uuid, long companyId)
          Returns the wiki page with the matching UUID and company.
abstract  WikiPage fetchWikiPageByUuidAndGroupId(String uuid, long groupId)
          Returns the wiki page matching the UUID and group.
abstract  String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
abstract  List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle)
           
abstract  WikiPage getDraftPage(long nodeId, String title)
           
abstract  List<WikiPage> getIncomingLinks(long nodeId, String title)
           
abstract  WikiPage getLatestPage(long resourcePrimKey, int status, boolean preferApproved)
           
abstract  WikiPage getLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved)
           
abstract  WikiPage getLatestPage(long nodeId, String title, int status, boolean preferApproved)
           
abstract  List<WikiPage> getNoAssetPages()
           
abstract  List<WikiPage> getOrphans(long nodeId)
           
abstract  List<WikiPage> getOutgoingLinks(long nodeId, String title)
           
abstract  WikiPage getPage(long resourcePrimKey)
           
abstract  WikiPage getPage(long resourcePrimKey, Boolean head)
           
abstract  WikiPage getPage(long nodeId, String title)
           
abstract  WikiPage getPage(long nodeId, String title, Boolean head)
           
abstract  WikiPage getPage(long nodeId, String title, double version)
           
abstract  WikiPage getPageByPageId(long pageId)
           
abstract  WikiPageDisplay getPageDisplay(long nodeId, String title, PortletURL viewPageURL, PortletURL editPageURL, String attachmentURLPrefix)
           
abstract  WikiPageDisplay getPageDisplay(WikiPage page, PortletURL viewPageURL, PortletURL editPageURL, String attachmentURLPrefix)
           
abstract  List<WikiPage> getPages(long nodeId, boolean head, int start, int end)
           
abstract  List<WikiPage> getPages(long nodeId, boolean head, int status, int start, int end)
           
abstract  List<WikiPage> getPages(long nodeId, boolean head, int status, int start, int end, OrderByComparator obc)
           
abstract  List<WikiPage> getPages(long nodeId, boolean head, int start, int end, OrderByComparator obc)
           
abstract  List<WikiPage> getPages(long nodeId, int start, int end)
           
abstract  List<WikiPage> getPages(long nodeId, int start, int end, OrderByComparator obc)
           
abstract  List<WikiPage> getPages(long resourcePrimKey, long nodeId, int status)
           
abstract  List<WikiPage> getPages(long userId, long nodeId, int status, int start, int end)
           
abstract  List<WikiPage> getPages(long nodeId, String title, boolean head, int start, int end)
           
abstract  List<WikiPage> getPages(long nodeId, String title, int start, int end)
           
abstract  List<WikiPage> getPages(long nodeId, String title, int start, int end, OrderByComparator obc)
           
abstract  List<WikiPage> getPages(String format)
           
abstract  int getPagesCount(long nodeId)
           
abstract  int getPagesCount(long nodeId, boolean head)
           
abstract  int getPagesCount(long nodeId, boolean head, int status)
           
abstract  int getPagesCount(long nodeId, int status)
           
abstract  int getPagesCount(long userId, long nodeId, int status)
           
abstract  int getPagesCount(long nodeId, String title)
           
abstract  int getPagesCount(long nodeId, String title, boolean head)
           
abstract  int getPagesCount(String format)
           
abstract  PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
abstract  List<WikiPage> getRecentChanges(long nodeId, int start, int end)
          Deprecated. As of 6.2.0, replaced by getRecentChanges(long, long, int, int)
abstract  List<WikiPage> getRecentChanges(long groupId, long nodeId, int start, int end)
           
abstract  int getRecentChangesCount(long nodeId)
          Deprecated. As of 6.2.0, replaced by getRecentChangesCount(long, long)
abstract  int getRecentChangesCount(long groupId, long nodeId)
           
abstract  String[] getTempPageAttachmentNames(long groupId, long userId, String tempFolderName)
           
abstract  WikiPage getWikiPage(long pageId)
          Returns the wiki page with the primary key.
abstract  WikiPage getWikiPageByUuidAndCompanyId(String uuid, long companyId)
          Returns the wiki page with the matching UUID and company.
abstract  WikiPage getWikiPageByUuidAndGroupId(String uuid, long groupId)
          Returns the wiki page matching the UUID and group.
abstract  List<WikiPage> getWikiPages(int start, int end)
          Returns a range of all the wiki pages.
abstract  int getWikiPagesCount()
          Returns the number of wiki pages.
abstract  boolean hasDraftPage(long nodeId, String title)
           
abstract  void movePage(long userId, long nodeId, String title, String newTitle, boolean strict, ServiceContext serviceContext)
           
abstract  void movePage(long userId, long nodeId, String title, String newTitle, ServiceContext serviceContext)
           
abstract  FileEntry movePageAttachmentToTrash(long userId, long nodeId, String title, String fileName)
           
abstract  WikiPage movePageToTrash(long userId, long nodeId, String title)
           
abstract  WikiPage movePageToTrash(long userId, long nodeId, String title, double version)
           
abstract  WikiPage movePageToTrash(long userId, WikiPage page)
           
abstract  void restorePageAttachmentFromTrash(long userId, long nodeId, String title, String fileName)
           
abstract  void restorePageFromTrash(long userId, WikiPage page)
           
abstract  WikiPage revertPage(long userId, long nodeId, String title, double version, ServiceContext serviceContext)
           
abstract  void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
abstract  void subscribePage(long userId, long nodeId, String title)
           
abstract  void unsubscribePage(long userId, long nodeId, String title)
           
abstract  void updateAsset(long userId, WikiPage page, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
abstract  WikiPage updatePage(long userId, long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, ServiceContext serviceContext)
           
abstract  WikiPage updateStatus(long userId, long resourcePrimKey, int status, ServiceContext serviceContext)
           
abstract  WikiPage updateStatus(long userId, WikiPage page, int status, ServiceContext serviceContext)
           
abstract  WikiPage updateWikiPage(WikiPage wikiPage)
          Updates the wiki page in the database or adds it if it does not yet exist.
abstract  void validateTitle(String title)
           
 

Method Detail

addWikiPage

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

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

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

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

DynamicQuery dynamicQuery()

dynamicQuery

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

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

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

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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage fetchWikiPage(long pageId)
                       throws SystemException
Throws:
SystemException

fetchWikiPageByUuidAndCompanyId

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

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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException
SystemException

getWikiPageByUuidAndCompanyId

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

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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getWikiPagesCount()
                      throws SystemException
Returns the number of wiki pages.

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

updateWikiPage

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

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

Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

addPage

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

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

addPageAttachment

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

addPageAttachment

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

addPageAttachments

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

addPageResources

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

addPageResources

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

addPageResources

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

addPageResources

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

addTempPageAttachment

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

changeParent

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

copyPageAttachments

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

deletePage

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

deletePage

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

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

deletePageAttachment

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

deletePageAttachments

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

deletePages

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

deleteTempPageAttachment

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

deleteTrashPageAttachments

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

discardDraft

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

fetchLatestPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage fetchLatestPage(long resourcePrimKey,
                                                                  int status,
                                                                  boolean preferApproved)
                         throws SystemException
Throws:
SystemException

fetchLatestPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage fetchLatestPage(long resourcePrimKey,
                                                                  long nodeId,
                                                                  int status,
                                                                  boolean preferApproved)
                         throws SystemException
Throws:
SystemException

fetchLatestPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage fetchLatestPage(long nodeId,
                                                                  String title,
                                                                  int status,
                                                                  boolean preferApproved)
                         throws SystemException
Throws:
SystemException

fetchPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage fetchPage(long nodeId,
                                                            String title,
                                                            double version)
                   throws SystemException
Throws:
SystemException

getChildren

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

getDraftPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage getDraftPage(long nodeId,
                                                               String title)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getIncomingLinks

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<WikiPage> getIncomingLinks(long nodeId,
                                                                         String title)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getLatestPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage getLatestPage(long resourcePrimKey,
                                                                int status,
                                                                boolean preferApproved)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getLatestPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage getLatestPage(long resourcePrimKey,
                                                                long nodeId,
                                                                int status,
                                                                boolean preferApproved)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getLatestPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage getLatestPage(long nodeId,
                                                                String title,
                                                                int status,
                                                                boolean preferApproved)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getNoAssetPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<WikiPage> getNoAssetPages()
                               throws SystemException
Throws:
SystemException

getOrphans

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<WikiPage> getOrphans(long nodeId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getOutgoingLinks

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<WikiPage> getOutgoingLinks(long nodeId,
                                                                         String title)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getPage

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

getPage

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

getPage

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

getPage

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

getPage

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

getPageByPageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPage getPageByPageId(long pageId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getPageDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPageDisplay getPageDisplay(long nodeId,
                                                                        String title,
                                                                        PortletURL viewPageURL,
                                                                        PortletURL editPageURL,
                                                                        String attachmentURLPrefix)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getPageDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
WikiPageDisplay getPageDisplay(WikiPage page,
                                                                        PortletURL viewPageURL,
                                                                        PortletURL editPageURL,
                                                                        String attachmentURLPrefix)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getPages

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

getPages

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

getPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<WikiPage> getPages(long nodeId,
                                                                 boolean head,
                                                                 int status,
                                                                 int start,
                                                                 int end,
                                                                 OrderByComparator obc)
                        throws SystemException
Throws:
SystemException

getPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<WikiPage> getPages(long nodeId,
                                                                 boolean head,
                                                                 int start,
                                                                 int end,
                                                                 OrderByComparator obc)
                        throws SystemException
Throws:
SystemException

getPages

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

getPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<WikiPage> getPages(long nodeId,
                                                                 int start,
                                                                 int end,
                                                                 OrderByComparator obc)
                        throws SystemException
Throws:
SystemException

getPages

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

getPages

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

getPages

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

getPages

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

getPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<WikiPage> getPages(long nodeId,
                                                                 String title,
                                                                 int start,
                                                                 int end,
                                                                 OrderByComparator obc)
                        throws SystemException
Throws:
SystemException

getPages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<WikiPage> getPages(String format)
                        throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(long nodeId)
                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(long nodeId,
                                                           boolean head)
                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(long nodeId,
                                                           boolean head,
                                                           int status)
                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(long nodeId,
                                                           int status)
                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(long userId,
                                                           long nodeId,
                                                           int status)
                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(long nodeId,
                                                           String title)
                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(long nodeId,
                                                           String title,
                                                           boolean head)
                  throws SystemException
Throws:
SystemException

getPagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getPagesCount(String format)
                  throws SystemException
Throws:
SystemException

getRecentChanges

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<WikiPage> getRecentChanges(long groupId,
                                                                         long nodeId,
                                                                         int start,
                                                                         int end)
                                throws SystemException
Throws:
SystemException

getRecentChangesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getRecentChangesCount(long nodeId)
                          throws PortalException,
                                 SystemException
Deprecated. As of 6.2.0, replaced by getRecentChangesCount(long, long)

Throws:
PortalException
SystemException

getRecentChangesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getRecentChangesCount(long groupId,
                                                                   long nodeId)
                          throws SystemException
Throws:
SystemException

getTempPageAttachmentNames

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String[] getTempPageAttachmentNames(long groupId,
                                                                             long userId,
                                                                             String tempFolderName)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

hasDraftPage

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasDraftPage(long nodeId,
                                                              String title)
                     throws SystemException
Throws:
SystemException

movePage

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

movePage

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

movePageAttachmentToTrash

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

movePageToTrash

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

movePageToTrash

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

movePageToTrash

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

restorePageAttachmentFromTrash

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

restorePageFromTrash

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

revertPage

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

subscribePage

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

unsubscribePage

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

updateAsset

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

updatePage

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

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

updateStatus

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

validateTitle

void validateTitle(String title)
                   throws PortalException
Throws:
PortalException

Liferay 6.2.0