Liferay 6.2-ce-ga5

com.liferay.portlet.wiki.service.impl
Class WikiPageLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl
          extended by com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, WikiPageLocalService

public class WikiPageLocalServiceImpl
extends WikiPageLocalServiceBaseImpl

Provides the local service for accessing, adding, deleting, moving, subscription handling of, trash handling of, updating, and validating wiki pages.


Field Summary
 
Fields inherited from class com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, companyLocalService, companyPersistence, companyService, counterLocalService, expandoRowLocalService, expandoRowPersistence, groupFinder, groupLocalService, groupPersistence, groupService, layoutFinder, layoutLocalService, layoutPersistence, layoutService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, persistedModelLocalServiceRegistry, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, resourceLocalService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialActivityService, subscriptionLocalService, subscriptionPersistence, systemEventLocalService, systemEventPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence, userService, wikiNodeLocalService, wikiNodePersistence, wikiNodeService, wikiPageFinder, wikiPageLocalService, wikiPagePersistence, wikiPageResourceLocalService, wikiPageResourcePersistence, wikiPageService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
WikiPageLocalServiceImpl()
           
 
Method Summary
 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)
           
 WikiPage addPage(long userId, long nodeId, String title, String content, String summary, boolean minorEdit, ServiceContext serviceContext)
           
 void addPageAttachment(long userId, long nodeId, String title, String fileName, File file, String mimeType)
           
 void addPageAttachment(long userId, long nodeId, String title, String fileName, InputStream inputStream, String mimeType)
           
 void addPageAttachments(long userId, long nodeId, String title, List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
           
 void addPageResources(long nodeId, String title, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addPageResources(long nodeId, String title, String[] groupPermissions, String[] guestPermissions)
           
 void addPageResources(WikiPage page, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addPageResources(WikiPage page, String[] groupPermissions, String[] guestPermissions)
           
 void addTempPageAttachment(long groupId, long userId, String fileName, String tempFolderName, InputStream inputStream, String mimeType)
           
 void changeParent(long userId, long nodeId, String title, String newParentTitle, ServiceContext serviceContext)
           
protected  void clearPageCache(WikiPage page)
           
 void copyPageAttachments(long userId, long templateNodeId, String templateTitle, long nodeId, String title)
           
 void deletePage(long nodeId, String title)
           
 void deletePage(long nodeId, String title, double version)
          Deprecated. As of 6.2.0 replaced by discardDraft(long, String, double)
 void deletePage(WikiPage page)
           
protected  void deletePageAttachment(long fileEntryId)
           
 void deletePageAttachment(long nodeId, String title, String fileName)
           
 void deletePageAttachments(long nodeId, String title)
           
 void deletePages(long nodeId)
           
 void deleteTempPageAttachment(long groupId, long userId, String fileName, String tempFolderName)
           
 void deleteTrashPageAttachments(long nodeId, String title)
           
 void discardDraft(long nodeId, String title, double version)
           
 WikiPage fetchLatestPage(long resourcePrimKey, int status, boolean preferApproved)
           
 WikiPage fetchLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved)
           
 WikiPage fetchLatestPage(long nodeId, String title, int status, boolean preferApproved)
           
 WikiPage fetchPage(long nodeId, String title)
           
 WikiPage fetchPage(long nodeId, String title, double version)
           
 List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle)
           
protected  String getDiffsURL(WikiNode node, WikiPage page, WikiPage previousVersionPage, ServiceContext serviceContext)
           
 WikiPage getDraftPage(long nodeId, String title)
           
 List<WikiPage> getIncomingLinks(long nodeId, String title)
           
 WikiPage getLatestPage(long resourcePrimKey, int status, boolean preferApproved)
           
 WikiPage getLatestPage(long resourcePrimKey, long nodeId, int status, boolean preferApproved)
           
 WikiPage getLatestPage(long nodeId, String title, int status, boolean preferApproved)
           
 List<WikiPage> getNoAssetPages()
           
 List<WikiPage> getOrphans(long nodeId)
           
 List<WikiPage> getOutgoingLinks(long nodeId, String title)
           
 WikiPage getPage(long resourcePrimKey)
           
 WikiPage getPage(long resourcePrimKey, Boolean head)
           
 WikiPage getPage(long nodeId, String title)
           
 WikiPage getPage(long nodeId, String title, Boolean head)
           
 WikiPage getPage(long nodeId, String title, double version)
           
 WikiPage getPageByPageId(long pageId)
           
 WikiPageDisplay getPageDisplay(long nodeId, String title, PortletURL viewPageURL, PortletURL editPageURL, String attachmentURLPrefix)
           
 WikiPageDisplay getPageDisplay(WikiPage page, PortletURL viewPageURL, PortletURL editPageURL, String attachmentURLPrefix)
           
 List<WikiPage> getPages(long nodeId, boolean head, int start, int end)
           
 List<WikiPage> getPages(long nodeId, boolean head, int status, int start, int end)
           
 List<WikiPage> getPages(long nodeId, boolean head, int status, int start, int end, OrderByComparator obc)
           
 List<WikiPage> getPages(long nodeId, boolean head, int start, int end, OrderByComparator obc)
           
 List<WikiPage> getPages(long nodeId, int start, int end)
           
 List<WikiPage> getPages(long nodeId, int start, int end, OrderByComparator obc)
           
 List<WikiPage> getPages(long resourcePrimKey, long nodeId, int status)
           
 List<WikiPage> getPages(long userId, long nodeId, int status, int start, int end)
           
 List<WikiPage> getPages(long nodeId, String title, boolean head, int start, int end)
           
 List<WikiPage> getPages(long nodeId, String title, int start, int end)
           
 List<WikiPage> getPages(long nodeId, String title, int start, int end, OrderByComparator obc)
           
 List<WikiPage> getPages(String format)
           
 int getPagesCount(long nodeId)
           
 int getPagesCount(long nodeId, boolean head)
           
 int getPagesCount(long nodeId, boolean head, int status)
           
 int getPagesCount(long nodeId, int status)
           
 int getPagesCount(long userId, long nodeId, int status)
           
 int getPagesCount(long nodeId, String title)
           
 int getPagesCount(long nodeId, String title, boolean head)
           
 int getPagesCount(String format)
           
protected  String getPageURL(WikiNode node, WikiPage page, ServiceContext serviceContext)
           
protected  List<ObjectValuePair<Long,Integer>> getPageVersionStatuses(List<WikiPage> pages)
           
protected  String getParentPageTitle(WikiPage page)
           
protected  WikiPage getPreviousVersionPage(WikiPage page)
           
 List<WikiPage> getRecentChanges(long nodeId, int start, int end)
          Deprecated. As of 6.2.0, replaced by getRecentChanges(long, long, int, int)
 List<WikiPage> getRecentChanges(long groupId, long nodeId, int start, int end)
           
 int getRecentChangesCount(long nodeId)
          Deprecated. As of 6.2.0, replaced by getRecentChangesCount(long, long)
 int getRecentChangesCount(long groupId, long nodeId)
           
 String[] getTempPageAttachmentNames(long groupId, long userId, String tempFolderName)
           
 boolean hasDraftPage(long nodeId, String title)
           
protected  boolean isLinkedTo(WikiPage page, String targetTitle)
           
protected  boolean isUsedTitle(long nodeId, String title)
           
 void movePage(long userId, long nodeId, String title, String newTitle, boolean strict, ServiceContext serviceContext)
           
 void movePage(long userId, long nodeId, String title, String newTitle, ServiceContext serviceContext)
           
 FileEntry movePageAttachmentToTrash(long userId, long nodeId, String title, String fileName)
           
 WikiPage movePageToTrash(long userId, long nodeId, String title)
           
 WikiPage movePageToTrash(long userId, long nodeId, String title, double version)
           
 WikiPage movePageToTrash(long userId, WikiPage page)
           
protected  void notifySubscribers(WikiNode node, WikiPage page, ServiceContext serviceContext, boolean update)
           
protected  void populateServiceContext(ServiceContext serviceContext, WikiPage page)
           
protected  String replaceStyles(String html)
           
 void restorePageAttachmentFromTrash(long userId, long nodeId, String title, String fileName)
           
 void restorePageFromTrash(long userId, WikiPage page)
           
 WikiPage revertPage(long userId, long nodeId, String title, double version, ServiceContext serviceContext)
           
 void subscribePage(long userId, long nodeId, String title)
           
 void unsubscribePage(long userId, long nodeId, String title)
           
 void updateAsset(long userId, WikiPage page, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
 WikiPage updatePage(long userId, long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, ServiceContext serviceContext)
           
 WikiPage updateStatus(long userId, long resourcePrimKey, int status, ServiceContext serviceContext)
           
 WikiPage updateStatus(long userId, WikiPage page, int status, ServiceContext serviceContext)
           
protected  void validate(long nodeId, String content, String format)
           
protected  void validate(String title, long nodeId, String content, String format)
           
 void validateTitle(String title)
           
 
Methods inherited from class com.liferay.portlet.wiki.service.base.WikiPageLocalServiceBaseImpl
addWikiPage, afterPropertiesSet, createWikiPage, deleteWikiPage, deleteWikiPage, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchWikiPage, fetchWikiPageByUuidAndCompanyId, fetchWikiPageByUuidAndGroupId, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getPersistedModel, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getResourceLocalService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getSubscriptionLocalService, getSubscriptionPersistence, getSystemEventLocalService, getSystemEventPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWikiNodeLocalService, getWikiNodePersistence, getWikiNodeService, getWikiPage, getWikiPageByUuidAndCompanyId, getWikiPageByUuidAndGroupId, getWikiPageFinder, getWikiPageLocalService, getWikiPagePersistence, getWikiPageResourceLocalService, getWikiPageResourcePersistence, getWikiPages, getWikiPagesCount, getWikiPageService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoRowLocalService, setExpandoRowPersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setResourceLocalService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivityService, setSubscriptionLocalService, setSubscriptionPersistence, setSystemEventLocalService, setSystemEventPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWikiNodeLocalService, setWikiNodePersistence, setWikiNodeService, setWikiPageFinder, setWikiPageLocalService, setWikiPagePersistence, setWikiPageResourceLocalService, setWikiPageResourcePersistence, setWikiPageService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateWikiPage
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLayoutURL, getLayoutURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiPageLocalServiceImpl

public WikiPageLocalServiceImpl()
Method Detail

addPage

public 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 WikiPage addPage(long userId,
                        long nodeId,
                        String title,
                        String content,
                        String summary,
                        boolean minorEdit,
                        ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

addPageAttachment

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

addPageAttachment

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

addPageAttachments

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

addPageResources

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

addPageResources

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

addPageResources

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

addPageResources

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

addTempPageAttachment

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

changeParent

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

copyPageAttachments

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

deletePage

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

deletePage

public 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

@SystemEvent(action=1,
             send=false,
             type=1)
public void deletePage(WikiPage page)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

deletePageAttachment

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

deletePageAttachments

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

deletePages

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

deleteTempPageAttachment

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

deleteTrashPageAttachments

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

discardDraft

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

fetchLatestPage

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

fetchLatestPage

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

fetchLatestPage

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

fetchPage

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

fetchPage

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

getChildren

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

getDraftPage

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

getIncomingLinks

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

getLatestPage

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

getLatestPage

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

getLatestPage

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

getNoAssetPages

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

getOrphans

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

getOutgoingLinks

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

getPage

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

getPage

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

getPage

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

getPage

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

getPage

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

getPageByPageId

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

getPageDisplay

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

getPageDisplay

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

getPages

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

getPages

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

getPages

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

getPages

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

getPages

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

getPages

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

getPages

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

getPages

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

getPages

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

getPages

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

getPages

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

getPages

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

getPagesCount

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

getPagesCount

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

getPagesCount

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

getPagesCount

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

getPagesCount

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

getPagesCount

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

getPagesCount

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

getPagesCount

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

getRecentChanges

public 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 List<WikiPage> getRecentChanges(long groupId,
                                       long nodeId,
                                       int start,
                                       int end)
                                throws SystemException
Throws:
SystemException

getRecentChangesCount

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

Throws:
PortalException
SystemException

getRecentChangesCount

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

getTempPageAttachmentNames

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

hasDraftPage

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

movePage

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

movePage

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

movePageAttachmentToTrash

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

movePageToTrash

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

movePageToTrash

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

movePageToTrash

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

restorePageAttachmentFromTrash

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

restorePageFromTrash

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

revertPage

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

subscribePage

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

unsubscribePage

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

updateAsset

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

updatePage

public 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 WikiPage updateStatus(long userId,
                             long resourcePrimKey,
                             int status,
                             ServiceContext serviceContext)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateStatus

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

validateTitle

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

clearPageCache

protected void clearPageCache(WikiPage page)

deletePageAttachment

protected void deletePageAttachment(long fileEntryId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getDiffsURL

protected String getDiffsURL(WikiNode node,
                             WikiPage page,
                             WikiPage previousVersionPage,
                             ServiceContext serviceContext)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getPageURL

protected String getPageURL(WikiNode node,
                            WikiPage page,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getPageVersionStatuses

protected List<ObjectValuePair<Long,Integer>> getPageVersionStatuses(List<WikiPage> pages)

getParentPageTitle

protected String getParentPageTitle(WikiPage page)

getPreviousVersionPage

protected WikiPage getPreviousVersionPage(WikiPage page)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

isLinkedTo

protected boolean isLinkedTo(WikiPage page,
                             String targetTitle)
                      throws PortalException
Throws:
PortalException

isUsedTitle

protected boolean isUsedTitle(long nodeId,
                              String title)
                       throws SystemException
Throws:
SystemException

notifySubscribers

protected void notifySubscribers(WikiNode node,
                                 WikiPage page,
                                 ServiceContext serviceContext,
                                 boolean update)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

populateServiceContext

protected void populateServiceContext(ServiceContext serviceContext,
                                      WikiPage page)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

replaceStyles

protected String replaceStyles(String html)

validate

protected void validate(long nodeId,
                        String content,
                        String format)
                 throws PortalException
Throws:
PortalException

validate

protected void validate(String title,
                        long nodeId,
                        String content,
                        String format)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

Liferay 6.2-ce-ga5