Liferay 6.1.2-ce-ga3

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

java.lang.Object
  extended by com.liferay.portal.service.BaseServiceImpl
      extended by com.liferay.portlet.wiki.service.base.WikiPageServiceBaseImpl
          extended by com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseService, WikiPageService

public class WikiPageServiceImpl
extends WikiPageServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.wiki.service.base.WikiPageServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, companyLocalService, companyPersistence, companyService, counterLocalService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService, wikiNodeLocalService, wikiNodePersistence, wikiNodeService, wikiPageFinder, wikiPageLocalService, wikiPagePersistence, wikiPageResourceLocalService, wikiPageResourcePersistence, wikiPageService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
WikiPageServiceImpl()
           
 
Method Summary
 WikiPage addPage(long nodeId, String title, String content, String summary, boolean minorEdit, ServiceContext serviceContext)
           
 WikiPage addPage(long nodeId, String title, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, ServiceContext serviceContext)
           
 void addPageAttachment(long nodeId, String title, String fileName, File file)
           
 void addPageAttachment(long nodeId, String title, String fileName, InputStream inputStream)
           
 void addPageAttachments(long nodeId, String title, List<ObjectValuePair<String,InputStream>> inputStream)
           
 String addTempPageAttachment(long nodeId, String fileName, String tempFolderName, InputStream inputStream)
           
 void changeParent(long nodeId, String title, String newParentTitle, ServiceContext serviceContext)
           
 void deletePage(long nodeId, String title)
           
 void deletePage(long nodeId, String title, double version)
           
 void deletePageAttachment(long nodeId, String title, String fileName)
           
 void deleteTempPageAttachment(long nodeId, String fileName, String tempFolderName)
           
protected  String exportToRSS(long companyId, String name, String description, String type, double version, String displayStyle, String feedURL, String entryURL, String attachmentURLPrefix, List<WikiPage> pages, boolean diff, Locale locale)
           
 List<WikiPage> getChildren(long groupId, long nodeId, boolean head, String parentTitle)
           
 WikiPage getDraftPage(long nodeId, String title)
           
 List<WikiPage> getNodePages(long nodeId, int max)
           
 String getNodePagesRSS(long nodeId, int max, String type, double version, String displayStyle, String feedURL, String entryURL)
           
 String getNodePagesRSS(long nodeId, int max, String type, double version, String displayStyle, String feedURL, String entryURL, String attachmentURLPrefix)
           
 List<WikiPage> getOrphans(long groupId, long nodeId)
           
 WikiPage getPage(long groupId, long nodeId, String title)
           
 WikiPage getPage(long nodeId, String title)
           
 WikiPage getPage(long nodeId, String title, Boolean head)
           
 WikiPage getPage(long nodeId, String title, double version)
           
 List<WikiPage> getPages(long groupId, long nodeId, boolean head, int status, int start, int end, OrderByComparator obc)
           
 List<WikiPage> getPages(long groupId, long userId, long nodeId, int status, int start, int end)
           
 int getPagesCount(long groupId, long nodeId, boolean head)
           
 int getPagesCount(long groupId, long userId, long nodeId, int status)
           
 String getPagesRSS(long companyId, long nodeId, String title, int max, String type, double version, String displayStyle, String feedURL, String entryURL, Locale locale)
           
 String getPagesRSS(long companyId, long nodeId, String title, int max, String type, double version, String displayStyle, String feedURL, String entryURL, String attachmentURLPrefix, Locale locale)
           
 List<WikiPage> getRecentChanges(long groupId, long nodeId, int start, int end)
           
 int getRecentChangesCount(long groupId, long nodeId)
           
 String[] getTempPageAttachmentNames(long nodeId, String tempFolderName)
           
 void movePage(long nodeId, String title, String newTitle, ServiceContext serviceContext)
           
 WikiPage revertPage(long nodeId, String title, double version, ServiceContext serviceContext)
           
 void subscribePage(long nodeId, String title)
           
 void unsubscribePage(long nodeId, String title)
           
 WikiPage updatePage(long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portlet.wiki.service.base.WikiPageServiceBaseImpl
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWikiNodeLocalService, getWikiNodePersistence, getWikiNodeService, getWikiPageFinder, getWikiPageLocalService, getWikiPagePersistence, getWikiPageResourceLocalService, getWikiPageResourcePersistence, getWikiPageService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWikiNodeLocalService, setWikiNodePersistence, setWikiNodeService, setWikiPageFinder, setWikiPageLocalService, setWikiPagePersistence, setWikiPageResourceLocalService, setWikiPageResourcePersistence, setWikiPageService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence
 
Methods inherited from class com.liferay.portal.service.BaseServiceImpl
getClassLoader, getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiPageServiceImpl

public WikiPageServiceImpl()
Method Detail

addPage

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

addPage

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

addPageAttachment

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

addPageAttachment

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

addPageAttachments

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

addTempPageAttachment

public String addTempPageAttachment(long nodeId,
                                    String fileName,
                                    String tempFolderName,
                                    InputStream inputStream)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

changeParent

public void changeParent(long nodeId,
                         String title,
                         String newParentTitle,
                         ServiceContext serviceContext)
                  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
Throws:
PortalException
SystemException

deletePageAttachment

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

deleteTempPageAttachment

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

getChildren

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

getDraftPage

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

getNodePages

public List<WikiPage> getNodePages(long nodeId,
                                   int max)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getNodePagesRSS

public String getNodePagesRSS(long nodeId,
                              int max,
                              String type,
                              double version,
                              String displayStyle,
                              String feedURL,
                              String entryURL)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getNodePagesRSS

public String getNodePagesRSS(long nodeId,
                              int max,
                              String type,
                              double version,
                              String displayStyle,
                              String feedURL,
                              String entryURL,
                              String attachmentURLPrefix)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getOrphans

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

getPage

public WikiPage getPage(long groupId,
                        long nodeId,
                        String title)
                 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

getPages

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

getPages

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

getPagesCount

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

getPagesCount

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

getPagesRSS

public String getPagesRSS(long companyId,
                          long nodeId,
                          String title,
                          int max,
                          String type,
                          double version,
                          String displayStyle,
                          String feedURL,
                          String entryURL,
                          Locale locale)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getPagesRSS

public String getPagesRSS(long companyId,
                          long nodeId,
                          String title,
                          int max,
                          String type,
                          double version,
                          String displayStyle,
                          String feedURL,
                          String entryURL,
                          String attachmentURLPrefix,
                          Locale locale)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getRecentChanges

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

getRecentChangesCount

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

getTempPageAttachmentNames

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

movePage

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

revertPage

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

subscribePage

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

unsubscribePage

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

updatePage

public WikiPage updatePage(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

exportToRSS

protected String exportToRSS(long companyId,
                             String name,
                             String description,
                             String type,
                             double version,
                             String displayStyle,
                             String feedURL,
                             String entryURL,
                             String attachmentURLPrefix,
                             List<WikiPage> pages,
                             boolean diff,
                             Locale locale)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

Liferay 6.1.2-ce-ga3