Liferay 7.0-ce-m3

com.liferay.portlet.journal.service
Interface JournalFolderLocalService

All Superinterfaces:
BaseLocalService, PersistedModelLocalService
All Known Implementing Classes:
JournalFolderLocalServiceWrapper

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

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

See Also:
JournalFolderLocalServiceUtil, com.liferay.portlet.journal.service.base.JournalFolderLocalServiceBaseImpl, com.liferay.portlet.journal.service.impl.JournalFolderLocalServiceImpl

Method Summary
 void addDDMStructureJournalFolder(long structureId, JournalFolder journalFolder)
           
 void addDDMStructureJournalFolder(long structureId, long folderId)
           
 void addDDMStructureJournalFolders(long structureId, List<JournalFolder> JournalFolders)
           
 void addDDMStructureJournalFolders(long structureId, long[] folderIds)
           
 JournalFolder addFolder(long userId, long groupId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
 JournalFolder addJournalFolder(JournalFolder journalFolder)
          Adds the journal folder to the database.
 void clearDDMStructureJournalFolders(long structureId)
           
 JournalFolder createJournalFolder(long folderId)
          Creates a new journal folder with the primary key.
 void deleteDDMStructureJournalFolder(long structureId, JournalFolder journalFolder)
           
 void deleteDDMStructureJournalFolder(long structureId, long folderId)
           
 void deleteDDMStructureJournalFolders(long structureId, List<JournalFolder> JournalFolders)
           
 void deleteDDMStructureJournalFolders(long structureId, long[] folderIds)
           
 JournalFolder deleteFolder(JournalFolder folder)
           
 JournalFolder deleteFolder(JournalFolder folder, boolean includeTrashedEntries)
           
 JournalFolder deleteFolder(long folderId)
           
 JournalFolder deleteFolder(long folderId, boolean includeTrashedEntries)
           
 void deleteFolders(long groupId)
           
 JournalFolder deleteJournalFolder(JournalFolder journalFolder)
          Deletes the journal folder from the database.
 JournalFolder deleteJournalFolder(long folderId)
          Deletes the journal folder with the primary key from the database.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 JournalFolder fetchFolder(long folderId)
           
 JournalFolder fetchFolder(long groupId, long parentFolderId, String name)
           
 JournalFolder fetchFolder(long groupId, String name)
           
 JournalFolder fetchJournalFolder(long folderId)
           
 JournalFolder fetchJournalFolderByUuidAndGroupId(String uuid, long groupId)
          Returns the journal folder matching the UUID and group.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 List<JournalFolder> getCompanyFolders(long companyId, int start, int end)
           
 int getCompanyFoldersCount(long companyId)
           
 List<JournalFolder> getDDMStructureJournalFolders(long structureId)
           
 List<JournalFolder> getDDMStructureJournalFolders(long structureId, int start, int end)
           
 List<JournalFolder> getDDMStructureJournalFolders(long structureId, int start, int end, OrderByComparator<JournalFolder> orderByComparator)
           
 int getDDMStructureJournalFoldersCount(long structureId)
           
 long[] getDDMStructurePrimaryKeys(long folderId)
          Returns the structureIds of the d d m structures associated with the journal folder.
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 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)
           
 JournalFolder getJournalFolder(long folderId)
          Returns the journal folder with the primary key.
 JournalFolder getJournalFolderByUuidAndGroupId(String uuid, long groupId)
          Returns the journal folder matching the UUID and group.
 List<JournalFolder> getJournalFolders(int start, int end)
          Returns a range of all the journal folders.
 List<JournalFolder> getJournalFoldersByUuidAndCompanyId(String uuid, long companyId)
          Returns all the journal folders matching the UUID and company.
 List<JournalFolder> getJournalFoldersByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<JournalFolder> orderByComparator)
          Returns a range of journal folders matching the UUID and company.
 int getJournalFoldersCount()
          Returns the number of journal folders.
 List<JournalFolder> getNoAssetFolders()
           
 long getOverridedDDMStructuresFolderId(long folderId)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 void getSubfolderIds(List<Long> folderIds, long groupId, long folderId)
           
 boolean hasDDMStructureJournalFolder(long structureId, long folderId)
           
 boolean hasDDMStructureJournalFolders(long structureId)
           
 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)
           
 void restoreFolderFromTrash(long userId, long folderId)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setDDMStructureJournalFolders(long structureId, long[] folderIds)
           
 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 folderId, long parentFolderId, String name, String description, boolean mergeWithParentFolder, ServiceContext serviceContext)
           
 JournalFolder updateFolder(long userId, long folderId, long parentFolderId, String name, String description, long[] ddmStructureIds, int restrictionType, boolean mergeWithParentFolder, ServiceContext serviceContext)
           
 void updateFolderDDMStructures(JournalFolder folder, long[] ddmStructureIdsArray)
           
 JournalFolder updateJournalFolder(JournalFolder journalFolder)
          Updates the journal folder in the database or adds it if it does not yet exist.
 JournalFolder updateStatus(long userId, JournalFolder folder, int status)
           
 void validateFolderDDMStructures(long folderId, long parentFolderId)
           
 

Method Detail

addDDMStructureJournalFolder

void addDDMStructureJournalFolder(long structureId,
                                  long folderId)

addDDMStructureJournalFolder

void addDDMStructureJournalFolder(long structureId,
                                  JournalFolder journalFolder)

addDDMStructureJournalFolders

void addDDMStructureJournalFolders(long structureId,
                                   List<JournalFolder> JournalFolders)

addDDMStructureJournalFolders

void addDDMStructureJournalFolders(long structureId,
                                   long[] folderIds)

addFolder

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

addJournalFolder

@Indexable(type=REINDEX)
JournalFolder addJournalFolder(JournalFolder journalFolder)
Adds the journal folder to the database. Also notifies the appropriate model listeners.

Parameters:
journalFolder - the journal folder
Returns:
the journal folder that was added

clearDDMStructureJournalFolders

void clearDDMStructureJournalFolders(long structureId)

createJournalFolder

JournalFolder createJournalFolder(long folderId)
Creates a new journal folder with the primary key. Does not add the journal folder to the database.

Parameters:
folderId - the primary key for the new journal folder
Returns:
the new journal folder

deleteDDMStructureJournalFolder

void deleteDDMStructureJournalFolder(long structureId,
                                     long folderId)

deleteDDMStructureJournalFolder

void deleteDDMStructureJournalFolder(long structureId,
                                     JournalFolder journalFolder)

deleteDDMStructureJournalFolders

void deleteDDMStructureJournalFolders(long structureId,
                                      List<JournalFolder> JournalFolders)

deleteDDMStructureJournalFolders

void deleteDDMStructureJournalFolders(long structureId,
                                      long[] folderIds)

deleteFolder

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

deleteFolder

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

deleteFolder

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

deleteFolder

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

deleteFolders

void deleteFolders(long groupId)
                   throws PortalException
Throws:
PortalException

deleteJournalFolder

@Indexable(type=DELETE)
JournalFolder deleteJournalFolder(long folderId)
                                  throws PortalException
Deletes the journal folder with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
folderId - the primary key of the journal folder
Returns:
the journal folder that was removed
Throws:
PortalException - if a journal folder with the primary key could not be found

deleteJournalFolder

@Indexable(type=DELETE)
JournalFolder deleteJournalFolder(JournalFolder journalFolder)
Deletes the journal folder from the database. Also notifies the appropriate model listeners.

Parameters:
journalFolder - the journal folder
Returns:
the journal folder that was removed

deletePersistedModel

PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Throws:
PortalException

dynamicQuery

DynamicQuery dynamicQuery()

dynamicQuery

<T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

<T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.journal.model.impl.JournalFolderModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

<T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.journal.model.impl.JournalFolderModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery,
                       Projection projection)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchFolder

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalFolder fetchFolder(long folderId)

fetchFolder

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalFolder fetchFolder(long groupId,
                                                                   String name)

fetchFolder

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalFolder fetchFolder(long groupId,
                                                                   long parentFolderId,
                                                                   String name)

fetchJournalFolder

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalFolder fetchJournalFolder(long folderId)

fetchJournalFolderByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalFolder fetchJournalFolderByUuidAndGroupId(String uuid,
                                                                                          long groupId)
Returns the journal folder matching the UUID and group.

Parameters:
uuid - the journal folder's UUID
groupId - the primary key of the group
Returns:
the matching journal folder, or null if a matching journal folder could not be found

getActionableDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ActionableDynamicQuery getActionableDynamicQuery()

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

getCompanyFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getCompanyFolders(long companyId,
                                                                               int start,
                                                                               int end)

getCompanyFoldersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompanyFoldersCount(long companyId)

getDDMStructureJournalFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getDDMStructureJournalFolders(long structureId)

getDDMStructureJournalFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getDDMStructureJournalFolders(long structureId,
                                                                                           int start,
                                                                                           int end)

getDDMStructureJournalFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getDDMStructureJournalFolders(long structureId,
                                                                                           int start,
                                                                                           int end,
                                                                                           OrderByComparator<JournalFolder> orderByComparator)

getDDMStructureJournalFoldersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getDDMStructureJournalFoldersCount(long structureId)

getDDMStructurePrimaryKeys

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long[] getDDMStructurePrimaryKeys(long folderId)
Returns the structureIds of the d d m structures associated with the journal folder.

Parameters:
folderId - the folderId of the journal folder
Returns:
long[] the structureIds of d d m structures associated with the journal folder

getExportActionableDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)

getFolder

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalFolder getFolder(long folderId)
                        throws PortalException
Throws:
PortalException

getFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getFolders(long groupId)

getFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getFolders(long groupId,
                                                                        long parentFolderId)

getFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getFolders(long groupId,
                                                                        long parentFolderId,
                                                                        int start,
                                                                        int end)

getFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getFolders(long groupId,
                                                                        long parentFolderId,
                                                                        int status)

getFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getFolders(long groupId,
                                                                        long parentFolderId,
                                                                        int status,
                                                                        int start,
                                                                        int end)

getFoldersAndArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Object> getFoldersAndArticles(long groupId,
                                                                            long folderId)

getFoldersAndArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Object> getFoldersAndArticles(long groupId,
                                                                            long folderId,
                                                                            int start,
                                                                            int end,
                                                                            OrderByComparator<?> obc)

getFoldersAndArticles

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Object> getFoldersAndArticles(long groupId,
                                                                            long folderId,
                                                                            int status)

getFoldersAndArticlesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getFoldersAndArticlesCount(long groupId,
                                                                        long folderId)

getFoldersAndArticlesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getFoldersAndArticlesCount(long groupId,
                                                                        long folderId,
                                                                        int status)

getFoldersAndArticlesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getFoldersAndArticlesCount(long groupId,
                                                                        List<Long> folderIds,
                                                                        int status)

getFoldersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getFoldersCount(long groupId,
                                                             long parentFolderId)

getFoldersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getFoldersCount(long groupId,
                                                             long parentFolderId,
                                                             int status)

getInheritedWorkflowFolderId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long getInheritedWorkflowFolderId(long folderId)
                                  throws NoSuchFolderException
Throws:
NoSuchFolderException

getJournalFolder

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalFolder getJournalFolder(long folderId)
                               throws PortalException
Returns the journal folder with the primary key.

Parameters:
folderId - the primary key of the journal folder
Returns:
the journal folder
Throws:
PortalException - if a journal folder with the primary key could not be found

getJournalFolderByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JournalFolder getJournalFolderByUuidAndGroupId(String uuid,
                                                                                        long groupId)
                                               throws PortalException
Returns the journal folder matching the UUID and group.

Parameters:
uuid - the journal folder's UUID
groupId - the primary key of the group
Returns:
the matching journal folder
Throws:
PortalException - if a matching journal folder could not be found

getJournalFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getJournalFolders(int start,
                                                                               int end)
Returns a range of all the journal folders.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.journal.model.impl.JournalFolderModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of journal folders

getJournalFoldersByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getJournalFoldersByUuidAndCompanyId(String uuid,
                                                                                                 long companyId)
Returns all the journal folders matching the UUID and company.

Parameters:
uuid - the UUID of the journal folders
companyId - the primary key of the company
Returns:
the matching journal folders, or an empty list if no matches were found

getJournalFoldersByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getJournalFoldersByUuidAndCompanyId(String uuid,
                                                                                                 long companyId,
                                                                                                 int start,
                                                                                                 int end,
                                                                                                 OrderByComparator<JournalFolder> orderByComparator)
Returns a range of journal folders matching the UUID and company.

Parameters:
uuid - the UUID of the journal folders
companyId - the primary key of the company
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the range of matching journal folders, or an empty list if no matches were found

getJournalFoldersCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getJournalFoldersCount()
Returns the number of journal folders.

Returns:
the number of journal folders

getNoAssetFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<JournalFolder> getNoAssetFolders()

getOverridedDDMStructuresFolderId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long getOverridedDDMStructuresFolderId(long folderId)
                                       throws NoSuchFolderException
Throws:
NoSuchFolderException

getPersistedModel

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

getSubfolderIds

@Transactional(propagation=SUPPORTS,
               readOnly=true)
void getSubfolderIds(List<Long> folderIds,
                                                              long groupId,
                                                              long folderId)

hasDDMStructureJournalFolder

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasDDMStructureJournalFolder(long structureId,
                                                                              long folderId)

hasDDMStructureJournalFolders

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasDDMStructureJournalFolders(long structureId)

moveFolder

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

moveFolderFromTrash

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

moveFolderToTrash

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

rebuildTree

void rebuildTree(long companyId)
                 throws PortalException
Throws:
PortalException

rebuildTree

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

restoreFolderFromTrash

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

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

setDDMStructureJournalFolders

void setDDMStructureJournalFolders(long structureId,
                                   long[] folderIds)

subscribe

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

unsubscribe

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

updateAsset

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

updateFolder

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

updateFolder

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

updateFolderDDMStructures

void updateFolderDDMStructures(JournalFolder folder,
                               long[] ddmStructureIdsArray)

updateJournalFolder

@Indexable(type=REINDEX)
JournalFolder updateJournalFolder(JournalFolder journalFolder)
Updates the journal folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
journalFolder - the journal folder
Returns:
the journal folder that was updated

updateStatus

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

validateFolderDDMStructures

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

Liferay 7.0-ce-m3