public class DLFileEntryLocalServiceUtil
extends Object
com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl
and
is an 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
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,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
long fileEntryTypeId,
Map<String,DDMFormValues> ddmFormValuesMap,
File file,
InputStream inputStream,
long size,
ServiceContext serviceContext) |
static DLFileVersion |
cancelCheckOut(long userId,
long fileEntryId) |
static void |
checkInFileEntry(long userId,
long fileEntryId,
DLVersionNumberIncrease dlVersionNumberIncrease,
String changeLog,
ServiceContext serviceContext) |
static void |
checkInFileEntry(long userId,
long fileEntryId,
String lockUuid,
ServiceContext serviceContext) |
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
long fileEntryTypeId,
ServiceContext serviceContext) |
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
long fileEntryTypeId,
String owner,
long expirationTime,
ServiceContext serviceContext) |
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
ServiceContext serviceContext) |
static DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
String owner,
long expirationTime,
ServiceContext serviceContext) |
static void |
convertExtraSettings(String[] keys) |
static DLFileEntry |
copyFileEntry(long userId,
long groupId,
long repositoryId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext) |
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 PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
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,
String version) |
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static void |
deleteRepositoryFileEntries(long repositoryId) |
static void |
deleteRepositoryFileEntries(long repositoryId,
long folderId) |
static void |
deleteRepositoryFileEntries(long repositoryId,
long folderId,
boolean includeTrashedEntries) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static DynamicQuery |
dynamicQuery() |
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <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.
|
static <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.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
static DLFileEntry |
fetchDLFileEntry(long fileEntryId) |
static DLFileEntry |
fetchDLFileEntryByUuidAndGroupId(String uuid,
long groupId)
Returns the document library file entry matching the UUID and group.
|
static DLFileEntry |
fetchFileEntry(long groupId,
long folderId,
String title) |
static DLFileEntry |
fetchFileEntry(String uuid,
long groupId) |
static DLFileEntry |
fetchFileEntryByAnyImageId(long imageId) |
static DLFileEntry |
fetchFileEntryByFileName(long groupId,
long folderId,
String fileName) |
static DLFileEntry |
fetchFileEntryByName(long groupId,
long folderId,
String name) |
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static List<DLFileEntry> |
getDDMStructureFileEntries(long[] ddmStructureIds) |
static List<DLFileEntry> |
getDDMStructureFileEntries(long groupId,
long[] ddmStructureIds) |
static List<DLFileEntry> |
getDLFileEntries(int start,
int end)
Returns a range of all the document library file entries.
|
static List<DLFileEntry> |
getDLFileEntriesByUuidAndCompanyId(String uuid,
long companyId)
Returns all the document library file entries matching the UUID and company.
|
static List<DLFileEntry> |
getDLFileEntriesByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<DLFileEntry> orderByComparator)
Returns a range of document library file entries matching the UUID and company.
|
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 |
getDLFileEntryByUuidAndGroupId(String uuid,
long groupId)
Returns the document library file entry matching the UUID and group.
|
static ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
static List<DLFileEntry> |
getExtraSettingsFileEntries(int start,
int end) |
static int |
getExtraSettingsFileEntriesCount() |
static InputStream |
getFileAsStream(long fileEntryId,
String version) |
static InputStream |
getFileAsStream(long fileEntryId,
String version,
boolean incrementCounter) |
static InputStream |
getFileAsStream(long fileEntryId,
String version,
boolean incrementCounter,
int increment) |
static List<DLFileEntry> |
getFileEntries(int start,
int end) |
static List<DLFileEntry> |
getFileEntries(long groupId,
long folderId) |
static List<DLFileEntry> |
getFileEntries(long groupId,
long folderId,
int status,
int start,
int end,
OrderByComparator<DLFileEntry> orderByComparator) |
static List<DLFileEntry> |
getFileEntries(long groupId,
long folderId,
int start,
int end,
OrderByComparator<DLFileEntry> orderByComparator) |
static List<DLFileEntry> |
getFileEntries(long groupId,
long userId,
List<Long> repositoryIds,
List<Long> folderIds,
String[] mimeTypes,
QueryDefinition<DLFileEntry> queryDefinition) |
static List<DLFileEntry> |
getFileEntries(long groupId,
long userId,
List<Long> folderIds,
String[] mimeTypes,
QueryDefinition<DLFileEntry> queryDefinition) |
static List<DLFileEntry> |
getFileEntries(long folderId,
String name) |
static int |
getFileEntriesCount() |
static int |
getFileEntriesCount(long groupId,
long folderId) |
static int |
getFileEntriesCount(long groupId,
long folderId,
int status) |
static int |
getFileEntriesCount(long groupId,
long userId,
List<Long> repositoryIds,
List<Long> folderIds,
String[] mimeTypes,
QueryDefinition<DLFileEntry> queryDefinition) |
static int |
getFileEntriesCount(long groupId,
long userId,
List<Long> folderIds,
String[] mimeTypes,
QueryDefinition<DLFileEntry> queryDefinition) |
static DLFileEntry |
getFileEntry(long fileEntryId) |
static DLFileEntry |
getFileEntry(long groupId,
long folderId,
String title) |
static DLFileEntry |
getFileEntryByName(long groupId,
long folderId,
String name) |
static DLFileEntry |
getFileEntryByUuidAndGroupId(String uuid,
long groupId) |
static List<DLFileEntry> |
getGroupFileEntries(long groupId,
int start,
int end) |
static List<DLFileEntry> |
getGroupFileEntries(long groupId,
int start,
int end,
OrderByComparator<DLFileEntry> orderByComparator) |
static List<DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
int start,
int end) |
static List<DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
int start,
int end,
OrderByComparator<DLFileEntry> orderByComparator) |
static List<DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
long rootFolderId,
int start,
int end,
OrderByComparator<DLFileEntry> orderByComparator) |
static List<DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
long repositoryId,
long rootFolderId,
int start,
int end,
OrderByComparator<DLFileEntry> orderByComparator) |
static int |
getGroupFileEntriesCount(long groupId) |
static int |
getGroupFileEntriesCount(long groupId,
long userId) |
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static List<DLFileEntry> |
getNoAssetFileEntries() |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
static List<DLFileEntry> |
getRepositoryFileEntries(long repositoryId,
int start,
int end) |
static int |
getRepositoryFileEntriesCount(long repositoryId) |
static DLFileEntryLocalService |
getService() |
static String |
getUniqueTitle(long groupId,
long folderId,
long fileEntryId,
String title,
String extension) |
static boolean |
hasExtraSettings() |
static boolean |
hasFileEntryLock(long userId,
long fileEntryId) |
static boolean |
hasFileEntryLock(long userId,
long fileEntryId,
long folderId) |
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,
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,
String[] mimeTypes,
int status,
int start,
int end) |
static void |
setTreePaths(long folderId,
String treePath,
boolean reindex) |
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,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
DLVersionNumberIncrease dlVersionNumberIncrease,
long fileEntryTypeId,
Map<String,DDMFormValues> ddmFormValuesMap,
File file,
InputStream inputStream,
long size,
ServiceContext serviceContext) |
static DLFileEntry |
updateFileEntryType(long userId,
long fileEntryId,
long fileEntryTypeId,
ServiceContext serviceContext) |
static void |
updateSmallImage(long smallImageId,
long largeImageId) |
static DLFileEntry |
updateStatus(long userId,
DLFileEntry dlFileEntry,
DLFileVersion dlFileVersion,
int status,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext) |
static DLFileEntry |
updateStatus(long userId,
long fileVersionId,
int status,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext) |
static void |
validateFile(long groupId,
long folderId,
long fileEntryId,
String fileName,
String title) |
static boolean |
verifyFileEntryCheckOut(long fileEntryId,
String lockUuid) |
static boolean |
verifyFileEntryLock(long fileEntryId,
String lockUuid) |
public static DLFileEntry addDLFileEntry(DLFileEntry dlFileEntry)
Important: Inspect DLFileEntryLocalServiceImpl 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.
dlFileEntry
- the document library file entrypublic static DLFileEntry addFileEntry(long userId, long groupId, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, long fileEntryTypeId, Map<String,DDMFormValues> ddmFormValuesMap, File file, InputStream inputStream, long size, ServiceContext serviceContext) throws PortalException
PortalException
public static DLFileVersion cancelCheckOut(long userId, long fileEntryId) throws PortalException
PortalException
public static void checkInFileEntry(long userId, long fileEntryId, DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, ServiceContext serviceContext) throws PortalException
PortalException
public static void checkInFileEntry(long userId, long fileEntryId, String lockUuid, ServiceContext serviceContext) throws PortalException
PortalException
public static DLFileEntry checkOutFileEntry(long userId, long fileEntryId, long fileEntryTypeId, ServiceContext serviceContext) throws PortalException
PortalException
public static DLFileEntry checkOutFileEntry(long userId, long fileEntryId, long fileEntryTypeId, String owner, long expirationTime, ServiceContext serviceContext) throws PortalException
PortalException
public static DLFileEntry checkOutFileEntry(long userId, long fileEntryId, ServiceContext serviceContext) throws PortalException
PortalException
public static DLFileEntry checkOutFileEntry(long userId, long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext) throws PortalException
PortalException
public static void convertExtraSettings(String[] keys) throws PortalException
PortalException
public static DLFileEntry copyFileEntry(long userId, long groupId, long repositoryId, long fileEntryId, long destFolderId, ServiceContext serviceContext) throws PortalException
PortalException
public static void copyFileEntryMetadata(long companyId, long fileEntryTypeId, long fileEntryId, long fromFileVersionId, long toFileVersionId, ServiceContext serviceContext) throws PortalException
PortalException
public static DLFileEntry createDLFileEntry(long fileEntryId)
fileEntryId
- the primary key for the new document library file entrypublic static PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static DLFileEntry deleteDLFileEntry(DLFileEntry dlFileEntry)
Important: Inspect DLFileEntryLocalServiceImpl 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.
dlFileEntry
- the document library file entrypublic static DLFileEntry deleteDLFileEntry(long fileEntryId) throws PortalException
Important: Inspect DLFileEntryLocalServiceImpl 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.
fileEntryId
- the primary key of the document library file entryPortalException
- if a document library file entry with the primary key could not be foundpublic static void deleteFileEntries(long groupId, long folderId) throws PortalException
PortalException
public static void deleteFileEntries(long groupId, long folderId, boolean includeTrashedEntries) throws PortalException
PortalException
public static DLFileEntry deleteFileEntry(DLFileEntry dlFileEntry) throws PortalException
PortalException
public static DLFileEntry deleteFileEntry(long fileEntryId) throws PortalException
PortalException
public static DLFileEntry deleteFileEntry(long userId, long fileEntryId) throws PortalException
PortalException
public static DLFileEntry deleteFileVersion(long userId, long fileEntryId, String version) throws PortalException
PortalException
public static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static void deleteRepositoryFileEntries(long repositoryId) throws PortalException
PortalException
public static void deleteRepositoryFileEntries(long repositoryId, long folderId) throws PortalException
PortalException
public static void deleteRepositoryFileEntries(long repositoryId, long folderId, boolean includeTrashedEntries) throws PortalException
PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl
.
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
)public static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static DLFileEntry fetchDLFileEntry(long fileEntryId)
public static DLFileEntry fetchDLFileEntryByUuidAndGroupId(String uuid, long groupId)
uuid
- the document library file entry's UUIDgroupId
- the primary key of the groupnull
if a matching document library file entry could not be foundpublic static DLFileEntry fetchFileEntry(long groupId, long folderId, String title)
public static DLFileEntry fetchFileEntry(String uuid, long groupId)
public static DLFileEntry fetchFileEntryByAnyImageId(long imageId)
public static DLFileEntry fetchFileEntryByFileName(long groupId, long folderId, String fileName)
public static DLFileEntry fetchFileEntryByName(long groupId, long folderId, String name)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static List<DLFileEntry> getDDMStructureFileEntries(long groupId, long[] ddmStructureIds)
public static List<DLFileEntry> getDDMStructureFileEntries(long[] ddmStructureIds)
public static List<DLFileEntry> getDLFileEntries(int start, int end)
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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl
.
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)public static List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid, long companyId)
uuid
- the UUID of the document library file entriescompanyId
- the primary key of the companypublic static List<DLFileEntry> getDLFileEntriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator)
uuid
- the UUID of the document library file entriescompanyId
- the primary key of the companystart
- the lower bound of the range of document library file entriesend
- the upper bound of the range of document library file entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getDLFileEntriesCount()
public static DLFileEntry getDLFileEntry(long fileEntryId) throws PortalException
fileEntryId
- the primary key of the document library file entryPortalException
- if a document library file entry with the primary key could not be foundpublic static DLFileEntry getDLFileEntryByUuidAndGroupId(String uuid, long groupId) throws PortalException
uuid
- the document library file entry's UUIDgroupId
- the primary key of the groupPortalException
- if a matching document library file entry could not be foundpublic static ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
public static List<DLFileEntry> getExtraSettingsFileEntries(int start, int end)
public static int getExtraSettingsFileEntriesCount()
public static InputStream getFileAsStream(long fileEntryId, String version) throws PortalException
PortalException
public static InputStream getFileAsStream(long fileEntryId, String version, boolean incrementCounter) throws PortalException
PortalException
public static InputStream getFileAsStream(long fileEntryId, String version, boolean incrementCounter, int increment) throws PortalException
PortalException
public static List<DLFileEntry> getFileEntries(int start, int end)
public static List<DLFileEntry> getFileEntries(long groupId, long folderId)
public static List<DLFileEntry> getFileEntries(long groupId, long folderId, int status, int start, int end, OrderByComparator<DLFileEntry> orderByComparator)
public static List<DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator)
public static List<DLFileEntry> getFileEntries(long groupId, long userId, List<Long> repositoryIds, List<Long> folderIds, String[] mimeTypes, QueryDefinition<DLFileEntry> queryDefinition)
public static List<DLFileEntry> getFileEntries(long groupId, long userId, List<Long> folderIds, String[] mimeTypes, QueryDefinition<DLFileEntry> queryDefinition)
public static List<DLFileEntry> getFileEntries(long folderId, String name)
public static int getFileEntriesCount()
public static int getFileEntriesCount(long groupId, long folderId)
public static int getFileEntriesCount(long groupId, long folderId, int status)
public static int getFileEntriesCount(long groupId, long userId, List<Long> repositoryIds, List<Long> folderIds, String[] mimeTypes, QueryDefinition<DLFileEntry> queryDefinition)
public static int getFileEntriesCount(long groupId, long userId, List<Long> folderIds, String[] mimeTypes, QueryDefinition<DLFileEntry> queryDefinition)
public static DLFileEntry getFileEntry(long fileEntryId) throws PortalException
PortalException
public static DLFileEntry getFileEntry(long groupId, long folderId, String title) throws PortalException
PortalException
public static DLFileEntry getFileEntryByName(long groupId, long folderId, String name) throws PortalException
PortalException
public static DLFileEntry getFileEntryByUuidAndGroupId(String uuid, long groupId) throws PortalException
PortalException
public static List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end)
public static List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator)
public static List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end)
public static List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator)
public static List<DLFileEntry> getGroupFileEntries(long groupId, long userId, long rootFolderId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator)
public static List<DLFileEntry> getGroupFileEntries(long groupId, long userId, long repositoryId, long rootFolderId, int start, int end, OrderByComparator<DLFileEntry> orderByComparator)
public static int getGroupFileEntriesCount(long groupId)
public static int getGroupFileEntriesCount(long groupId, long userId)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static List<DLFileEntry> getNoAssetFileEntries()
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static List<DLFileEntry> getRepositoryFileEntries(long repositoryId, int start, int end)
public static int getRepositoryFileEntriesCount(long repositoryId)
public static String getUniqueTitle(long groupId, long folderId, long fileEntryId, String title, String extension) throws PortalException
PortalException
public static boolean hasExtraSettings()
public static boolean hasFileEntryLock(long userId, long fileEntryId) throws PortalException
PortalException
public static boolean hasFileEntryLock(long userId, long fileEntryId, long folderId)
public static void incrementViewCounter(DLFileEntry dlFileEntry, int increment)
public static boolean isFileEntryCheckedOut(long fileEntryId)
public static Lock lockFileEntry(long userId, long fileEntryId) throws PortalException
PortalException
public static DLFileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException
PortalException
public static void rebuildTree(long companyId) throws PortalException
PortalException
public static void revertFileEntry(long userId, long fileEntryId, String version, ServiceContext serviceContext) throws PortalException
PortalException
public static Hits search(long groupId, long userId, long creatorUserId, int status, int start, int end) throws PortalException
PortalException
public static Hits search(long groupId, long userId, long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end) throws PortalException
PortalException
public static void setTreePaths(long folderId, String treePath, boolean reindex) throws PortalException
PortalException
public static void unlockFileEntry(long fileEntryId)
public static DLFileEntry updateDLFileEntry(DLFileEntry dlFileEntry)
Important: Inspect DLFileEntryLocalServiceImpl 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.
dlFileEntry
- the document library file entrypublic static DLFileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, long fileEntryTypeId, Map<String,DDMFormValues> ddmFormValuesMap, File file, InputStream inputStream, long size, ServiceContext serviceContext) throws PortalException
PortalException
public static DLFileEntry updateFileEntryType(long userId, long fileEntryId, long fileEntryTypeId, ServiceContext serviceContext) throws PortalException
PortalException
public static void updateSmallImage(long smallImageId, long largeImageId) throws PortalException
PortalException
public static DLFileEntry updateStatus(long userId, DLFileEntry dlFileEntry, DLFileVersion dlFileVersion, int status, ServiceContext serviceContext, Map<String,Serializable> workflowContext) throws PortalException
PortalException
public static DLFileEntry updateStatus(long userId, long fileVersionId, int status, ServiceContext serviceContext, Map<String,Serializable> workflowContext) throws PortalException
PortalException
public static void validateFile(long groupId, long folderId, long fileEntryId, String fileName, String title) throws PortalException
PortalException
public static boolean verifyFileEntryCheckOut(long fileEntryId, String lockUuid) throws PortalException
PortalException
public static boolean verifyFileEntryLock(long fileEntryId, String lockUuid) throws PortalException
PortalException
public static DLFileEntryLocalService getService()