@ProviderType
public class DLFileEntryLocalServiceUtil
extends java.lang.Object
com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl and is the
primary access point for service operations in application layer code running
on the local server. 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.DLFileEntryLocalService,
com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl,
com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl| Constructor and Description |
|---|
DLFileEntryLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static DLFileEntry |
addDLFileEntry(DLFileEntry dlFileEntry)
Adds the document library file entry to the database.
|
static DLFileEntry |
addFileEntry(long userId,
long groupId,
long repositoryId,
long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
long fileEntryTypeId,
java.util.Map<java.lang.String,Fields> fieldsMap,
java.io.File file,
java.io.InputStream is,
long size,
ServiceContext serviceContext) |
static DLFileVersion |
cancelCheckOut(long userId,
long fileEntryId) |
static void |
checkInFileEntry(long userId,
long fileEntryId,
boolean majorVersion,
java.lang.String changeLog,
ServiceContext serviceContext) |
static void |
checkInFileEntry(long userId,
long fileEntryId,
java.lang.String lockUuid)
Deprecated.
As of 6.2.0, replaced by
checkInFileEntry(long, long,
String, ServiceContext) |
static void |
checkInFileEntry(long userId,
long fileEntryId,
java.lang.String lockUuid,
ServiceContext serviceContext) |
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId)
Deprecated.
As of 6.2.0, replaced by
checkOutFileEntry(long,
long, ServiceContext) |
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
ServiceContext serviceContext) |
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
java.lang.String owner,
long expirationTime)
Deprecated.
As of 6.2.0, replaced by
checkOutFileEntry(long,
long, String, long, ServiceContext) |
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
java.lang.String owner,
long expirationTime,
ServiceContext serviceContext) |
static void |
convertExtraSettings(java.lang.String[] keys) |
static void |
copyFileEntryMetadata(long companyId,
long fileEntryTypeId,
long fileEntryId,
long fromFileVersionId,
long toFileVersionId,
ServiceContext serviceContext) |
static DLFileEntry |
createDLFileEntry(long fileEntryId)
Creates a new document library file entry with the primary key.
|
static DLFileEntry |
deleteDLFileEntry(DLFileEntry dlFileEntry)
Deletes the document library file entry from the database.
|
static DLFileEntry |
deleteDLFileEntry(long fileEntryId)
Deletes the document library file entry with the primary key from the database.
|
static void |
deleteFileEntries(long groupId,
long folderId) |
static void |
deleteFileEntries(long groupId,
long folderId,
boolean includeTrashedEntries) |
static DLFileEntry |
deleteFileEntry(DLFileEntry dlFileEntry) |
static DLFileEntry |
deleteFileEntry(long fileEntryId) |
static DLFileEntry |
deleteFileEntry(long userId,
long fileEntryId) |
static DLFileEntry |
deleteFileVersion(long userId,
long fileEntryId,
java.lang.String version) |
static void |
deleteRepositoryFileEntries(long repositoryId,
long folderId) |
static void |
deleteRepositoryFileEntries(long repositoryId,
long folderId,
boolean includeTrashedEntries) |
static DynamicQuery |
dynamicQuery() |
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query.
|
static DLFileEntry |
fetchDLFileEntry(long fileEntryId) |
static DLFileEntry |
fetchDLFileEntryByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the document library file entry with the matching UUID and company.
|
static DLFileEntry |
fetchDLFileEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the document library file entry matching the UUID and group.
|
static DLFileEntry |
fetchFileEntry(long groupId,
long folderId,
java.lang.String title) |
static DLFileEntry |
fetchFileEntryByAnyImageId(long imageId) |
static DLFileEntry |
fetchFileEntryByName(long groupId,
long folderId,
java.lang.String name) |
static java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static java.util.List<DLFileEntry> |
getDDMStructureFileEntries(long[] ddmStructureIds) |
static java.util.List<DLFileEntry> |
getDDMStructureFileEntries(long groupId,
long[] ddmStructureIds) |
static java.util.List<DLFileEntry> |
getDLFileEntries(int start,
int end)
Returns a range of all the document library file entries.
|
static int |
getDLFileEntriesCount()
Returns the number of document library file entries.
|
static DLFileEntry |
getDLFileEntry(long fileEntryId)
Returns the document library file entry with the primary key.
|
static DLFileEntry |
getDLFileEntryByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the document library file entry with the matching UUID and company.
|
static DLFileEntry |
getDLFileEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the document library file entry matching the UUID and group.
|
static java.util.List<DLFileEntry> |
getExtraSettingsFileEntries(int start,
int end) |
static int |
getExtraSettingsFileEntriesCount() |
static java.io.File |
getFile(long userId,
long fileEntryId,
java.lang.String version,
boolean incrementCounter) |
static java.io.File |
getFile(long userId,
long fileEntryId,
java.lang.String version,
boolean incrementCounter,
int increment) |
static java.io.InputStream |
getFileAsStream(long userId,
long fileEntryId,
java.lang.String version) |
static java.io.InputStream |
getFileAsStream(long userId,
long fileEntryId,
java.lang.String version,
boolean incrementCounter) |
static java.io.InputStream |
getFileAsStream(long userId,
long fileEntryId,
java.lang.String version,
boolean incrementCounter,
int increment) |
static java.util.List<DLFileEntry> |
getFileEntries(int start,
int end) |
static java.util.List<DLFileEntry> |
getFileEntries(long groupId,
long folderId) |
static java.util.List<DLFileEntry> |
getFileEntries(long groupId,
long folderId,
int status,
int start,
int end,
OrderByComparator obc) |
static java.util.List<DLFileEntry> |
getFileEntries(long groupId,
long folderId,
int start,
int end,
OrderByComparator obc) |
static java.util.List<DLFileEntry> |
getFileEntries(long groupId,
long userId,
java.util.List<java.lang.Long> repositoryIds,
java.util.List<java.lang.Long> folderIds,
java.lang.String[] mimeTypes,
QueryDefinition queryDefinition) |
static java.util.List<DLFileEntry> |
getFileEntries(long groupId,
long userId,
java.util.List<java.lang.Long> folderIds,
java.lang.String[] mimeTypes,
QueryDefinition queryDefinition) |
static java.util.List<DLFileEntry> |
getFileEntries(long folderId,
java.lang.String name) |
static int |
getFileEntriesCount() |
static int |
getFileEntriesCount(long groupId,
DateRange dateRange,
long repositoryId,
QueryDefinition queryDefinition) |
static int |
getFileEntriesCount(long groupId,
long folderId) |
static int |
getFileEntriesCount(long groupId,
long folderId,
int status) |
static int |
getFileEntriesCount(long groupId,
long userId,
java.util.List<java.lang.Long> repositoryIds,
java.util.List<java.lang.Long> folderIds,
java.lang.String[] mimeTypes,
QueryDefinition queryDefinition) |
static int |
getFileEntriesCount(long groupId,
long userId,
java.util.List<java.lang.Long> folderIds,
java.lang.String[] mimeTypes,
QueryDefinition queryDefinition) |
static DLFileEntry |
getFileEntry(long fileEntryId) |
static DLFileEntry |
getFileEntry(long groupId,
long folderId,
java.lang.String title) |
static DLFileEntry |
getFileEntryByName(long groupId,
long folderId,
java.lang.String name) |
static DLFileEntry |
getFileEntryByUuidAndGroupId(java.lang.String uuid,
long groupId) |
static java.util.List<DLFileEntry> |
getGroupFileEntries(long groupId,
int start,
int end) |
static java.util.List<DLFileEntry> |
getGroupFileEntries(long groupId,
int start,
int end,
OrderByComparator obc) |
static java.util.List<DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
int start,
int end) |
static java.util.List<DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
int start,
int end,
OrderByComparator obc) |
static int |
getGroupFileEntriesCount(long groupId) |
static int |
getGroupFileEntriesCount(long groupId,
long userId) |
static java.util.List<DLFileEntry> |
getMisversionedFileEntries() |
static java.util.List<DLFileEntry> |
getNoAssetFileEntries() |
static java.util.List<DLFileEntry> |
getOrphanedFileEntries() |
static PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static DLFileEntryLocalService |
getService() |
static boolean |
hasExtraSettings() |
static boolean |
hasFileEntryLock(long userId,
long fileEntryId) |
static void |
incrementViewCounter(DLFileEntry dlFileEntry,
int increment) |
static boolean |
isFileEntryCheckedOut(long fileEntryId) |
static Lock |
lockFileEntry(long userId,
long fileEntryId) |
static DLFileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext) |
static void |
rebuildTree(long companyId) |
static void |
revertFileEntry(long userId,
long fileEntryId,
java.lang.String version,
ServiceContext serviceContext) |
static Hits |
search(long groupId,
long userId,
long creatorUserId,
int status,
int start,
int end) |
static Hits |
search(long groupId,
long userId,
long creatorUserId,
long folderId,
java.lang.String[] mimeTypes,
int status,
int start,
int end) |
static void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setService(DLFileEntryLocalService service)
Deprecated.
As of 6.2.0
|
static void |
unlockFileEntry(long fileEntryId) |
static DLFileEntry |
updateDLFileEntry(DLFileEntry dlFileEntry)
Updates the document library file entry in the database or adds it if it does not yet exist.
|
static DLFileEntry |
updateFileEntry(long userId,
long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
long fileEntryTypeId,
java.util.Map<java.lang.String,Fields> fieldsMap,
java.io.File file,
java.io.InputStream is,
long size,
ServiceContext serviceContext) |
static void |
updateSmallImage(long smallImageId,
long largeImageId) |
static DLFileEntry |
updateStatus(long userId,
long fileVersionId,
int status,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext,
ServiceContext serviceContext) |
static void |
validateFile(long groupId,
long folderId,
long fileEntryId,
java.lang.String title,
java.lang.String extension) |
static boolean |
verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid) |
static boolean |
verifyFileEntryLock(long fileEntryId,
java.lang.String lockUuid) |
public static DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry) throws SystemException
dlFileEntry - the document library file entrySystemException - if a system exception occurredpublic static DLFileEntry createDLFileEntry(long fileEntryId)
fileEntryId - the primary key for the new document library file entrypublic static DLFileEntry deleteDLFileEntry(long fileEntryId) throws PortalException, SystemException
fileEntryId - the primary key of the document library file entryPortalException - if a document library file entry with the primary key could not be foundSystemException - if a system exception occurredpublic static DLFileEntry deleteDLFileEntry(DLFileEntry dlFileEntry) throws SystemException
dlFileEntry - the document library file entrySystemException - if a system exception occurredpublic static DynamicQuery dynamicQuery()
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredpublic static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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 DLFileEntryModelImpl. 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.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)SystemException - if a system exception occurredpublic static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 DLFileEntryModelImpl. 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.
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 (optionally null)SystemException - if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQuery - the dynamic queryprojection - the projection to apply to the querySystemException - if a system exception occurredpublic static DLFileEntry fetchDLFileEntry(long fileEntryId) throws SystemException
SystemExceptionpublic static DLFileEntry fetchDLFileEntryByUuidAndCompanyId(java.lang.String uuid, long companyId) throws SystemException
uuid - the document library file entry's UUIDcompanyId - the primary key of the companynull if a matching document library file entry could not be foundSystemException - if a system exception occurredpublic static DLFileEntry fetchDLFileEntryByUuidAndGroupId(java.lang.String uuid, long groupId) throws SystemException
uuid - the document library file entry's UUIDgroupId - the primary key of the groupnull if a matching document library file entry could not be foundSystemException - if a system exception occurredpublic static DLFileEntry getDLFileEntry(long fileEntryId) throws PortalException, SystemException
fileEntryId - the primary key of the document library file entryPortalException - if a document library file entry with the primary key could not be foundSystemException - if a system exception occurredpublic static PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry getDLFileEntryByUuidAndCompanyId(java.lang.String uuid, long companyId) throws PortalException, SystemException
uuid - the document library file entry's UUIDcompanyId - the primary key of the companyPortalException - if a matching document library file entry could not be foundSystemException - if a system exception occurredpublic static DLFileEntry getDLFileEntryByUuidAndGroupId(java.lang.String uuid, long groupId) throws PortalException, SystemException
uuid - the document library file entry's UUIDgroupId - the primary key of the groupPortalException - if a matching document library file entry could not be foundSystemException - if a system exception occurredpublic static java.util.List<DLFileEntry> getDLFileEntries(int start, int end) throws SystemException
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 DLFileEntryModelImpl. 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.
start - the lower bound of the range of document library file entriesend - the upper bound of the range of document library file entries (not inclusive)SystemException - if a system exception occurredpublic static int getDLFileEntriesCount()
throws SystemException
SystemException - if a system exception occurredpublic static DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry) throws SystemException
dlFileEntry - the document library file entrySystemException - if a system exception occurredpublic static java.lang.String getBeanIdentifier()
public static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static DLFileEntry addFileEntry(long userId, long groupId, long repositoryId, long folderId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, long fileEntryTypeId, java.util.Map<java.lang.String,Fields> fieldsMap, java.io.File file, java.io.InputStream is, long size, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static DLFileVersion cancelCheckOut(long userId, long fileEntryId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void checkInFileEntry(long userId,
long fileEntryId,
boolean majorVersion,
java.lang.String changeLog,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void checkInFileEntry(long userId,
long fileEntryId,
java.lang.String lockUuid)
throws PortalException,
SystemException
checkInFileEntry(long, long,
String, ServiceContext)PortalExceptionSystemExceptionpublic static void checkInFileEntry(long userId,
long fileEntryId,
java.lang.String lockUuid,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry checkOutFileEntry(long userId, long fileEntryId) throws PortalException, SystemException
checkOutFileEntry(long,
long, ServiceContext)PortalExceptionSystemExceptionpublic static DLFileEntry checkOutFileEntry(long userId, long fileEntryId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry checkOutFileEntry(long userId, long fileEntryId, java.lang.String owner, long expirationTime) throws PortalException, SystemException
checkOutFileEntry(long,
long, String, long, ServiceContext)PortalExceptionSystemExceptionpublic static DLFileEntry checkOutFileEntry(long userId, long fileEntryId, java.lang.String owner, long expirationTime, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void convertExtraSettings(java.lang.String[] keys)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void copyFileEntryMetadata(long companyId,
long fileEntryTypeId,
long fileEntryId,
long fromFileVersionId,
long toFileVersionId,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deleteFileEntries(long groupId,
long folderId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deleteFileEntries(long groupId,
long folderId,
boolean includeTrashedEntries)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry deleteFileEntry(DLFileEntry dlFileEntry) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry deleteFileEntry(long fileEntryId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry deleteFileEntry(long userId, long fileEntryId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry deleteFileVersion(long userId, long fileEntryId, java.lang.String version) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void deleteRepositoryFileEntries(long repositoryId,
long folderId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deleteRepositoryFileEntries(long repositoryId,
long folderId,
boolean includeTrashedEntries)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry fetchFileEntry(long groupId, long folderId, java.lang.String title) throws SystemException
SystemExceptionpublic static DLFileEntry fetchFileEntryByAnyImageId(long imageId) throws SystemException
SystemExceptionpublic static DLFileEntry fetchFileEntryByName(long groupId, long folderId, java.lang.String name) throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getDDMStructureFileEntries(long groupId, long[] ddmStructureIds) throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getDDMStructureFileEntries(long[] ddmStructureIds) throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getExtraSettingsFileEntries(int start, int end) throws SystemException
SystemExceptionpublic static int getExtraSettingsFileEntriesCount()
throws SystemException
SystemExceptionpublic static java.io.File getFile(long userId,
long fileEntryId,
java.lang.String version,
boolean incrementCounter)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.io.File getFile(long userId,
long fileEntryId,
java.lang.String version,
boolean incrementCounter,
int increment)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.io.InputStream getFileAsStream(long userId,
long fileEntryId,
java.lang.String version)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.io.InputStream getFileAsStream(long userId,
long fileEntryId,
java.lang.String version,
boolean incrementCounter)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.io.InputStream getFileAsStream(long userId,
long fileEntryId,
java.lang.String version,
boolean incrementCounter,
int increment)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static java.util.List<DLFileEntry> getFileEntries(int start, int end) throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getFileEntries(long groupId, long folderId) throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getFileEntries(long groupId, long folderId, int status, int start, int end, OrderByComparator obc) throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end, OrderByComparator obc) throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getFileEntries(long groupId, long userId, java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes, QueryDefinition queryDefinition) throws java.lang.Exception
java.lang.Exceptionpublic static java.util.List<DLFileEntry> getFileEntries(long groupId, long userId, java.util.List<java.lang.Long> repositoryIds, java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes, QueryDefinition queryDefinition) throws java.lang.Exception
java.lang.Exceptionpublic static java.util.List<DLFileEntry> getFileEntries(long folderId, java.lang.String name) throws SystemException
SystemExceptionpublic static int getFileEntriesCount()
throws SystemException
SystemExceptionpublic static int getFileEntriesCount(long groupId,
DateRange dateRange,
long repositoryId,
QueryDefinition queryDefinition)
throws SystemException
SystemExceptionpublic static int getFileEntriesCount(long groupId,
long folderId)
throws SystemException
SystemExceptionpublic static int getFileEntriesCount(long groupId,
long folderId,
int status)
throws SystemException
SystemExceptionpublic static int getFileEntriesCount(long groupId,
long userId,
java.util.List<java.lang.Long> folderIds,
java.lang.String[] mimeTypes,
QueryDefinition queryDefinition)
throws java.lang.Exception
java.lang.Exceptionpublic static int getFileEntriesCount(long groupId,
long userId,
java.util.List<java.lang.Long> repositoryIds,
java.util.List<java.lang.Long> folderIds,
java.lang.String[] mimeTypes,
QueryDefinition queryDefinition)
throws java.lang.Exception
java.lang.Exceptionpublic static DLFileEntry getFileEntry(long fileEntryId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry getFileEntry(long groupId, long folderId, java.lang.String title) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry getFileEntryByName(long groupId, long folderId, java.lang.String name) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry getFileEntryByUuidAndGroupId(java.lang.String uuid, long groupId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static java.util.List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end) throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end, OrderByComparator obc) throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end) throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end, OrderByComparator obc) throws SystemException
SystemExceptionpublic static int getGroupFileEntriesCount(long groupId)
throws SystemException
SystemExceptionpublic static int getGroupFileEntriesCount(long groupId,
long userId)
throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getMisversionedFileEntries() throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getNoAssetFileEntries() throws SystemException
SystemExceptionpublic static java.util.List<DLFileEntry> getOrphanedFileEntries() throws SystemException
SystemExceptionpublic static boolean hasExtraSettings()
throws SystemException
SystemExceptionpublic static boolean hasFileEntryLock(long userId,
long fileEntryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void incrementViewCounter(DLFileEntry dlFileEntry, int increment) throws SystemException
SystemExceptionpublic static boolean isFileEntryCheckedOut(long fileEntryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static Lock lockFileEntry(long userId, long fileEntryId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void rebuildTree(long companyId)
throws SystemException
SystemExceptionpublic static void revertFileEntry(long userId,
long fileEntryId,
java.lang.String version,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static Hits search(long groupId, long userId, long creatorUserId, int status, int start, int end) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static Hits search(long groupId, long userId, long creatorUserId, long folderId, java.lang.String[] mimeTypes, int status, int start, int end) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void unlockFileEntry(long fileEntryId)
throws SystemException
SystemExceptionpublic static DLFileEntry updateFileEntry(long userId, long fileEntryId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, boolean majorVersion, long fileEntryTypeId, java.util.Map<java.lang.String,Fields> fieldsMap, java.io.File file, java.io.InputStream is, long size, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void updateSmallImage(long smallImageId,
long largeImageId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static DLFileEntry updateStatus(long userId, long fileVersionId, int status, java.util.Map<java.lang.String,java.io.Serializable> workflowContext, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static boolean verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static boolean verifyFileEntryLock(long fileEntryId,
java.lang.String lockUuid)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void validateFile(long groupId,
long folderId,
long fileEntryId,
java.lang.String title,
java.lang.String extension)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static DLFileEntryLocalService getService()
public void setService(DLFileEntryLocalService service)