Class DLFolderLocalServiceWrapper
- All Implemented Interfaces:
DLFolderLocalService
,BaseLocalService
,CTService<DLFolder>
,PersistedModelLocalService
,ServiceWrapper<DLFolderLocalService>
DLFolderLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addDLFileEntryTypeDLFolder
(long fileEntryTypeId, long folderId) boolean
addDLFileEntryTypeDLFolder
(long fileEntryTypeId, DLFolder dlFolder) boolean
addDLFileEntryTypeDLFolders
(long fileEntryTypeId, long[] folderIds) boolean
addDLFileEntryTypeDLFolders
(long fileEntryTypeId, List<DLFolder> dlFolders) addDLFolder
(DLFolder dlFolder) Adds the document library folder to the database.addFolder
(String externalReferenceCode, long userId, long groupId, long repositoryId, boolean mountPoint, long parentFolderId, String name, String description, boolean hidden, ServiceContext serviceContext) void
clearDLFileEntryTypeDLFolders
(long fileEntryTypeId) createDLFolder
(long folderId) Creates a new document library folder with the primary key.createPersistedModel
(Serializable primaryKeyObj) void
deleteAllByGroup
(long groupId) void
deleteAllByRepository
(long repositoryId) void
deleteDLFileEntryTypeDLFolder
(long fileEntryTypeId, long folderId) void
deleteDLFileEntryTypeDLFolder
(long fileEntryTypeId, DLFolder dlFolder) void
deleteDLFileEntryTypeDLFolders
(long fileEntryTypeId, long[] folderIds) void
deleteDLFileEntryTypeDLFolders
(long fileEntryTypeId, List<DLFolder> dlFolders) deleteDLFolder
(long folderId) Deletes the document library folder with the primary key from the database.deleteDLFolder
(DLFolder dlFolder) Deletes the document library folder from the database.deleteFolder
(long folderId) deleteFolder
(long folderId, boolean includeTrashedEntries) deleteFolder
(long userId, long folderId, boolean includeTrashedEntries) deleteFolder
(DLFolder dlFolder) deleteFolder
(DLFolder dlFolder, boolean includeTrashedEntries) deletePersistedModel
(PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <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.fetchDLFolder
(long folderId) fetchDLFolderByExternalReferenceCode
(String externalReferenceCode, long groupId) fetchDLFolderByUuidAndGroupId
(String uuid, long groupId) Returns the document library folder matching the UUID and group.fetchFolder
(long folderId) fetchFolder
(long groupId, long parentFolderId, String name) fetchFolder
(String uuid, long groupId) getCompanyFolders
(long companyId, int start, int end) int
getCompanyFoldersCount
(long companyId) getDLFileEntryTypeDLFolders
(long fileEntryTypeId) getDLFileEntryTypeDLFolders
(long fileEntryTypeId, int start, int end) getDLFileEntryTypeDLFolders
(long fileEntryTypeId, int start, int end, OrderByComparator<DLFolder> orderByComparator) int
getDLFileEntryTypeDLFoldersCount
(long fileEntryTypeId) long[]
getDLFileEntryTypePrimaryKeys
(long folderId) Returns the fileEntryTypeIds of the document library file entry types associated with the document library folder.getDLFolder
(long folderId) Returns the document library folder with the primary key.getDLFolderByExternalReferenceCode
(String externalReferenceCode, long groupId) getDLFolderByUuidAndGroupId
(String uuid, long groupId) Returns the document library folder matching the UUID and group.getDLFolders
(int start, int end) Returns a range of all the document library folders.getDLFoldersByUuidAndCompanyId
(String uuid, long companyId) Returns all the document library folders matching the UUID and company.getDLFoldersByUuidAndCompanyId
(String uuid, long companyId, int start, int end, OrderByComparator<DLFolder> orderByComparator) Returns a range of document library folders matching the UUID and company.int
Returns the number of document library folders.getExportActionableDynamicQuery
(PortletDataContext portletDataContext) getFileEntriesAndFileShortcuts
(long groupId, long folderId, QueryDefinition<?> queryDefinition) int
getFileEntriesAndFileShortcutsCount
(long groupId, long folderId, QueryDefinition<?> queryDefinition) getFolder
(long folderId) long
getFolderId
(long companyId, long folderId) getFolders
(long groupId, boolean mountPoint, String treePath, boolean hidden) getFolders
(long groupId, long parentFolderId) getFolders
(long groupId, long parentFolderId, boolean includeMountfolders) getFolders
(long groupId, long parentFolderId, boolean includeMountfolders, int status, int start, int end, OrderByComparator<DLFolder> orderByComparator) getFolders
(long groupId, long parentFolderId, boolean includeMountfolders, int start, int end, OrderByComparator<DLFolder> orderByComparator) getFolders
(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> orderByComparator) getFolders
(long classNameId, String treePath) getFoldersAndFileEntriesAndFileShortcuts
(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition) int
getFoldersAndFileEntriesAndFileShortcutsCount
(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition) int
getFoldersCount
(long groupId, long parentFolderId) int
getFoldersCount
(long groupId, long parentFolderId, boolean includeMountfolders) int
getFoldersCount
(long groupId, long parentFolderId, boolean includeMountfolders, int status) int
getFoldersCount
(long groupId, long parentFolderId, int status, boolean includeMountfolders) Deprecated.long
getFolderSize
(long companyId, long groupId, String treePath) getGroupFolderIds
(long groupId, long parentFolderId) void
getGroupSubfolderIds
(List<Long> folderIds, long groupId, long folderId) getMountFolder
(long repositoryId) getMountFolders
(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> orderByComparator) int
getMountFoldersCount
(long groupId, long parentFolderId) getNotInTrashFolders
(long groupId, boolean mountPoint, String treePath, boolean hidden) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) getRepositoryFolderIds
(long repositoryId, long parentFolderId) getRepositoryFolders
(long repositoryId, int start, int end) int
getRepositoryFoldersCount
(long repositoryId) void
getRepositorySubfolderIds
(List<Long> folderIds, long repositoryId, long folderId) getUniqueFolderName
(String uuid, long groupId, long parentFolderId, String name, int count) boolean
hasDLFileEntryTypeDLFolder
(long fileEntryTypeId, long folderId) boolean
hasDLFileEntryTypeDLFolders
(long fileEntryTypeId) boolean
hasFolderLock
(long userId, long folderId) boolean
hasInheritableLock
(long folderId) lockFolder
(long userId, long folderId) lockFolder
(long userId, long folderId, String owner, boolean inheritable, long expirationTime) moveFolder
(long userId, long folderId, long parentFolderId, ServiceContext serviceContext) void
rebuildTree
(long companyId) void
rebuildTree
(long companyId, long parentFolderId, String parentTreePath, boolean reindex) void
setDLFileEntryTypeDLFolders
(long fileEntryTypeId, long[] folderIds) void
setWrappedService
(DLFolderLocalService dlFolderLocalService) void
unlockFolder
(long groupId, long parentFolderId, String name, String lockUuid) void
unlockFolder
(long folderId, String lockUuid) updateDLFolder
(DLFolder dlFolder) Updates the document library folder in the database or adds it if it does not yet exist.updateFolder
(long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) updateFolder
(long folderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) updateFolderAndFileEntryTypes
(long userId, long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) void
updateLastPostDate
(long folderId, Date lastPostDate) updateStatus
(long userId, long folderId, int status, Map<String, Serializable> workflowContext, ServiceContext serviceContext) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<DLFolder>, R, E> updateUnsafeFunction) boolean
verifyInheritableLock
(long folderId, String lockUuid) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
DLFolderLocalServiceWrapper
public DLFolderLocalServiceWrapper() -
DLFolderLocalServiceWrapper
-
-
Method Details
-
addDLFileEntryTypeDLFolder
- Specified by:
addDLFileEntryTypeDLFolder
in interfaceDLFolderLocalService
-
addDLFileEntryTypeDLFolder
public boolean addDLFileEntryTypeDLFolder(long fileEntryTypeId, long folderId) - Specified by:
addDLFileEntryTypeDLFolder
in interfaceDLFolderLocalService
-
addDLFileEntryTypeDLFolders
- Specified by:
addDLFileEntryTypeDLFolders
in interfaceDLFolderLocalService
-
addDLFileEntryTypeDLFolders
public boolean addDLFileEntryTypeDLFolders(long fileEntryTypeId, long[] folderIds) - Specified by:
addDLFileEntryTypeDLFolders
in interfaceDLFolderLocalService
-
addDLFolder
Adds the document library folder to the database. Also notifies the appropriate model listeners.Important: Inspect DLFolderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addDLFolder
in interfaceDLFolderLocalService
- Parameters:
dlFolder
- the document library folder- Returns:
- the document library folder that was added
-
addFolder
public DLFolder addFolder(String externalReferenceCode, long userId, long groupId, long repositoryId, boolean mountPoint, long parentFolderId, String name, String description, boolean hidden, ServiceContext serviceContext) throws PortalException - Specified by:
addFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
clearDLFileEntryTypeDLFolders
public void clearDLFileEntryTypeDLFolders(long fileEntryTypeId) - Specified by:
clearDLFileEntryTypeDLFolders
in interfaceDLFolderLocalService
-
createDLFolder
Creates a new document library folder with the primary key. Does not add the document library folder to the database.- Specified by:
createDLFolder
in interfaceDLFolderLocalService
- Parameters:
folderId
- the primary key for the new document library folder- Returns:
- the new document library folder
-
createPersistedModel
- Specified by:
createPersistedModel
in interfaceDLFolderLocalService
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
deleteAllByGroup
- Specified by:
deleteAllByGroup
in interfaceDLFolderLocalService
- Throws:
PortalException
-
deleteAllByRepository
- Specified by:
deleteAllByRepository
in interfaceDLFolderLocalService
- Throws:
PortalException
-
deleteDLFileEntryTypeDLFolder
- Specified by:
deleteDLFileEntryTypeDLFolder
in interfaceDLFolderLocalService
-
deleteDLFileEntryTypeDLFolder
public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId, long folderId) - Specified by:
deleteDLFileEntryTypeDLFolder
in interfaceDLFolderLocalService
-
deleteDLFileEntryTypeDLFolders
- Specified by:
deleteDLFileEntryTypeDLFolders
in interfaceDLFolderLocalService
-
deleteDLFileEntryTypeDLFolders
public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId, long[] folderIds) - Specified by:
deleteDLFileEntryTypeDLFolders
in interfaceDLFolderLocalService
-
deleteDLFolder
Deletes the document library folder from the database. Also notifies the appropriate model listeners.Important: Inspect DLFolderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteDLFolder
in interfaceDLFolderLocalService
- Parameters:
dlFolder
- the document library folder- Returns:
- the document library folder that was removed
-
deleteDLFolder
Deletes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect DLFolderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteDLFolder
in interfaceDLFolderLocalService
- Parameters:
folderId
- the primary key of the document library folder- Returns:
- the document library folder that was removed
- Throws:
PortalException
- if a document library folder with the primary key could not be foundPortalException
-
deleteFolder
- Specified by:
deleteFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
deleteFolder
public DLFolder deleteFolder(DLFolder dlFolder, boolean includeTrashedEntries) throws PortalException - Specified by:
deleteFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
deleteFolder
- Specified by:
deleteFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
deleteFolder
- Specified by:
deleteFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
deleteFolder
public DLFolder deleteFolder(long userId, long folderId, boolean includeTrashedEntries) throws PortalException - Specified by:
deleteFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfaceDLFolderLocalService
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceDLFolderLocalService
- Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceDLFolderLocalService
- Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceDLFolderLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceDLFolderLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl
.- Specified by:
dynamicQuery
in interfaceDLFolderLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl
.- Specified by:
dynamicQuery
in interfaceDLFolderLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceDLFolderLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceDLFolderLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchDLFolder
- Specified by:
fetchDLFolder
in interfaceDLFolderLocalService
-
fetchDLFolderByExternalReferenceCode
- Specified by:
fetchDLFolderByExternalReferenceCode
in interfaceDLFolderLocalService
-
fetchDLFolderByUuidAndGroupId
Returns the document library folder matching the UUID and group.- Specified by:
fetchDLFolderByUuidAndGroupId
in interfaceDLFolderLocalService
- Parameters:
uuid
- the document library folder's UUIDgroupId
- the primary key of the group- Returns:
- the matching document library folder, or
null
if a matching document library folder could not be found
-
fetchFolder
- Specified by:
fetchFolder
in interfaceDLFolderLocalService
-
fetchFolder
- Specified by:
fetchFolder
in interfaceDLFolderLocalService
-
fetchFolder
- Specified by:
fetchFolder
in interfaceDLFolderLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceDLFolderLocalService
-
getCompanyFolders
- Specified by:
getCompanyFolders
in interfaceDLFolderLocalService
-
getCompanyFoldersCount
public int getCompanyFoldersCount(long companyId) - Specified by:
getCompanyFoldersCount
in interfaceDLFolderLocalService
-
getDLFileEntryTypeDLFolders
- Specified by:
getDLFileEntryTypeDLFolders
in interfaceDLFolderLocalService
-
getDLFileEntryTypeDLFolders
- Specified by:
getDLFileEntryTypeDLFolders
in interfaceDLFolderLocalService
-
getDLFileEntryTypeDLFolders
public List<DLFolder> getDLFileEntryTypeDLFolders(long fileEntryTypeId, int start, int end, OrderByComparator<DLFolder> orderByComparator) - Specified by:
getDLFileEntryTypeDLFolders
in interfaceDLFolderLocalService
-
getDLFileEntryTypeDLFoldersCount
public int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId) - Specified by:
getDLFileEntryTypeDLFoldersCount
in interfaceDLFolderLocalService
-
getDLFileEntryTypePrimaryKeys
public long[] getDLFileEntryTypePrimaryKeys(long folderId) Returns the fileEntryTypeIds of the document library file entry types associated with the document library folder.- Specified by:
getDLFileEntryTypePrimaryKeys
in interfaceDLFolderLocalService
- Parameters:
folderId
- the folderId of the document library folder- Returns:
- long[] the fileEntryTypeIds of document library file entry types associated with the document library folder
-
getDLFolder
Returns the document library folder with the primary key.- Specified by:
getDLFolder
in interfaceDLFolderLocalService
- Parameters:
folderId
- the primary key of the document library folder- Returns:
- the document library folder
- Throws:
PortalException
- if a document library folder with the primary key could not be foundPortalException
-
getDLFolderByExternalReferenceCode
public DLFolder getDLFolderByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Specified by:
getDLFolderByExternalReferenceCode
in interfaceDLFolderLocalService
- Throws:
PortalException
-
getDLFolderByUuidAndGroupId
Returns the document library folder matching the UUID and group.- Specified by:
getDLFolderByUuidAndGroupId
in interfaceDLFolderLocalService
- Parameters:
uuid
- the document library folder's UUIDgroupId
- the primary key of the group- Returns:
- the matching document library folder
- Throws:
PortalException
- if a matching document library folder could not be foundPortalException
-
getDLFolders
Returns a range of all the document library folders.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl
.- Specified by:
getDLFolders
in interfaceDLFolderLocalService
- Parameters:
start
- the lower bound of the range of document library foldersend
- the upper bound of the range of document library folders (not inclusive)- Returns:
- the range of document library folders
-
getDLFoldersByUuidAndCompanyId
Returns all the document library folders matching the UUID and company.- Specified by:
getDLFoldersByUuidAndCompanyId
in interfaceDLFolderLocalService
- Parameters:
uuid
- the UUID of the document library folderscompanyId
- the primary key of the company- Returns:
- the matching document library folders, or an empty list if no matches were found
-
getDLFoldersByUuidAndCompanyId
public List<DLFolder> getDLFoldersByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<DLFolder> orderByComparator) Returns a range of document library folders matching the UUID and company.- Specified by:
getDLFoldersByUuidAndCompanyId
in interfaceDLFolderLocalService
- Parameters:
uuid
- the UUID of the document library folderscompanyId
- the primary key of the companystart
- the lower bound of the range of document library foldersend
- the upper bound of the range of document library folders (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the range of matching document library folders, or an empty list if no matches were found
-
getDLFoldersCount
public int getDLFoldersCount()Returns the number of document library folders.- Specified by:
getDLFoldersCount
in interfaceDLFolderLocalService
- Returns:
- the number of document library folders
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceDLFolderLocalService
-
getFileEntriesAndFileShortcuts
public List<Object> getFileEntriesAndFileShortcuts(long groupId, long folderId, QueryDefinition<?> queryDefinition) - Specified by:
getFileEntriesAndFileShortcuts
in interfaceDLFolderLocalService
-
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, QueryDefinition<?> queryDefinition) - Specified by:
getFileEntriesAndFileShortcutsCount
in interfaceDLFolderLocalService
-
getFolder
- Specified by:
getFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
getFolder
- Specified by:
getFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
getFolderId
public long getFolderId(long companyId, long folderId) - Specified by:
getFolderId
in interfaceDLFolderLocalService
-
getFolders
- Specified by:
getFolders
in interfaceDLFolderLocalService
-
getFolders
- Specified by:
getFolders
in interfaceDLFolderLocalService
-
getFolders
- Specified by:
getFolders
in interfaceDLFolderLocalService
-
getFolders
public List<DLFolder> getFolders(long groupId, long parentFolderId, boolean includeMountfolders, int status, int start, int end, OrderByComparator<DLFolder> orderByComparator) - Specified by:
getFolders
in interfaceDLFolderLocalService
-
getFolders
public List<DLFolder> getFolders(long groupId, long parentFolderId, boolean includeMountfolders, int start, int end, OrderByComparator<DLFolder> orderByComparator) - Specified by:
getFolders
in interfaceDLFolderLocalService
-
getFolders
public List<DLFolder> getFolders(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> orderByComparator) - Specified by:
getFolders
in interfaceDLFolderLocalService
-
getFolders
- Specified by:
getFolders
in interfaceDLFolderLocalService
-
getFoldersAndFileEntriesAndFileShortcuts
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition) - Specified by:
getFoldersAndFileEntriesAndFileShortcuts
in interfaceDLFolderLocalService
-
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, String[] mimeTypes, boolean includeMountFolders, QueryDefinition<?> queryDefinition) - Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount
in interfaceDLFolderLocalService
-
getFoldersCount
public int getFoldersCount(long groupId, long parentFolderId) - Specified by:
getFoldersCount
in interfaceDLFolderLocalService
-
getFoldersCount
public int getFoldersCount(long groupId, long parentFolderId, boolean includeMountfolders) - Specified by:
getFoldersCount
in interfaceDLFolderLocalService
-
getFoldersCount
public int getFoldersCount(long groupId, long parentFolderId, boolean includeMountfolders, int status) - Specified by:
getFoldersCount
in interfaceDLFolderLocalService
-
getFoldersCount
@Deprecated public int getFoldersCount(long groupId, long parentFolderId, int status, boolean includeMountfolders) Deprecated.As of Athanasius (7.3.x), replaced bygetFoldersCount(long, long, boolean, int)
- Specified by:
getFoldersCount
in interfaceDLFolderLocalService
-
getFolderSize
- Specified by:
getFolderSize
in interfaceDLFolderLocalService
-
getGroupFolderIds
- Specified by:
getGroupFolderIds
in interfaceDLFolderLocalService
-
getGroupSubfolderIds
- Specified by:
getGroupSubfolderIds
in interfaceDLFolderLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceDLFolderLocalService
-
getMountFolder
- Specified by:
getMountFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
getMountFolders
public List<DLFolder> getMountFolders(long groupId, long parentFolderId, int start, int end, OrderByComparator<DLFolder> orderByComparator) - Specified by:
getMountFolders
in interfaceDLFolderLocalService
-
getMountFoldersCount
public int getMountFoldersCount(long groupId, long parentFolderId) - Specified by:
getMountFoldersCount
in interfaceDLFolderLocalService
-
getNoAssetFolders
- Specified by:
getNoAssetFolders
in interfaceDLFolderLocalService
-
getNotInTrashFolders
public List<DLFolder> getNotInTrashFolders(long groupId, boolean mountPoint, String treePath, boolean hidden) - Specified by:
getNotInTrashFolders
in interfaceDLFolderLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceDLFolderLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfaceDLFolderLocalService
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
getRepositoryFolderIds
- Specified by:
getRepositoryFolderIds
in interfaceDLFolderLocalService
-
getRepositoryFolders
- Specified by:
getRepositoryFolders
in interfaceDLFolderLocalService
-
getRepositoryFoldersCount
public int getRepositoryFoldersCount(long repositoryId) - Specified by:
getRepositoryFoldersCount
in interfaceDLFolderLocalService
-
getRepositorySubfolderIds
- Specified by:
getRepositorySubfolderIds
in interfaceDLFolderLocalService
-
getUniqueFolderName
public String getUniqueFolderName(String uuid, long groupId, long parentFolderId, String name, int count) - Specified by:
getUniqueFolderName
in interfaceDLFolderLocalService
-
hasDLFileEntryTypeDLFolder
public boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId, long folderId) - Specified by:
hasDLFileEntryTypeDLFolder
in interfaceDLFolderLocalService
-
hasDLFileEntryTypeDLFolders
public boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId) - Specified by:
hasDLFileEntryTypeDLFolders
in interfaceDLFolderLocalService
-
hasFolderLock
public boolean hasFolderLock(long userId, long folderId) - Specified by:
hasFolderLock
in interfaceDLFolderLocalService
-
hasInheritableLock
public boolean hasInheritableLock(long folderId) - Specified by:
hasInheritableLock
in interfaceDLFolderLocalService
-
lockFolder
- Specified by:
lockFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
lockFolder
public Lock lockFolder(long userId, long folderId, String owner, boolean inheritable, long expirationTime) throws PortalException - Specified by:
lockFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
moveFolder
public DLFolder moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext) throws PortalException - Specified by:
moveFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
rebuildTree
- Specified by:
rebuildTree
in interfaceDLFolderLocalService
- Throws:
PortalException
-
rebuildTree
public void rebuildTree(long companyId, long parentFolderId, String parentTreePath, boolean reindex) throws PortalException - Specified by:
rebuildTree
in interfaceDLFolderLocalService
- Throws:
PortalException
-
setDLFileEntryTypeDLFolders
public void setDLFileEntryTypeDLFolders(long fileEntryTypeId, long[] folderIds) - Specified by:
setDLFileEntryTypeDLFolders
in interfaceDLFolderLocalService
-
unlockFolder
public void unlockFolder(long groupId, long parentFolderId, String name, String lockUuid) throws PortalException - Specified by:
unlockFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
unlockFolder
- Specified by:
unlockFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
updateDLFolder
Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect DLFolderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateDLFolder
in interfaceDLFolderLocalService
- Parameters:
dlFolder
- the document library folder- Returns:
- the document library folder that was updated
-
updateFolder
public DLFolder updateFolder(long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) throws PortalException - Specified by:
updateFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
updateFolder
public DLFolder updateFolder(long folderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) throws PortalException - Specified by:
updateFolder
in interfaceDLFolderLocalService
- Throws:
PortalException
-
updateFolderAndFileEntryTypes
public DLFolder updateFolderAndFileEntryTypes(long userId, long folderId, long parentFolderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, int restrictionType, ServiceContext serviceContext) throws PortalException - Specified by:
updateFolderAndFileEntryTypes
in interfaceDLFolderLocalService
- Throws:
PortalException
-
updateLastPostDate
- Specified by:
updateLastPostDate
in interfaceDLFolderLocalService
- Throws:
PortalException
-
updateStatus
public DLFolder updateStatus(long userId, long folderId, int status, Map<String, Serializable> workflowContext, ServiceContext serviceContext) throws PortalException- Specified by:
updateStatus
in interfaceDLFolderLocalService
- Throws:
PortalException
-
verifyInheritableLock
- Specified by:
verifyInheritableLock
in interfaceDLFolderLocalService
- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<DLFolder>
- Specified by:
getCTPersistence
in interfaceDLFolderLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<DLFolder>
- Specified by:
getModelClass
in interfaceDLFolderLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<DLFolder>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<DLFolder>
- Specified by:
updateWithUnsafeFunction
in interfaceDLFolderLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<DLFolderLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<DLFolderLocalService>
-
getFoldersCount(long, long, boolean, int)