public class DLFileEntryLocalServiceImpl extends DLFileEntryLocalServiceBaseImpl
Due to legacy code, the names of some file entry properties are not
intuitive. Each file entry has both a name and title. The name
is a unique identifier for a given file and is generally numeric, whereas the
title
is the actual name specified by the user (such as
"Budget.xls").
Modifier and Type | Field and Description |
---|---|
protected com.liferay.document.library.kernel.util.DLFileVersionPolicy |
dlFileVersionPolicy |
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, classNameLocalService, classNamePersistence, counterLocalService, dlAppHelperLocalService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryMetadataFinder, dlFileEntryMetadataLocalService, dlFileEntryMetadataPersistence, dlFileEntryPersistence, dlFileEntryTypeFinder, dlFileEntryTypeLocalService, dlFileEntryTypePersistence, dlFileVersionLocalService, dlFileVersionPersistence, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, expandoRowLocalService, expandoRowPersistence, expandoTableLocalService, expandoTablePersistence, groupFinder, groupLocalService, groupPersistence, imageLocalService, imagePersistence, persistedModelLocalServiceRegistry, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, repositoryLocalService, repositoryPersistence, resourceLocalService, trashEntryLocalService, trashEntryPersistence, userFinder, userLocalService, userPersistence, webDAVPropsLocalService, webDAVPropsPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
Constructor and Description |
---|
DLFileEntryLocalServiceImpl() |
Modifier and Type | Method and Description |
---|---|
com.liferay.document.library.kernel.model.DLFileEntry |
addFileEntry(long userId,
long groupId,
long repositoryId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
long fileEntryTypeId,
Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
File file,
InputStream is,
long size,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected void |
addFileEntryResources(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected com.liferay.document.library.kernel.model.DLFileVersion |
addFileVersion(com.liferay.portal.kernel.model.User user,
com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
String fileName,
String extension,
String mimeType,
String title,
String description,
String changeLog,
String extraSettings,
long fileEntryTypeId,
Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
String version,
long size,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.document.library.kernel.model.DLFileVersion |
cancelCheckOut(long userId,
long fileEntryId) |
void |
checkInFileEntry(long userId,
long fileEntryId,
boolean majorVersion,
String changeLog,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
checkInFileEntry(long userId,
long fileEntryId,
String lockUuid,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.document.library.kernel.model.DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.document.library.kernel.model.DLFileEntry |
checkOutFileEntry(long userId,
long fileEntryId,
String owner,
long expirationTime,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected void |
convertExtraSettings(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion,
String[] keys) |
protected void |
convertExtraSettings(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
String[] keys) |
void |
convertExtraSettings(String[] keys) |
protected void |
convertExtraSettings(com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties,
com.liferay.expando.kernel.model.ExpandoBridge expandoBridge,
String[] keys) |
protected void |
copyExpandoRowModifiedDate(long companyId,
long sourceFileVersionId,
long destinationFileVersionId) |
com.liferay.document.library.kernel.model.DLFileEntry |
copyFileEntry(long userId,
long groupId,
long repositoryId,
long fileEntryId,
long destFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
copyFileEntryMetadata(long companyId,
long fileEntryTypeId,
long fileEntryId,
long fromFileVersionId,
long toFileVersionId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected void |
copyFileEntryMetadata(long companyId,
long fileEntryId,
long fromFileVersionId,
long toFileVersionId,
com.liferay.portal.kernel.service.ServiceContext serviceContext,
Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
List<com.liferay.dynamic.data.mapping.kernel.DDMStructure> ddmStructures) |
void |
deleteFileEntries(long groupId,
long folderId) |
void |
deleteFileEntries(long groupId,
long folderId,
boolean includeTrashedEntries) |
com.liferay.document.library.kernel.model.DLFileEntry |
deleteFileEntry(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) |
com.liferay.document.library.kernel.model.DLFileEntry |
deleteFileEntry(long fileEntryId) |
com.liferay.document.library.kernel.model.DLFileEntry |
deleteFileEntry(long userId,
long fileEntryId) |
com.liferay.document.library.kernel.model.DLFileEntry |
deleteFileVersion(long userId,
long fileEntryId,
String version) |
void |
deleteRepositoryFileEntries(long repositoryId,
long folderId) |
void |
deleteRepositoryFileEntries(long repositoryId,
long folderId,
boolean includeTrashedEntries) |
com.liferay.document.library.kernel.model.DLFileEntry |
fetchFileEntry(long groupId,
long folderId,
String title) |
com.liferay.document.library.kernel.model.DLFileEntry |
fetchFileEntry(String uuid,
long groupId) |
com.liferay.document.library.kernel.model.DLFileEntry |
fetchFileEntryByAnyImageId(long imageId) |
com.liferay.document.library.kernel.model.DLFileEntry |
fetchFileEntryByFileName(long groupId,
long folderId,
String fileName) |
com.liferay.document.library.kernel.model.DLFileEntry |
fetchFileEntryByName(long groupId,
long folderId,
String name) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getDDMStructureFileEntries(long[] ddmStructureIds) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getDDMStructureFileEntries(long groupId,
long[] ddmStructureIds) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getExtraSettingsFileEntries(int start,
int end) |
int |
getExtraSettingsFileEntriesCount() |
File |
getFile(long userId,
long fileEntryId,
String version,
boolean incrementCounter)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getFile(long,
String, boolean) |
File |
getFile(long userId,
long fileEntryId,
String version,
boolean incrementCounter,
int increment)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getFile(long,
String, boolean, int) |
File |
getFile(long fileEntryId,
String version,
boolean incrementCounter) |
File |
getFile(long fileEntryId,
String version,
boolean incrementCounter,
int increment) |
InputStream |
getFileAsStream(long userId,
long fileEntryId,
String version)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getFileAsStream(long, String) |
InputStream |
getFileAsStream(long userId,
long fileEntryId,
String version,
boolean incrementCounter)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getFileAsStream(long, String, boolean) |
InputStream |
getFileAsStream(long userId,
long fileEntryId,
String version,
boolean incrementCounter,
int increment)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getFileAsStream(long, String, boolean, int) |
InputStream |
getFileAsStream(long fileEntryId,
String version) |
InputStream |
getFileAsStream(long fileEntryId,
String version,
boolean incrementCounter) |
InputStream |
getFileAsStream(long fileEntryId,
String version,
boolean incrementCounter,
int increment) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getFileEntries(int start,
int end) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getFileEntries(long groupId,
long folderId) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getFileEntries(long groupId,
long folderId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getFileEntries(long groupId,
long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getFileEntries(long groupId,
long userId,
List<Long> repositoryIds,
List<Long> folderIds,
String[] mimeTypes,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getFileEntries(long groupId,
long userId,
List<Long> folderIds,
String[] mimeTypes,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getFileEntries(long folderId,
String name) |
int |
getFileEntriesCount() |
int |
getFileEntriesCount(long groupId,
com.liferay.portal.kernel.util.DateRange dateRange,
long repositoryId,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition)
Deprecated.
As of Wilberforce (7.0.x), with no direct replacement
|
int |
getFileEntriesCount(long groupId,
long folderId) |
int |
getFileEntriesCount(long groupId,
long folderId,
int status) |
int |
getFileEntriesCount(long groupId,
long userId,
List<Long> repositoryIds,
List<Long> folderIds,
String[] mimeTypes,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition) |
int |
getFileEntriesCount(long groupId,
long userId,
List<Long> folderIds,
String[] mimeTypes,
com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition) |
com.liferay.document.library.kernel.model.DLFileEntry |
getFileEntry(long fileEntryId) |
com.liferay.document.library.kernel.model.DLFileEntry |
getFileEntry(long groupId,
long folderId,
String title) |
com.liferay.document.library.kernel.model.DLFileEntry |
getFileEntryByName(long groupId,
long folderId,
String name) |
com.liferay.document.library.kernel.model.DLFileEntry |
getFileEntryByUuidAndGroupId(String uuid,
long groupId) |
protected com.liferay.portal.kernel.repository.event.RepositoryEventTrigger |
getFolderRepositoryEventTrigger(long groupId,
long folderId) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getGroupFileEntries(long groupId,
int start,
int end) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getGroupFileEntries(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
int start,
int end) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
long rootFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
long repositoryId,
long rootFolderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) |
int |
getGroupFileEntriesCount(long groupId) |
int |
getGroupFileEntriesCount(long groupId,
long userId) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getMisversionedFileEntries() |
protected String |
getNextVersion(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
boolean majorVersion,
int workflowAction) |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getNoAssetFileEntries() |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getOrphanedFileEntries() |
List<com.liferay.document.library.kernel.model.DLFileEntry> |
getRepositoryFileEntries(long repositoryId,
int start,
int end) |
int |
getRepositoryFileEntriesCount(long repositoryId) |
String |
getUniqueTitle(long groupId,
long folderId,
long fileEntryId,
String title,
String extension) |
protected long |
getValidFileEntryTypeId(long fileEntryTypeId,
com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) |
boolean |
hasExtraSettings() |
boolean |
hasFileEntryLock(long userId,
long fileEntryId) |
void |
incrementViewCounter(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
int increment) |
boolean |
isFileEntryCheckedOut(long fileEntryId) |
boolean |
isKeepFileVersionLabel(long fileEntryId,
boolean majorVersion,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
boolean |
isKeepFileVersionLabel(long fileEntryId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Wilberforce (7.0.x), replaced by
isKeepFileVersionLabel(long, boolean, ServiceContext) |
com.liferay.portal.kernel.lock.Lock |
lockFileEntry(long userId,
long fileEntryId) |
com.liferay.document.library.kernel.model.DLFileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected com.liferay.document.library.kernel.model.DLFileEntry |
moveFileEntryImpl(long userId,
long fileEntryId,
long newFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
rebuildTree(long companyId) |
protected void |
reindex(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) |
protected void |
removeFileVersion(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion) |
void |
revertFileEntry(long userId,
long fileEntryId,
String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.search.Hits |
search(long groupId,
long userId,
long creatorUserId,
int status,
int start,
int end) |
com.liferay.portal.kernel.search.Hits |
search(long groupId,
long userId,
long creatorUserId,
long folderId,
String[] mimeTypes,
int status,
int start,
int end) |
void |
setTreePaths(long folderId,
String treePath,
boolean reindex) |
void |
unlockFileEntry(long fileEntryId) |
com.liferay.document.library.kernel.model.DLFileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
long fileEntryTypeId,
Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
File file,
InputStream is,
long size,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected com.liferay.document.library.kernel.model.DLFileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String extension,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
String extraSettings,
long fileEntryTypeId,
Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
File file,
InputStream is,
long size,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.document.library.kernel.model.DLFileEntry |
updateFileEntryType(long userId,
long fileEntryId,
long fileEntryTypeId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected com.liferay.document.library.kernel.model.DLFileVersion |
updateFileVersion(com.liferay.portal.kernel.model.User user,
com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion,
String sourceFileName,
String fileName,
String extension,
String mimeType,
String title,
String description,
String changeLog,
String extraSettings,
long fileEntryTypeId,
Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
String version,
long size,
int status,
Date statusDate,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
updateSmallImage(long smallImageId,
long largeImageId) |
com.liferay.document.library.kernel.model.DLFileEntry |
updateStatus(long userId,
long fileVersionId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext,
Map<String,Serializable> workflowContext) |
void |
validateFile(long groupId,
long folderId,
long fileEntryId,
String fileName,
String title) |
protected void |
validateFile(long groupId,
long folderId,
long fileEntryId,
String sourceFileName,
String fileName,
String extension,
String title) |
protected void |
validateFileEntryTypeId(long[] groupIds,
long folderId,
long fileEntryTypeId) |
protected void |
validateFileExtension(String extension) |
boolean |
verifyFileEntryCheckOut(long fileEntryId,
String lockUuid) |
boolean |
verifyFileEntryLock(long fileEntryId,
String lockUuid) |
addDLFileEntry, afterPropertiesSet, createDLFileEntry, deleteDLFileEntry, deleteDLFileEntry, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchDLFileEntry, fetchDLFileEntryByUuidAndGroupId, getActionableDynamicQuery, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getClassNameLocalService, getClassNamePersistence, getCounterLocalService, getDLAppHelperLocalService, getDLFileEntries, getDLFileEntriesByUuidAndCompanyId, getDLFileEntriesByUuidAndCompanyId, getDLFileEntriesCount, getDLFileEntry, getDLFileEntryByUuidAndGroupId, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryMetadataFinder, getDLFileEntryMetadataLocalService, getDLFileEntryMetadataPersistence, getDLFileEntryPersistence, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getExpandoRowLocalService, getExpandoRowPersistence, getExpandoTableLocalService, getExpandoTablePersistence, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getImageLocalService, getImagePersistence, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getRepositoryLocalService, getRepositoryPersistence, getResourceLocalService, getTrashEntryLocalService, getTrashEntryPersistence, getUserFinder, getUserLocalService, getUserPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, initActionableDynamicQuery, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setClassNameLocalService, setClassNamePersistence, setCounterLocalService, setDLAppHelperLocalService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryMetadataFinder, setDLFileEntryMetadataLocalService, setDLFileEntryMetadataPersistence, setDLFileEntryPersistence, setDLFileEntryTypeFinder, setDLFileEntryTypeLocalService, setDLFileEntryTypePersistence, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setExpandoRowLocalService, setExpandoRowPersistence, setExpandoTableLocalService, setExpandoTablePersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setImageLocalService, setImagePersistence, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setRepositoryLocalService, setRepositoryPersistence, setResourceLocalService, setTrashEntryLocalService, setTrashEntryPersistence, setUserFinder, setUserLocalService, setUserPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateDLFileEntry
@BeanReference(type=com.liferay.document.library.kernel.util.DLFileVersionPolicy.class) protected com.liferay.document.library.kernel.util.DLFileVersionPolicy dlFileVersionPolicy
public com.liferay.document.library.kernel.model.DLFileEntry addFileEntry(long userId, long groupId, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, File file, InputStream is, long size, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.document.library.kernel.model.DLFileVersion cancelCheckOut(long userId, long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void checkInFileEntry(long userId, long fileEntryId, boolean majorVersion, String changeLog, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void checkInFileEntry(long userId, long fileEntryId, String lockUuid, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(long userId, long fileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(long userId, long fileEntryId, String owner, long expirationTime, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void convertExtraSettings(String[] keys) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.document.library.kernel.model.DLFileEntry copyFileEntry(long userId, long groupId, long repositoryId, long fileEntryId, long destFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void copyFileEntryMetadata(long companyId, long fileEntryTypeId, long fileEntryId, long fromFileVersionId, long toFileVersionId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deleteFileEntries(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deleteFileEntries(long groupId, long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) @SystemEvent(action=1, type=1) public com.liferay.document.library.kernel.model.DLFileEntry deleteFileEntry(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) public com.liferay.document.library.kernel.model.DLFileEntry deleteFileEntry(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) public com.liferay.document.library.kernel.model.DLFileEntry deleteFileEntry(long userId, long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) public com.liferay.document.library.kernel.model.DLFileEntry deleteFileVersion(long userId, long fileEntryId, String version) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deleteRepositoryFileEntries(long repositoryId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deleteRepositoryFileEntries(long repositoryId, long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntry(long groupId, long folderId, String title)
public com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntry(String uuid, long groupId)
public com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByAnyImageId(long imageId)
public com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByFileName(long groupId, long folderId, String fileName)
public com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByName(long groupId, long folderId, String name)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getDDMStructureFileEntries(long groupId, long[] ddmStructureIds)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getDDMStructureFileEntries(long[] ddmStructureIds)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getExtraSettingsFileEntries(int start, int end)
public int getExtraSettingsFileEntriesCount()
@Deprecated public File getFile(long userId, long fileEntryId, String version, boolean incrementCounter) throws com.liferay.portal.kernel.exception.PortalException
getFile(long,
String, boolean)
com.liferay.portal.kernel.exception.PortalException
@Deprecated public File getFile(long userId, long fileEntryId, String version, boolean incrementCounter, int increment) throws com.liferay.portal.kernel.exception.PortalException
getFile(long,
String, boolean, int)
com.liferay.portal.kernel.exception.PortalException
public File getFile(long fileEntryId, String version, boolean incrementCounter) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public File getFile(long fileEntryId, String version, boolean incrementCounter, int increment) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public InputStream getFileAsStream(long userId, long fileEntryId, String version) throws com.liferay.portal.kernel.exception.PortalException
getFileAsStream(long, String)
com.liferay.portal.kernel.exception.PortalException
@Deprecated public InputStream getFileAsStream(long userId, long fileEntryId, String version, boolean incrementCounter) throws com.liferay.portal.kernel.exception.PortalException
getFileAsStream(long, String, boolean)
com.liferay.portal.kernel.exception.PortalException
@Deprecated public InputStream getFileAsStream(long userId, long fileEntryId, String version, boolean incrementCounter, int increment) throws com.liferay.portal.kernel.exception.PortalException
getFileAsStream(long, String, boolean, int)
com.liferay.portal.kernel.exception.PortalException
public InputStream getFileAsStream(long fileEntryId, String version) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public InputStream getFileAsStream(long fileEntryId, String version, boolean incrementCounter) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public InputStream getFileAsStream(long fileEntryId, String version, boolean incrementCounter, int increment) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(int start, int end)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId, long folderId)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId, long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId, long userId, List<Long> repositoryIds, List<Long> folderIds, String[] mimeTypes, com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition) throws Exception
Exception
public List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId, long userId, List<Long> folderIds, String[] mimeTypes, com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition) throws Exception
Exception
public List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long folderId, String name)
public int getFileEntriesCount()
@Deprecated public int getFileEntriesCount(long groupId, com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId, com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition)
public int getFileEntriesCount(long groupId, long folderId)
public int getFileEntriesCount(long groupId, long folderId, int status)
public int getFileEntriesCount(long groupId, long userId, List<Long> repositoryIds, List<Long> folderIds, String[] mimeTypes, com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition) throws Exception
Exception
public int getFileEntriesCount(long groupId, long userId, List<Long> folderIds, String[] mimeTypes, com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition) throws Exception
Exception
public com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(long groupId, long folderId, String title) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.document.library.kernel.model.DLFileEntry getFileEntryByName(long groupId, long folderId, String name) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.document.library.kernel.model.DLFileEntry getFileEntryByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId, int start, int end)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId, long userId, long rootFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId, long userId, long repositoryId, long rootFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
public int getGroupFileEntriesCount(long groupId)
public int getGroupFileEntriesCount(long groupId, long userId)
public List<com.liferay.document.library.kernel.model.DLFileEntry> getMisversionedFileEntries()
public List<com.liferay.document.library.kernel.model.DLFileEntry> getNoAssetFileEntries()
public List<com.liferay.document.library.kernel.model.DLFileEntry> getOrphanedFileEntries()
public List<com.liferay.document.library.kernel.model.DLFileEntry> getRepositoryFileEntries(long repositoryId, int start, int end)
public int getRepositoryFileEntriesCount(long repositoryId)
public String getUniqueTitle(long groupId, long folderId, long fileEntryId, String title, String extension) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean hasExtraSettings()
public boolean hasFileEntryLock(long userId, long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@BufferedIncrement(configuration="DLFileEntry", incrementClass=com.liferay.portal.kernel.increment.NumberIncrement.class) public void incrementViewCounter(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry, int increment)
public boolean isFileEntryCheckedOut(long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean isKeepFileVersionLabel(long fileEntryId, boolean majorVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public boolean isKeepFileVersionLabel(long fileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
isKeepFileVersionLabel(long, boolean, ServiceContext)
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.lock.Lock lockFileEntry(long userId, long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=REINDEX) public com.liferay.document.library.kernel.model.DLFileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void rebuildTree(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void revertFileEntry(long userId, long fileEntryId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.search.Hits search(long groupId, long userId, long creatorUserId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.search.Hits search(long groupId, long userId, long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void setTreePaths(long folderId, String treePath, boolean reindex) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void unlockFileEntry(long fileEntryId)
public com.liferay.document.library.kernel.model.DLFileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, File file, InputStream is, long size, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.document.library.kernel.model.DLFileEntry updateFileEntryType(long userId, long fileEntryId, long fileEntryTypeId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void updateSmallImage(long smallImageId, long largeImageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.document.library.kernel.model.DLFileEntry updateStatus(long userId, long fileVersionId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String,Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void validateFile(long groupId, long folderId, long fileEntryId, String fileName, String title) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean verifyFileEntryCheckOut(long fileEntryId, String lockUuid) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean verifyFileEntryLock(long fileEntryId, String lockUuid) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void addFileEntryResources(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.document.library.kernel.model.DLFileVersion addFileVersion(com.liferay.portal.kernel.model.User user, com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry, String fileName, String extension, String mimeType, String title, String description, String changeLog, String extraSettings, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, String version, long size, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void convertExtraSettings(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry, com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion, String[] keys) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void convertExtraSettings(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry, String[] keys) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void convertExtraSettings(com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties, com.liferay.expando.kernel.model.ExpandoBridge expandoBridge, String[] keys)
protected void copyExpandoRowModifiedDate(long companyId, long sourceFileVersionId, long destinationFileVersionId)
protected void copyFileEntryMetadata(long companyId, long fileEntryId, long fromFileVersionId, long toFileVersionId, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, List<com.liferay.dynamic.data.mapping.kernel.DDMStructure> ddmStructures) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.portal.kernel.repository.event.RepositoryEventTrigger getFolderRepositoryEventTrigger(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected String getNextVersion(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry, boolean majorVersion, int workflowAction)
protected long getValidFileEntryTypeId(long fileEntryTypeId, com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.document.library.kernel.model.DLFileEntry moveFileEntryImpl(long userId, long fileEntryId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void reindex(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) throws com.liferay.portal.kernel.search.SearchException
com.liferay.portal.kernel.search.SearchException
protected void removeFileVersion(com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry, com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.document.library.kernel.model.DLFileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String extension, String mimeType, String title, String description, String changeLog, boolean majorVersion, String extraSettings, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, File file, InputStream is, long size, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.document.library.kernel.model.DLFileVersion updateFileVersion(com.liferay.portal.kernel.model.User user, com.liferay.document.library.kernel.model.DLFileVersion dlFileVersion, String sourceFileName, String fileName, String extension, String mimeType, String title, String description, String changeLog, String extraSettings, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, String version, long size, int status, Date statusDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void validateFile(long groupId, long folderId, long fileEntryId, String sourceFileName, String fileName, String extension, String title) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void validateFileEntryTypeId(long[] groupIds, long folderId, long fileEntryTypeId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected void validateFileExtension(String extension) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException