Class DLFileEntryServiceWrapper
Object
com.liferay.document.library.kernel.service.DLFileEntryServiceWrapper
- All Implemented Interfaces:
DLFileEntryService
,BaseService
,ServiceWrapper<DLFileEntryService>
public class DLFileEntryServiceWrapper
extends Object
implements DLFileEntryService, ServiceWrapper<DLFileEntryService>
Provides a wrapper for
DLFileEntryService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFileEntry
(String externalReferenceCode, long groupId, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, long fileEntryTypeId, Map<String, DDMFormValues> ddmFormValuesMap, File file, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, ServiceContext serviceContext) cancelCheckOut
(long fileEntryId) void
checkInFileEntry
(long fileEntryId, DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, ServiceContext serviceContext) void
checkInFileEntry
(long fileEntryId, String lockUuid, ServiceContext serviceContext) checkOutFileEntry
(long fileEntryId, ServiceContext serviceContext) checkOutFileEntry
(long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext) copyFileEntry
(long groupId, long repositoryId, long sourceFileEntryId, long targetFolderId, ServiceContext serviceContext) void
deleteFileEntry
(long fileEntryId) void
deleteFileEntry
(long groupId, long folderId, String title) void
deleteFileEntryByExternalReferenceCode
(String externalReferenceCode, long groupId) void
deleteFileVersion
(long fileEntryId, String version) fetchFileEntry
(long groupId, long folderId, String title) fetchFileEntryByExternalReferenceCode
(long groupId, String externalReferenceCode) fetchFileEntryByImageId
(long imageId) getFileAsStream
(long fileEntryId, String version) getFileAsStream
(long fileEntryId, String version, boolean incrementCounter) getFileEntries
(long groupId, double score, int start, int end) getFileEntries
(long groupId, long folderId, int status, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) getFileEntries
(long groupId, long folderId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) getFileEntries
(long groupId, long folderId, long fileEntryTypeId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) getFileEntries
(long groupId, long folderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) getFileEntries
(long groupId, long folderId, String[] mimeTypes, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) int
getFileEntriesCount
(long groupId, double score) int
getFileEntriesCount
(long groupId, long folderId) int
getFileEntriesCount
(long groupId, long folderId, int status) int
getFileEntriesCount
(long groupId, long folderId, long fileEntryTypeId) int
getFileEntriesCount
(long groupId, long folderId, String[] mimeTypes) int
getFileEntriesCount
(long groupId, long folderId, String[] mimeTypes, int status) getFileEntry
(long fileEntryId) getFileEntry
(long groupId, long folderId, String title) getFileEntryByExternalReferenceCode
(String externalReferenceCode, long groupId) getFileEntryByFileName
(long groupId, long folderId, String fileName) getFileEntryByUuidAndGroupId
(String uuid, long groupId) getFileEntryLock
(long fileEntryId) int
getFoldersFileEntriesCount
(long groupId, List<Long> folderIds, int status) getGroupFileEntries
(long groupId, long userId, long rootFolderId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) getGroupFileEntries
(long groupId, long userId, long repositoryId, long rootFolderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) getGroupFileEntries
(long groupId, long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) int
getGroupFileEntriesCount
(long groupId, long userId, long rootFolderId) int
getGroupFileEntriesCount
(long groupId, long userId, long repositoryId, long rootFolderId, String[] mimeTypes, int status) int
getGroupFileEntriesCount
(long groupId, long userId, long rootFolderId, String[] mimeTypes, int status) Returns the OSGi service identifier.boolean
hasFileEntryLock
(long fileEntryId) boolean
isFileEntryCheckedOut
(long fileEntryId) moveFileEntry
(long fileEntryId, long newFolderId, ServiceContext serviceContext) refreshFileEntryLock
(String lockUuid, long companyId, long expirationTime) void
revertFileEntry
(long fileEntryId, String version, ServiceContext serviceContext) search
(long groupId, long creatorUserId, int status, int start, int end) search
(long groupId, long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end) void
setWrappedService
(DLFileEntryService dlFileEntryService) updateFileEntry
(long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, long fileEntryTypeId, Map<String, DDMFormValues> ddmFormValuesMap, File file, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, ServiceContext serviceContext) updateStatus
(long userId, long fileVersionId, int status, ServiceContext serviceContext, Map<String, Serializable> workflowContext) boolean
verifyFileEntryCheckOut
(long fileEntryId, String lockUuid) boolean
verifyFileEntryLock
(long fileEntryId, String lockUuid)
-
Constructor Details
-
DLFileEntryServiceWrapper
public DLFileEntryServiceWrapper() -
DLFileEntryServiceWrapper
-
-
Method Details
-
addFileEntry
public DLFileEntry addFileEntry(String externalReferenceCode, long groupId, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, long fileEntryTypeId, Map<String, DDMFormValues> ddmFormValuesMap, File file, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, ServiceContext serviceContext) throws PortalException- Specified by:
addFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
cancelCheckOut
- Specified by:
cancelCheckOut
in interfaceDLFileEntryService
- Throws:
PortalException
-
checkInFileEntry
public void checkInFileEntry(long fileEntryId, DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, ServiceContext serviceContext) throws PortalException - Specified by:
checkInFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
checkInFileEntry
public void checkInFileEntry(long fileEntryId, String lockUuid, ServiceContext serviceContext) throws PortalException - Specified by:
checkInFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
checkOutFileEntry
public DLFileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext) throws PortalException - Specified by:
checkOutFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
checkOutFileEntry
public DLFileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext) throws PortalException - Specified by:
checkOutFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
copyFileEntry
public DLFileEntry copyFileEntry(long groupId, long repositoryId, long sourceFileEntryId, long targetFolderId, ServiceContext serviceContext) throws PortalException - Specified by:
copyFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
deleteFileEntry
- Specified by:
deleteFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
deleteFileEntry
- Specified by:
deleteFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
deleteFileEntryByExternalReferenceCode
public void deleteFileEntryByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Specified by:
deleteFileEntryByExternalReferenceCode
in interfaceDLFileEntryService
- Throws:
PortalException
-
deleteFileVersion
- Specified by:
deleteFileVersion
in interfaceDLFileEntryService
- Throws:
PortalException
-
fetchFileEntry
- Specified by:
fetchFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
fetchFileEntryByExternalReferenceCode
public DLFileEntry fetchFileEntryByExternalReferenceCode(long groupId, String externalReferenceCode) throws PortalException - Specified by:
fetchFileEntryByExternalReferenceCode
in interfaceDLFileEntryService
- Throws:
PortalException
-
fetchFileEntryByImageId
- Specified by:
fetchFileEntryByImageId
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileAsStream
- Specified by:
getFileAsStream
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileAsStream
public InputStream getFileAsStream(long fileEntryId, String version, boolean incrementCounter) throws PortalException - Specified by:
getFileAsStream
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntries
public List<DLFileEntry> getFileEntries(long groupId, double score, int start, int end) throws PortalException - Specified by:
getFileEntries
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntries
public List<DLFileEntry> getFileEntries(long groupId, long folderId, int status, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) throws PortalException - Specified by:
getFileEntries
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntries
public List<DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) throws PortalException - Specified by:
getFileEntries
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntries
public List<DLFileEntry> getFileEntries(long groupId, long folderId, long fileEntryTypeId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) throws PortalException - Specified by:
getFileEntries
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntries
public List<DLFileEntry> getFileEntries(long groupId, long folderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) throws PortalException - Specified by:
getFileEntries
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntries
public List<DLFileEntry> getFileEntries(long groupId, long folderId, String[] mimeTypes, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) throws PortalException - Specified by:
getFileEntries
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntriesCount
- Specified by:
getFileEntriesCount
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntriesCount
public int getFileEntriesCount(long groupId, long folderId) - Specified by:
getFileEntriesCount
in interfaceDLFileEntryService
-
getFileEntriesCount
public int getFileEntriesCount(long groupId, long folderId, int status) - Specified by:
getFileEntriesCount
in interfaceDLFileEntryService
-
getFileEntriesCount
public int getFileEntriesCount(long groupId, long folderId, long fileEntryTypeId) - Specified by:
getFileEntriesCount
in interfaceDLFileEntryService
-
getFileEntriesCount
- Specified by:
getFileEntriesCount
in interfaceDLFileEntryService
-
getFileEntriesCount
- Specified by:
getFileEntriesCount
in interfaceDLFileEntryService
-
getFileEntry
- Specified by:
getFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntry
- Specified by:
getFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntryByExternalReferenceCode
public DLFileEntry getFileEntryByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Specified by:
getFileEntryByExternalReferenceCode
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntryByFileName
public DLFileEntry getFileEntryByFileName(long groupId, long folderId, String fileName) throws PortalException - Specified by:
getFileEntryByFileName
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntryByUuidAndGroupId
- Specified by:
getFileEntryByUuidAndGroupId
in interfaceDLFileEntryService
- Throws:
PortalException
-
getFileEntryLock
- Specified by:
getFileEntryLock
in interfaceDLFileEntryService
-
getFoldersFileEntriesCount
- Specified by:
getFoldersFileEntriesCount
in interfaceDLFileEntryService
-
getGroupFileEntries
public List<DLFileEntry> getGroupFileEntries(long groupId, long userId, long rootFolderId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) throws PortalException - Specified by:
getGroupFileEntries
in interfaceDLFileEntryService
- Throws:
PortalException
-
getGroupFileEntries
public List<DLFileEntry> getGroupFileEntries(long groupId, long userId, long repositoryId, long rootFolderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) throws PortalException - Specified by:
getGroupFileEntries
in interfaceDLFileEntryService
- Throws:
PortalException
-
getGroupFileEntries
public List<DLFileEntry> getGroupFileEntries(long groupId, long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<DLFileEntry> orderByComparator) throws PortalException - Specified by:
getGroupFileEntries
in interfaceDLFileEntryService
- Throws:
PortalException
-
getGroupFileEntriesCount
public int getGroupFileEntriesCount(long groupId, long userId, long rootFolderId) throws PortalException - Specified by:
getGroupFileEntriesCount
in interfaceDLFileEntryService
- Throws:
PortalException
-
getGroupFileEntriesCount
public int getGroupFileEntriesCount(long groupId, long userId, long repositoryId, long rootFolderId, String[] mimeTypes, int status) throws PortalException - Specified by:
getGroupFileEntriesCount
in interfaceDLFileEntryService
- Throws:
PortalException
-
getGroupFileEntriesCount
public int getGroupFileEntriesCount(long groupId, long userId, long rootFolderId, String[] mimeTypes, int status) throws PortalException - Specified by:
getGroupFileEntriesCount
in interfaceDLFileEntryService
- Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceDLFileEntryService
- Returns:
- the OSGi service identifier
-
hasFileEntryLock
- Specified by:
hasFileEntryLock
in interfaceDLFileEntryService
- Throws:
PortalException
-
isFileEntryCheckedOut
- Specified by:
isFileEntryCheckedOut
in interfaceDLFileEntryService
- Throws:
PortalException
-
moveFileEntry
public DLFileEntry moveFileEntry(long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException - Specified by:
moveFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
refreshFileEntryLock
public Lock refreshFileEntryLock(String lockUuid, long companyId, long expirationTime) throws PortalException - Specified by:
refreshFileEntryLock
in interfaceDLFileEntryService
- Throws:
PortalException
-
revertFileEntry
public void revertFileEntry(long fileEntryId, String version, ServiceContext serviceContext) throws PortalException - Specified by:
revertFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
search
public Hits search(long groupId, long creatorUserId, int status, int start, int end) throws PortalException - Specified by:
search
in interfaceDLFileEntryService
- Throws:
PortalException
-
search
public Hits search(long groupId, long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end) throws PortalException - Specified by:
search
in interfaceDLFileEntryService
- Throws:
PortalException
-
updateFileEntry
public DLFileEntry updateFileEntry(long fileEntryId, String sourceFileName, String mimeType, String title, String urlTitle, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, long fileEntryTypeId, Map<String, DDMFormValues> ddmFormValuesMap, File file, InputStream inputStream, long size, Date displayDate, Date expirationDate, Date reviewDate, ServiceContext serviceContext) throws PortalException- Specified by:
updateFileEntry
in interfaceDLFileEntryService
- Throws:
PortalException
-
updateStatus
public DLFileEntry updateStatus(long userId, long fileVersionId, int status, ServiceContext serviceContext, Map<String, Serializable> workflowContext) throws PortalException- Specified by:
updateStatus
in interfaceDLFileEntryService
- Throws:
PortalException
-
verifyFileEntryCheckOut
- Specified by:
verifyFileEntryCheckOut
in interfaceDLFileEntryService
- Throws:
PortalException
-
verifyFileEntryLock
- Specified by:
verifyFileEntryLock
in interfaceDLFileEntryService
- Throws:
PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<DLFileEntryService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<DLFileEntryService>
-