Liferay 7.0-ce-m6

com.liferay.portlet.journal.service.impl
Class JournalFolderLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.journal.service.base.JournalFolderLocalServiceBaseImpl
          extended by com.liferay.portlet.journal.service.impl.JournalFolderLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, JournalFolderLocalService

public class JournalFolderLocalServiceImpl
extends JournalFolderLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.journal.service.base.JournalFolderLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, classNameLocalService, classNamePersistence, classNameService, counterLocalService, ddmStructureFinder, ddmStructureLinkLocalService, ddmStructureLinkPersistence, ddmStructureLocalService, ddmStructurePersistence, ddmStructureService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, journalArticleFinder, journalArticleLocalService, journalArticlePersistence, journalArticleService, journalFolderFinder, journalFolderLocalService, journalFolderPersistence, journalFolderService, persistedModelLocalServiceRegistry, resourceLocalService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialActivityService, subscriptionLocalService, subscriptionPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence, userService, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
JournalFolderLocalServiceImpl()
           
 
Method Summary
 JournalFolder addFolder(long userId, long groupId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
 JournalFolder deleteFolder(JournalFolder folder)
           
 JournalFolder deleteFolder(JournalFolder folder, boolean includeTrashedEntries)
           
 JournalFolder deleteFolder(long folderId)
           
 JournalFolder deleteFolder(long folderId, boolean includeTrashedEntries)
           
 void deleteFolders(long groupId)
           
protected  JournalFolder doUpdateFolder(long userId, long folderId, long parentFolderId, String name, String description, long[] ddmStructureIds, int restrictionType, boolean mergeWithParentFolder, ServiceContext serviceContext)
           
 JournalFolder fetchFolder(long folderId)
           
 JournalFolder fetchFolder(long groupId, long parentFolderId, String name)
           
 JournalFolder fetchFolder(long groupId, String name)
           
 List<JournalFolder> getCompanyFolders(long companyId, int start, int end)
           
 int getCompanyFoldersCount(long companyId)
           
protected  Set<Long> getDDMStructureIds(List<DDMStructureLink> ddmStructureLinks)
           
 List<DDMStructure> getDDMStructures(long[] groupIds, long folderId, int restrictionType)
           
 JournalFolder getFolder(long folderId)
           
 List<JournalFolder> getFolders(long groupId)
           
 List<JournalFolder> getFolders(long groupId, long parentFolderId)
           
 List<JournalFolder> getFolders(long groupId, long parentFolderId, int status)
           
 List<JournalFolder> getFolders(long groupId, long parentFolderId, int start, int end)
           
 List<JournalFolder> getFolders(long groupId, long parentFolderId, int status, int start, int end)
           
 List<Object> getFoldersAndArticles(long groupId, long folderId)
           
 List<Object> getFoldersAndArticles(long groupId, long folderId, int status)
           
 List<Object> getFoldersAndArticles(long groupId, long folderId, int start, int end, OrderByComparator<?> obc)
           
 int getFoldersAndArticlesCount(long groupId, List<Long> folderIds, int status)
           
 int getFoldersAndArticlesCount(long groupId, long folderId)
           
 int getFoldersAndArticlesCount(long groupId, long folderId, int status)
           
 int getFoldersCount(long groupId, long parentFolderId)
           
 int getFoldersCount(long groupId, long parentFolderId, int status)
           
 long getInheritedWorkflowFolderId(long folderId)
           
 List<JournalFolder> getNoAssetFolders()
           
 long getOverridedDDMStructuresFolderId(long folderId)
           
protected  long getParentFolderId(JournalFolder folder, long parentFolderId)
           
protected  long getParentFolderId(long groupId, long parentFolderId)
           
 void getSubfolderIds(List<Long> folderIds, long groupId, long folderId)
           
protected  void mergeFolders(JournalFolder fromFolder, long toFolderId)
           
protected  void moveDependentsToTrash(List<Object> foldersAndArticles, long trashEntryId)
           
 JournalFolder moveFolder(long folderId, long parentFolderId, ServiceContext serviceContext)
           
 JournalFolder moveFolderFromTrash(long userId, long folderId, long parentFolderId, ServiceContext serviceContext)
           
 JournalFolder moveFolderToTrash(long userId, long folderId)
           
 void rebuildTree(long companyId)
           
 void rebuildTree(long companyId, long parentFolderId, String parentTreePath, boolean reindex)
           
protected  void restoreDependentsFromTrash(List<Object> foldersAndArticles)
           
 void restoreFolderFromTrash(long userId, long folderId)
           
 void subscribe(long userId, long groupId, long folderId)
           
 void unsubscribe(long userId, long groupId, long folderId)
           
 void updateAsset(long userId, JournalFolder folder, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
 JournalFolder updateFolder(long userId, long groupId, long folderId, long parentFolderId, String name, String description, boolean mergeWithParentFolder, ServiceContext serviceContext)
           
 JournalFolder updateFolder(long userId, long groupId, long folderId, long parentFolderId, String name, String description, long[] ddmStructureIds, int restrictionType, boolean mergeWithParentFolder, ServiceContext serviceContext)
           
 void updateFolderDDMStructures(JournalFolder folder, long[] ddmStructureIdsArray)
           
 JournalFolder updateStatus(long userId, JournalFolder folder, int status)
           
protected  void validateArticleDDMStructures(long folderId, long[] ddmStructureIds)
           
protected  void validateFolder(long folderId, long groupId, long parentFolderId, String name)
           
 void validateFolderDDMStructures(long folderId, long parentFolderId)
           
 
Methods inherited from class com.liferay.portlet.journal.service.base.JournalFolderLocalServiceBaseImpl
addJournalFolder, afterPropertiesSet, createJournalFolder, deleteJournalFolder, deleteJournalFolder, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchJournalFolder, fetchJournalFolderByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getBeanIdentifier, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCounterLocalService, getDDMStructureFinder, getDDMStructureLinkLocalService, getDDMStructureLinkPersistence, getDDMStructureLocalService, getDDMStructurePersistence, getDDMStructureService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getJournalArticleFinder, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleService, getJournalFolder, getJournalFolderByUuidAndGroupId, getJournalFolderFinder, getJournalFolderLocalService, getJournalFolderPersistence, getJournalFolders, getJournalFoldersByUuidAndCompanyId, getJournalFoldersByUuidAndCompanyId, getJournalFoldersCount, getJournalFolderService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getSubscriptionLocalService, getSubscriptionPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getTrashVersionLocalService, getTrashVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setBeanIdentifier, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCounterLocalService, setDDMStructureFinder, setDDMStructureLinkLocalService, setDDMStructureLinkPersistence, setDDMStructureLocalService, setDDMStructurePersistence, setDDMStructureService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setJournalArticleFinder, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleService, setJournalFolderFinder, setJournalFolderLocalService, setJournalFolderPersistence, setJournalFolderService, setResourceLocalService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivityService, setSubscriptionLocalService, setSubscriptionPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateJournalFolder
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalFolderLocalServiceImpl

public JournalFolderLocalServiceImpl()
Method Detail

addFolder

public JournalFolder addFolder(long userId,
                               long groupId,
                               long parentFolderId,
                               String name,
                               String description,
                               ServiceContext serviceContext)
                        throws PortalException
Throws:
PortalException

deleteFolder

@Indexable(type=DELETE)
@SystemEvent(action=1,
             type=1)
public JournalFolder deleteFolder(JournalFolder folder)
                           throws PortalException
Throws:
PortalException

deleteFolder

@Indexable(type=DELETE)
@SystemEvent(action=1,
             type=1)
public JournalFolder deleteFolder(JournalFolder folder,
                                                                            boolean includeTrashedEntries)
                           throws PortalException
Throws:
PortalException

deleteFolder

@Indexable(type=DELETE)
public JournalFolder deleteFolder(long folderId)
                           throws PortalException
Throws:
PortalException

deleteFolder

@Indexable(type=DELETE)
public JournalFolder deleteFolder(long folderId,
                                                      boolean includeTrashedEntries)
                           throws PortalException
Throws:
PortalException

deleteFolders

public void deleteFolders(long groupId)
                   throws PortalException
Throws:
PortalException

fetchFolder

public JournalFolder fetchFolder(long folderId)

fetchFolder

public JournalFolder fetchFolder(long groupId,
                                 long parentFolderId,
                                 String name)

fetchFolder

public JournalFolder fetchFolder(long groupId,
                                 String name)

getCompanyFolders

public List<JournalFolder> getCompanyFolders(long companyId,
                                             int start,
                                             int end)

getCompanyFoldersCount

public int getCompanyFoldersCount(long companyId)

getDDMStructures

public List<DDMStructure> getDDMStructures(long[] groupIds,
                                           long folderId,
                                           int restrictionType)
                                    throws PortalException
Throws:
PortalException

getFolder

public JournalFolder getFolder(long folderId)
                        throws PortalException
Throws:
PortalException

getFolders

public List<JournalFolder> getFolders(long groupId)

getFolders

public List<JournalFolder> getFolders(long groupId,
                                      long parentFolderId)

getFolders

public List<JournalFolder> getFolders(long groupId,
                                      long parentFolderId,
                                      int status)

getFolders

public List<JournalFolder> getFolders(long groupId,
                                      long parentFolderId,
                                      int start,
                                      int end)

getFolders

public List<JournalFolder> getFolders(long groupId,
                                      long parentFolderId,
                                      int status,
                                      int start,
                                      int end)

getFoldersAndArticles

public List<Object> getFoldersAndArticles(long groupId,
                                          long folderId)

getFoldersAndArticles

public List<Object> getFoldersAndArticles(long groupId,
                                          long folderId,
                                          int status)

getFoldersAndArticles

public List<Object> getFoldersAndArticles(long groupId,
                                          long folderId,
                                          int start,
                                          int end,
                                          OrderByComparator<?> obc)

getFoldersAndArticlesCount

public int getFoldersAndArticlesCount(long groupId,
                                      List<Long> folderIds,
                                      int status)

getFoldersAndArticlesCount

public int getFoldersAndArticlesCount(long groupId,
                                      long folderId)

getFoldersAndArticlesCount

public int getFoldersAndArticlesCount(long groupId,
                                      long folderId,
                                      int status)

getFoldersCount

public int getFoldersCount(long groupId,
                           long parentFolderId)

getFoldersCount

public int getFoldersCount(long groupId,
                           long parentFolderId,
                           int status)

getInheritedWorkflowFolderId

public long getInheritedWorkflowFolderId(long folderId)
                                  throws NoSuchFolderException
Throws:
NoSuchFolderException

getNoAssetFolders

public List<JournalFolder> getNoAssetFolders()

getOverridedDDMStructuresFolderId

public long getOverridedDDMStructuresFolderId(long folderId)
                                       throws NoSuchFolderException
Throws:
NoSuchFolderException

getSubfolderIds

public void getSubfolderIds(List<Long> folderIds,
                            long groupId,
                            long folderId)

moveFolder

@Indexable(type=REINDEX)
public JournalFolder moveFolder(long folderId,
                                                     long parentFolderId,
                                                     ServiceContext serviceContext)
                         throws PortalException
Throws:
PortalException

moveFolderFromTrash

public JournalFolder moveFolderFromTrash(long userId,
                                         long folderId,
                                         long parentFolderId,
                                         ServiceContext serviceContext)
                                  throws PortalException
Throws:
PortalException

moveFolderToTrash

public JournalFolder moveFolderToTrash(long userId,
                                       long folderId)
                                throws PortalException
Throws:
PortalException

rebuildTree

public void rebuildTree(long companyId)
                 throws PortalException
Throws:
PortalException

rebuildTree

public void rebuildTree(long companyId,
                        long parentFolderId,
                        String parentTreePath,
                        boolean reindex)
                 throws PortalException
Throws:
PortalException

restoreFolderFromTrash

public void restoreFolderFromTrash(long userId,
                                   long folderId)
                            throws PortalException
Throws:
PortalException

subscribe

public void subscribe(long userId,
                      long groupId,
                      long folderId)
               throws PortalException
Throws:
PortalException

unsubscribe

public void unsubscribe(long userId,
                        long groupId,
                        long folderId)
                 throws PortalException
Throws:
PortalException

updateAsset

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

updateFolder

@Indexable(type=REINDEX)
public JournalFolder updateFolder(long userId,
                                                       long groupId,
                                                       long folderId,
                                                       long parentFolderId,
                                                       String name,
                                                       String description,
                                                       boolean mergeWithParentFolder,
                                                       ServiceContext serviceContext)
                           throws PortalException
Throws:
PortalException

updateFolder

@Indexable(type=REINDEX)
public JournalFolder updateFolder(long userId,
                                                       long groupId,
                                                       long folderId,
                                                       long parentFolderId,
                                                       String name,
                                                       String description,
                                                       long[] ddmStructureIds,
                                                       int restrictionType,
                                                       boolean mergeWithParentFolder,
                                                       ServiceContext serviceContext)
                           throws PortalException
Throws:
PortalException

updateFolderDDMStructures

public void updateFolderDDMStructures(JournalFolder folder,
                                      long[] ddmStructureIdsArray)
                               throws PortalException
Throws:
PortalException

updateStatus

public JournalFolder updateStatus(long userId,
                                  JournalFolder folder,
                                  int status)
                           throws PortalException
Throws:
PortalException

validateFolderDDMStructures

public void validateFolderDDMStructures(long folderId,
                                        long parentFolderId)
                                 throws PortalException
Throws:
PortalException

doUpdateFolder

protected JournalFolder doUpdateFolder(long userId,
                                       long folderId,
                                       long parentFolderId,
                                       String name,
                                       String description,
                                       long[] ddmStructureIds,
                                       int restrictionType,
                                       boolean mergeWithParentFolder,
                                       ServiceContext serviceContext)
                                throws PortalException
Throws:
PortalException

getDDMStructureIds

protected Set<Long> getDDMStructureIds(List<DDMStructureLink> ddmStructureLinks)

getParentFolderId

protected long getParentFolderId(JournalFolder folder,
                                 long parentFolderId)

getParentFolderId

protected long getParentFolderId(long groupId,
                                 long parentFolderId)

mergeFolders

protected void mergeFolders(JournalFolder fromFolder,
                            long toFolderId)
                     throws PortalException
Throws:
PortalException

moveDependentsToTrash

protected void moveDependentsToTrash(List<Object> foldersAndArticles,
                                     long trashEntryId)
                              throws PortalException
Throws:
PortalException

restoreDependentsFromTrash

protected void restoreDependentsFromTrash(List<Object> foldersAndArticles)
                                   throws PortalException
Throws:
PortalException

validateArticleDDMStructures

protected void validateArticleDDMStructures(long folderId,
                                            long[] ddmStructureIds)
                                     throws PortalException
Throws:
PortalException

validateFolder

protected void validateFolder(long folderId,
                              long groupId,
                              long parentFolderId,
                              String name)
                       throws PortalException
Throws:
PortalException

Liferay 7.0-ce-m6