Liferay 7.0-ce-m3

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 addTempFileEntry(long groupId, long userId, String folderName, String fileName, InputStream inputStream, String mimeType)
           
 void addTempPageAttachment(long groupId, long userId, String fileName, String tempFolderName, InputStream inputStream, String mimeType)
          Deprecated. As of 7.0.0 replaced by addTempFileEntry(long, long, String, String, InputStream, String)
protected  void changeChildPagesNode(long userId, long nodeId, String title, long newNodeId, ServiceContext serviceContext)
           
 void changeNode(long userId, long nodeId, String title, long newNodeId, ServiceContext serviceContext)
           
 WikiPage changeParent(long userId, long nodeId, String title, String newParentTitle, ServiceContext serviceContext)
           
protected  void changeRedirectPagesNode(long userId, long nodeId, String title, long newNodeId, ServiceContext serviceContext)
           
protected  void checkDuplicationOnNodeChange(long nodeId, String title, long newNodeId)
           
protected  void checkNodeChange(long nodeId, String title, long newNodeId)
           
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 deleteTempFileEntry(long groupId, long userId, String folderName, String fileName)
           
 void deleteTrashPageAttachments(long nodeId, String title)
           
 void discardDraft(long nodeId, String title, double version)
           
protected  WikiPage doChangeNode(long userId, long nodeId, String title, long newNodeId, ServiceContext serviceContext)
           
protected  WikiPage doRenamePage(long userId, long nodeId, String title, String newTitle, ServiceContext serviceContext)
           
 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 resourcePrimKey)
           
 WikiPage fetchPage(long nodeId, String title)
           
 WikiPage fetchPage(long nodeId, String title, double version)
           
 List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle)
           
 List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle, int status)
           
 List<WikiPage> getChildren(long nodeId, boolean head, String parentTitle, int start, int end)
           
 int getChildrenCount(long nodeId, boolean head, String parentTitle)
           
 int getChildrenCount(long nodeId, boolean head, String parentTitle, int status)
           
 List<WikiPage> getDependentPages(long nodeId, boolean head, String title, int status)
           
protected  String getDiffsURL(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<WikiPage> obc)
           
 List<WikiPage> getPages(long nodeId, boolean head, int start, int end, OrderByComparator<WikiPage> obc)
           
 List<WikiPage> getPages(long nodeId, int start, int end)
           
 List<WikiPage> getPages(long nodeId, int start, int end, OrderByComparator<WikiPage> 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<WikiPage> 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(WikiPage page, ServiceContext serviceContext)
           
protected  List<ObjectValuePair<Long,Integer>> getPageVersionStatuses(List<WikiPage> pages)
           
protected  String getParentPageTitle(WikiPage page)
           
 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)
           
 List<WikiPage> getRedirectPages(long nodeId, boolean head, String redirectTitle, int status)
           
 String[] getTempFileNames(long groupId, long userId, String folderName)
           
 boolean hasDraftPage(long nodeId, String title)
           
protected  boolean isLinkedTo(WikiPage page, String targetTitle)
           
protected  boolean isUsedTitle(long nodeId, String title)
           
protected  void moveDependentChildPagesFromTrash(WikiPage page, long nodeId, String title, String trashTitle)
           
protected  void moveDependentChildPagesToTrash(WikiPage page, String title, String trashTitle, long trashEntryId, boolean createTrashVersion)
           
protected  void moveDependentFromTrash(WikiPage page, long newNodeId, String newParentTitle)
           
protected  void moveDependentRedirectPagesFromTrash(WikiPage page, long nodeId, String title, String trashTitle)
           
protected  void moveDependentRedirectPagesToTrash(WikiPage page, String title, String trashTitle, long trashEntryId, boolean createTrashVersion)
           
 void moveDependentToTrash(WikiPage page, long trashEntryId)
           
protected  void moveDependentToTrash(WikiPage page, long trashEntryId, boolean createTrashVersion)
           
 void movePage(long userId, long nodeId, String title, String newTitle, boolean strict, ServiceContext serviceContext)
          Deprecated. As of 6.2.0, replaced by renamePage(long, long, String, String, boolean, ServiceContext)
 void movePage(long userId, long nodeId, String title, String newTitle, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by renamePage(long, long, String, String, ServiceContext)
 FileEntry movePageAttachmentToTrash(long userId, long nodeId, String title, String fileName)
           
 WikiPage movePageFromTrash(long userId, long nodeId, String title, long newNodeId, String newParentTitle)
           
 WikiPage movePageFromTrash(long userId, long nodeId, String title, String newParentTitle, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by movePageFromTrash(long, long, String, long, String) *
protected  void movePageFromTrash(long userId, WikiPage page, long newNodeId, String newParentTitle)
           
 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(WikiPage page, String pageURL, ServiceContext serviceContext)
           
protected  void populateServiceContext(ServiceContext serviceContext, WikiPage page)
           
 void renamePage(long userId, long nodeId, String title, String newTitle, boolean strict, ServiceContext serviceContext)
           
 void renamePage(long userId, long nodeId, String title, String newTitle, ServiceContext serviceContext)
           
 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)
           
protected  void startWorkflowInstance(long userId, WikiPage page, 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)
           
protected  WikiPage updatePage(long userId, WikiPage oldPage, long newNodeId, String newTitle, 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)
          Deprecated. As of 7.0.0, replaced by updateStatus(long, WikiPage, int, ServiceContext, Map)
 WikiPage updateStatus(long userId, WikiPage page, int status, ServiceContext serviceContext, Map<String,Serializable> workflowContext)
           
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, deletePersistedModel, deleteWikiPage, deleteWikiPage, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchWikiPage, fetchWikiPageByUuidAndGroupId, getActionableDynamicQuery, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoRowLocalService, getExpandoRowPersistence, getExportActionableDynamicQuery, 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, getWikiPageByUuidAndGroupId, getWikiPageFinder, getWikiPageLocalService, getWikiPagePersistence, getWikiPageResourceLocalService, getWikiPageResourcePersistence, getWikiPages, getWikiPagesByUuidAndCompanyId, getWikiPagesByUuidAndCompanyId, getWikiPagesCount, getWikiPageService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, initActionableDynamicQuery, 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
 
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
Throws:
PortalException

addPage

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

addPageAttachment

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

addPageAttachment

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

addPageAttachments

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

addPageResources

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

addPageResources

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

addPageResources

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

addPageResources

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

addTempFileEntry

public void addTempFileEntry(long groupId,
                             long userId,
                             String folderName,
                             String fileName,
                             InputStream inputStream,
                             String mimeType)
                      throws PortalException
Throws:
PortalException

addTempPageAttachment

@Deprecated
public void addTempPageAttachment(long groupId,
                                             long userId,
                                             String fileName,
                                             String tempFolderName,
                                             InputStream inputStream,
                                             String mimeType)
                           throws PortalException
Deprecated. As of 7.0.0 replaced by addTempFileEntry(long, long, String, String, InputStream, String)

Throws:
PortalException

changeNode

public void changeNode(long userId,
                       long nodeId,
                       String title,
                       long newNodeId,
                       ServiceContext serviceContext)
                throws PortalException
Throws:
PortalException

changeParent

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

copyPageAttachments

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

deletePage

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

deletePage

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

Throws:
PortalException

deletePage

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

deletePageAttachment

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

deletePageAttachments

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

deletePages

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

deleteTempFileEntry

public void deleteTempFileEntry(long groupId,
                                long userId,
                                String folderName,
                                String fileName)
                         throws PortalException
Throws:
PortalException

deleteTrashPageAttachments

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

discardDraft

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

fetchLatestPage

public WikiPage fetchLatestPage(long resourcePrimKey,
                                int status,
                                boolean preferApproved)

fetchLatestPage

public WikiPage fetchLatestPage(long resourcePrimKey,
                                long nodeId,
                                int status,
                                boolean preferApproved)

fetchLatestPage

public WikiPage fetchLatestPage(long nodeId,
                                String title,
                                int status,
                                boolean preferApproved)

fetchPage

public WikiPage fetchPage(long resourcePrimKey)

fetchPage

public WikiPage fetchPage(long nodeId,
                          String title)

fetchPage

public WikiPage fetchPage(long nodeId,
                          String title,
                          double version)

getChildren

public List<WikiPage> getChildren(long nodeId,
                                  boolean head,
                                  String parentTitle)

getChildren

public List<WikiPage> getChildren(long nodeId,
                                  boolean head,
                                  String parentTitle,
                                  int status)

getChildren

public List<WikiPage> getChildren(long nodeId,
                                  boolean head,
                                  String parentTitle,
                                  int start,
                                  int end)

getChildrenCount

public int getChildrenCount(long nodeId,
                            boolean head,
                            String parentTitle)

getChildrenCount

public int getChildrenCount(long nodeId,
                            boolean head,
                            String parentTitle,
                            int status)

getDependentPages

public List<WikiPage> getDependentPages(long nodeId,
                                        boolean head,
                                        String title,
                                        int status)

getDraftPage

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

getIncomingLinks

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

getLatestPage

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

getLatestPage

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

getLatestPage

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

getNoAssetPages

public List<WikiPage> getNoAssetPages()

getOrphans

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

getOutgoingLinks

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

getPage

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

getPage

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

getPage

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

getPage

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

getPage

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

getPageByPageId

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

getPageDisplay

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

getPageDisplay

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

getPages

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

getPages

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

getPages

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

getPages

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

getPages

public List<WikiPage> getPages(long nodeId,
                               int start,
                               int end)

getPages

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

getPages

public List<WikiPage> getPages(long resourcePrimKey,
                               long nodeId,
                               int status)

getPages

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

getPages

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

getPages

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

getPages

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

getPages

public List<WikiPage> getPages(String format)

getPagesCount

public int getPagesCount(long nodeId)

getPagesCount

public int getPagesCount(long nodeId,
                         boolean head)

getPagesCount

public int getPagesCount(long nodeId,
                         boolean head,
                         int status)

getPagesCount

public int getPagesCount(long nodeId,
                         int status)

getPagesCount

public int getPagesCount(long userId,
                         long nodeId,
                         int status)

getPagesCount

public int getPagesCount(long nodeId,
                         String title)

getPagesCount

public int getPagesCount(long nodeId,
                         String title,
                         boolean head)

getPagesCount

public int getPagesCount(String format)

getPreviousVersionPage

public WikiPage getPreviousVersionPage(WikiPage page)
                                throws PortalException
Throws:
PortalException

getRecentChanges

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

Throws:
PortalException

getRecentChanges

public List<WikiPage> getRecentChanges(long groupId,
                                       long nodeId,
                                       int start,
                                       int end)

getRecentChangesCount

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

Throws:
PortalException

getRecentChangesCount

public int getRecentChangesCount(long groupId,
                                 long nodeId)

getRedirectPages

public List<WikiPage> getRedirectPages(long nodeId,
                                       boolean head,
                                       String redirectTitle,
                                       int status)

getTempFileNames

public String[] getTempFileNames(long groupId,
                                 long userId,
                                 String folderName)
                          throws PortalException
Throws:
PortalException

hasDraftPage

public boolean hasDraftPage(long nodeId,
                            String title)

moveDependentToTrash

public void moveDependentToTrash(WikiPage page,
                                 long trashEntryId)
                          throws PortalException
Throws:
PortalException

movePage

@Deprecated
public void movePage(long userId,
                                long nodeId,
                                String title,
                                String newTitle,
                                boolean strict,
                                ServiceContext serviceContext)
              throws PortalException
Deprecated. As of 6.2.0, replaced by renamePage(long, long, String, String, boolean, ServiceContext)

Throws:
PortalException

movePage

@Deprecated
public void movePage(long userId,
                                long nodeId,
                                String title,
                                String newTitle,
                                ServiceContext serviceContext)
              throws PortalException
Deprecated. As of 7.0.0, replaced by renamePage(long, long, String, String, ServiceContext)

Throws:
PortalException

movePageAttachmentToTrash

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

movePageFromTrash

public WikiPage movePageFromTrash(long userId,
                                  long nodeId,
                                  String title,
                                  long newNodeId,
                                  String newParentTitle)
                           throws PortalException
Throws:
PortalException

movePageFromTrash

@Deprecated
public WikiPage movePageFromTrash(long userId,
                                             long nodeId,
                                             String title,
                                             String newParentTitle,
                                             ServiceContext serviceContext)
                           throws PortalException
Deprecated. As of 7.0.0, replaced by movePageFromTrash(long, long, String, long, String) *

Throws:
PortalException

movePageToTrash

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

movePageToTrash

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

movePageToTrash

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

renamePage

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

renamePage

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

restorePageAttachmentFromTrash

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

restorePageFromTrash

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

revertPage

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

subscribePage

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

unsubscribePage

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

updateAsset

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

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

updateStatus

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

updateStatus

@Deprecated
public WikiPage updateStatus(long userId,
                                        WikiPage page,
                                        int status,
                                        ServiceContext serviceContext)
                      throws PortalException
Deprecated. As of 7.0.0, replaced by updateStatus(long, WikiPage, int, ServiceContext, Map)

Throws:
PortalException

updateStatus

public WikiPage updateStatus(long userId,
                             WikiPage page,
                             int status,
                             ServiceContext serviceContext,
                             Map<String,Serializable> workflowContext)
                      throws PortalException
Throws:
PortalException

validateTitle

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

changeChildPagesNode

protected void changeChildPagesNode(long userId,
                                    long nodeId,
                                    String title,
                                    long newNodeId,
                                    ServiceContext serviceContext)
                             throws PortalException
Throws:
PortalException

changeRedirectPagesNode

protected void changeRedirectPagesNode(long userId,
                                       long nodeId,
                                       String title,
                                       long newNodeId,
                                       ServiceContext serviceContext)
                                throws PortalException
Throws:
PortalException

checkDuplicationOnNodeChange

protected void checkDuplicationOnNodeChange(long nodeId,
                                            String title,
                                            long newNodeId)
                                     throws PortalException
Throws:
PortalException

checkNodeChange

protected void checkNodeChange(long nodeId,
                               String title,
                               long newNodeId)
                        throws PortalException
Throws:
PortalException

clearPageCache

protected void clearPageCache(WikiPage page)

deletePageAttachment

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

doChangeNode

protected WikiPage doChangeNode(long userId,
                                long nodeId,
                                String title,
                                long newNodeId,
                                ServiceContext serviceContext)
                         throws PortalException
Throws:
PortalException

doRenamePage

protected WikiPage doRenamePage(long userId,
                                long nodeId,
                                String title,
                                String newTitle,
                                ServiceContext serviceContext)
                         throws PortalException
Throws:
PortalException

getDiffsURL

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

getPageURL

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

getPageVersionStatuses

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

getParentPageTitle

protected String getParentPageTitle(WikiPage page)

isLinkedTo

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

isUsedTitle

protected boolean isUsedTitle(long nodeId,
                              String title)

moveDependentChildPagesFromTrash

protected void moveDependentChildPagesFromTrash(WikiPage page,
                                                long nodeId,
                                                String title,
                                                String trashTitle)
                                         throws PortalException
Throws:
PortalException

moveDependentChildPagesToTrash

protected void moveDependentChildPagesToTrash(WikiPage page,
                                              String title,
                                              String trashTitle,
                                              long trashEntryId,
                                              boolean createTrashVersion)
                                       throws PortalException
Throws:
PortalException

moveDependentFromTrash

protected void moveDependentFromTrash(WikiPage page,
                                      long newNodeId,
                                      String newParentTitle)
                               throws PortalException
Throws:
PortalException

moveDependentRedirectPagesFromTrash

protected void moveDependentRedirectPagesFromTrash(WikiPage page,
                                                   long nodeId,
                                                   String title,
                                                   String trashTitle)
                                            throws PortalException
Throws:
PortalException

moveDependentRedirectPagesToTrash

protected void moveDependentRedirectPagesToTrash(WikiPage page,
                                                 String title,
                                                 String trashTitle,
                                                 long trashEntryId,
                                                 boolean createTrashVersion)
                                          throws PortalException
Throws:
PortalException

moveDependentToTrash

protected void moveDependentToTrash(WikiPage page,
                                    long trashEntryId,
                                    boolean createTrashVersion)
                             throws PortalException
Throws:
PortalException

movePageFromTrash

protected void movePageFromTrash(long userId,
                                 WikiPage page,
                                 long newNodeId,
                                 String newParentTitle)
                          throws PortalException
Throws:
PortalException

notifySubscribers

protected void notifySubscribers(WikiPage page,
                                 String pageURL,
                                 ServiceContext serviceContext)
                          throws PortalException
Throws:
PortalException

populateServiceContext

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

startWorkflowInstance

protected void startWorkflowInstance(long userId,
                                     WikiPage page,
                                     ServiceContext serviceContext)
                              throws PortalException
Throws:
PortalException

updatePage

protected WikiPage updatePage(long userId,
                              WikiPage oldPage,
                              long newNodeId,
                              String newTitle,
                              String content,
                              String summary,
                              boolean minorEdit,
                              String format,
                              String parentTitle,
                              String redirectTitle,
                              ServiceContext serviceContext)
                       throws PortalException
Throws:
PortalException

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

Liferay 7.0-ce-m3