public abstract class BaseRepositoryImpl extends Object implements BaseRepository, CapabilityProvider
| Modifier and Type | Field and Description |
|---|---|
protected AssetEntryLocalService |
assetEntryLocalService |
protected CompanyLocalService |
companyLocalService |
protected DLAppHelperLocalService |
dlAppHelperLocalService |
protected DLFolderLocalService |
dlFolderLocalService |
protected RepositoryEntryLocalService |
repositoryEntryLocalService |
protected UserLocalService |
userLocalService |
| Constructor and Description |
|---|
BaseRepositoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
FileEntry |
addFileEntry(long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext) |
FileEntry |
addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext)
Deprecated.
|
FileEntry |
addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
ServiceContext serviceContext)
|
abstract Folder |
addFolder(long userId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext) |
Folder |
addFolder(long parentFolderId,
String name,
String description,
ServiceContext serviceContext)
Deprecated.
As of 7.0.0, replaced by
addFolder(long, long,
String, String, ServiceContext) |
void |
checkInFileEntry(long fileEntryId,
boolean major,
String changeLog,
ServiceContext serviceContext)
Deprecated.
As of 7.0.0, replaced by
DocumentRepository.checkInFileEntry(long, long,
boolean, String, ServiceContext) |
void |
checkInFileEntry(long fileEntryId,
String lockUuid,
ServiceContext serviceContext)
Deprecated.
As of 7.0.0, replaced by
DocumentRepository.checkInFileEntry(long, long,
String, ServiceContext) |
abstract FileEntry |
checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext) |
abstract FileEntry |
checkOutFileEntry(long fileEntryId,
String owner,
long expirationTime,
ServiceContext serviceContext) |
protected void |
clearManualCheckInRequired(long fileEntryId,
ServiceContext serviceContext) |
FileEntry |
copyFileEntry(long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext)
Deprecated.
As of 7.0.0, replaced by
DocumentRepository.copyFileEntry(long, long,
long, long, ServiceContext) |
void |
deleteAll() |
void |
deleteFileEntry(long folderId,
String title) |
void |
deleteFileVersion(long fileEntryId,
String version) |
void |
deleteFolder(long parentFolderId,
String name) |
<T extends Capability> |
getCapability(Class<T> capabilityClass) |
long |
getCompanyId() |
List<RepositoryEntry> |
getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end) |
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status) |
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes) |
List<Folder> |
getFolders(long parentFolderId,
int status,
boolean includeMountfolders,
int start,
int end,
OrderByComparator<Folder> obc) |
abstract List<Object> |
getFoldersAndFileEntries(long folderId,
int start,
int end,
OrderByComparator<?> obc) |
abstract List<Object> |
getFoldersAndFileEntries(long folderId,
String[] mimeTypes,
int start,
int end,
OrderByComparator<?> obc) |
List<RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> obc) |
List<RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> obc) |
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders) |
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders) |
abstract int |
getFoldersAndFileEntriesCount(long folderId) |
abstract int |
getFoldersAndFileEntriesCount(long folderId,
String[] mimeTypes) |
int |
getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders) |
long |
getGroupId() |
LocalRepository |
getLocalRepository() |
protected RepositoryEntry |
getRepositoryEntry(String objectId) |
Object[] |
getRepositoryEntryIds(String objectId)
Deprecated.
As of 7.0.0, replaced by
getRepositoryEntry(String) |
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator<FileEntry> obc) |
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator<FileEntry> obc) |
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId) |
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId,
String[] mimeTypes,
int status) |
long |
getRepositoryId() |
String[] |
getSupportedConfigurations()
Deprecated.
|
String[][] |
getSupportedParameters()
Deprecated.
|
UnicodeProperties |
getTypeSettingsProperties() |
abstract void |
initRepository() |
<T extends Capability> |
isCapabilityProvided(Class<T> capabilityClass) |
FileEntry |
moveFileEntry(long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
Deprecated.
As of 7.0.0, replaced by
DocumentRepository.moveFileEntry(long, long,
long, ServiceContext) |
Folder |
moveFolder(long folderId,
long newParentFolderId,
ServiceContext serviceContext)
Deprecated.
As of 7.0.0, replaced by
DocumentRepository.moveFolder(long, long, long,
ServiceContext) |
void |
revertFileEntry(long fileEntryId,
String version,
ServiceContext serviceContext)
Deprecated.
As of 7.0.0, replaced by
DocumentRepository.revertFileEntry(long, long,
String, ServiceContext) |
Hits |
search(SearchContext searchContext) |
void |
setAssetEntryLocalService(AssetEntryLocalService assetEntryLocalService) |
void |
setCompanyId(long companyId) |
void |
setCompanyLocalService(CompanyLocalService companyLocalService) |
void |
setDLAppHelperLocalService(DLAppHelperLocalService dlAppHelperLocalService) |
void |
setDLFolderLocalService(DLFolderLocalService dlFolderLocalService) |
void |
setGroupId(long groupId) |
protected void |
setManualCheckInRequired(long fileEntryId,
ServiceContext serviceContext) |
void |
setRepositoryEntryLocalService(RepositoryEntryLocalService repositoryEntryLocalService) |
void |
setRepositoryId(long repositoryId) |
void |
setTypeSettingsProperties(UnicodeProperties typeSettingsProperties) |
void |
setUserLocalService(UserLocalService userLocalService) |
void |
unlockFolder(long parentFolderId,
String name,
String lockUuid) |
FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext) |
FileEntry |
updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
Deprecated.
|
FileEntry |
updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
ServiceContext serviceContext)
Deprecated.
As of 7.0.0, replaced by
updateFileEntry(long, long,
String, String, String, String, String, boolean, File,
ServiceContext) |
Folder |
updateFolder(long folderId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext) |
boolean |
verifyFileEntryLock(long fileEntryId,
String lockUuid) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelCheckOut, getFileEntries, getFileEntries, getFileEntriesCount, getFileEntriesCount, getFoldersFileEntriesCount, getMountFolders, getMountFoldersCount, getSubfolderIds, getSubfolderIds, lockFolder, lockFolder, refreshFileEntryLock, refreshFolderLock, search, search, search, unlockFolder, updateFolder, verifyFileEntryCheckOut, verifyInheritableLockaddFileEntry, addFileShortcut, checkInFileEntry, checkInFileEntry, copyFileEntry, deleteFileEntry, deleteFileShortcut, deleteFileShortcuts, deleteFolder, getFileEntries, getFileEntries, getFileEntriesCount, getFileEntriesCount, getFileEntry, getFileEntry, getFileEntryByUuid, getFileShortcut, getFileVersion, getFolder, getFolder, getFolders, getFoldersCount, moveFileEntry, moveFolder, revertFileEntry, updateFileEntry, updateFileShortcut, updateFileShortcutsprotected AssetEntryLocalService assetEntryLocalService
protected CompanyLocalService companyLocalService
protected DLAppHelperLocalService dlAppHelperLocalService
protected DLFolderLocalService dlFolderLocalService
protected RepositoryEntryLocalService repositoryEntryLocalService
protected UserLocalService userLocalService
public FileEntry addFileEntry(long userId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, File file, ServiceContext serviceContext) throws PortalException
addFileEntry in interface DocumentRepositoryPortalException@Deprecated public FileEntry addFileEntry(long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, File file, ServiceContext serviceContext) throws PortalException
addFileEntry(long, long, String,
String, String, String, String, File, ServiceContext)addFileEntry in interface RepositoryPortalException@Deprecated public FileEntry addFileEntry(long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, InputStream is, long size, ServiceContext serviceContext) throws PortalException
DocumentRepository.addFileEntry(long, long, String,
String, String, String, String, InputStream, long,
ServiceContext)addFileEntry in interface RepositoryPortalExceptionpublic abstract Folder addFolder(long userId, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException
addFolder in interface DocumentRepositoryPortalException@Deprecated public Folder addFolder(long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException
addFolder(long, long,
String, String, ServiceContext)addFolder in interface RepositoryPortalException@Deprecated public void checkInFileEntry(long fileEntryId, boolean major, String changeLog, ServiceContext serviceContext) throws PortalException
DocumentRepository.checkInFileEntry(long, long,
boolean, String, ServiceContext)checkInFileEntry in interface RepositoryPortalException@Deprecated public void checkInFileEntry(long fileEntryId, String lockUuid, ServiceContext serviceContext) throws PortalException
DocumentRepository.checkInFileEntry(long, long,
String, ServiceContext)checkInFileEntry in interface RepositoryPortalExceptionpublic abstract FileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext) throws PortalException
checkOutFileEntry in interface RepositoryPortalExceptionpublic abstract FileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext) throws PortalException
checkOutFileEntry in interface RepositoryPortalException@Deprecated public FileEntry copyFileEntry(long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext) throws PortalException
DocumentRepository.copyFileEntry(long, long,
long, long, ServiceContext)copyFileEntry in interface RepositoryPortalExceptionpublic void deleteAll()
deleteAll in interface DocumentRepositorypublic void deleteFileEntry(long folderId,
String title)
throws PortalException
deleteFileEntry in interface RepositoryPortalExceptionpublic void deleteFileVersion(long fileEntryId,
String version)
deleteFileVersion in interface Repositorypublic void deleteFolder(long parentFolderId,
String name)
throws PortalException
deleteFolder in interface RepositoryPortalExceptionpublic <T extends Capability> T getCapability(Class<T> capabilityClass)
getCapability in interface CapabilityProviderpublic long getCompanyId()
public List<RepositoryEntry> getFileEntriesAndFileShortcuts(long folderId, int status, int start, int end) throws PortalException
getFileEntriesAndFileShortcuts in interface DocumentRepositoryPortalExceptionpublic int getFileEntriesAndFileShortcutsCount(long folderId,
int status)
throws PortalException
getFileEntriesAndFileShortcutsCount in interface DocumentRepositoryPortalExceptionpublic int getFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes)
throws PortalException
getFileEntriesAndFileShortcutsCount in interface RepositoryPortalExceptionpublic List<Folder> getFolders(long parentFolderId, int status, boolean includeMountfolders, int start, int end, OrderByComparator<Folder> obc) throws PortalException
getFolders in interface DocumentRepositoryPortalExceptionpublic abstract List<Object> getFoldersAndFileEntries(long folderId, int start, int end, OrderByComparator<?> obc)
public abstract List<Object> getFoldersAndFileEntries(long folderId, String[] mimeTypes, int start, int end, OrderByComparator<?> obc) throws PortalException
PortalExceptionpublic List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<?> obc)
getFoldersAndFileEntriesAndFileShortcuts in interface DocumentRepositorypublic List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, String[] mimeTypes, boolean includeMountFolders, int start, int end, OrderByComparator<?> obc) throws PortalException
getFoldersAndFileEntriesAndFileShortcuts in interface RepositoryPortalExceptionpublic int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
getFoldersAndFileEntriesAndFileShortcutsCount in interface DocumentRepositorypublic int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders)
throws PortalException
getFoldersAndFileEntriesAndFileShortcutsCount in interface RepositoryPortalExceptionpublic abstract int getFoldersAndFileEntriesCount(long folderId)
public abstract int getFoldersAndFileEntriesCount(long folderId,
String[] mimeTypes)
throws PortalException
PortalExceptionpublic int getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders)
throws PortalException
getFoldersCount in interface DocumentRepositoryPortalExceptionpublic long getGroupId()
public LocalRepository getLocalRepository()
getLocalRepository in interface BaseRepository@Deprecated public Object[] getRepositoryEntryIds(String objectId) throws PortalException
getRepositoryEntry(String)PortalExceptionpublic List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
getRepositoryFileEntries in interface DocumentRepositoryPortalExceptionpublic List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
getRepositoryFileEntries in interface RepositoryPortalExceptionpublic int getRepositoryFileEntriesCount(long userId,
long rootFolderId)
throws PortalException
getRepositoryFileEntriesCount in interface RepositoryPortalExceptionpublic int getRepositoryFileEntriesCount(long userId,
long rootFolderId,
String[] mimeTypes,
int status)
throws PortalException
getRepositoryFileEntriesCount in interface RepositoryPortalExceptionpublic long getRepositoryId()
getRepositoryId in interface DocumentRepository@Deprecated public String[] getSupportedConfigurations()
getSupportedConfigurations in interface BaseRepository@Deprecated public String[][] getSupportedParameters()
getSupportedParameters in interface BaseRepositorypublic UnicodeProperties getTypeSettingsProperties()
public abstract void initRepository()
throws PortalException
initRepository in interface BaseRepositoryPortalExceptionpublic <T extends Capability> boolean isCapabilityProvided(Class<T> capabilityClass)
isCapabilityProvided in interface CapabilityProvider@Deprecated public FileEntry moveFileEntry(long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException
DocumentRepository.moveFileEntry(long, long,
long, ServiceContext)moveFileEntry in interface RepositoryPortalException@Deprecated public Folder moveFolder(long folderId, long newParentFolderId, ServiceContext serviceContext) throws PortalException
DocumentRepository.moveFolder(long, long, long,
ServiceContext)moveFolder in interface RepositoryPortalException@Deprecated public void revertFileEntry(long fileEntryId, String version, ServiceContext serviceContext) throws PortalException
DocumentRepository.revertFileEntry(long, long,
String, ServiceContext)revertFileEntry in interface RepositoryPortalExceptionpublic Hits search(SearchContext searchContext) throws SearchException
search in interface RepositorySearchExceptionpublic void setAssetEntryLocalService(AssetEntryLocalService assetEntryLocalService)
setAssetEntryLocalService in interface BaseRepositorypublic void setCompanyId(long companyId)
setCompanyId in interface BaseRepositorypublic void setCompanyLocalService(CompanyLocalService companyLocalService)
setCompanyLocalService in interface BaseRepositorypublic void setDLAppHelperLocalService(DLAppHelperLocalService dlAppHelperLocalService)
setDLAppHelperLocalService in interface BaseRepositorypublic void setDLFolderLocalService(DLFolderLocalService dlFolderLocalService)
setDLFolderLocalService in interface BaseRepositorypublic void setGroupId(long groupId)
setGroupId in interface BaseRepositorypublic void setRepositoryEntryLocalService(RepositoryEntryLocalService repositoryEntryLocalService)
setRepositoryEntryLocalService in interface BaseRepositorypublic void setRepositoryId(long repositoryId)
setRepositoryId in interface BaseRepositorypublic void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
setTypeSettingsProperties in interface BaseRepositorypublic void setUserLocalService(UserLocalService userLocalService)
setUserLocalService in interface BaseRepositorypublic void unlockFolder(long parentFolderId,
String name,
String lockUuid)
throws PortalException
unlockFolder in interface RepositoryPortalExceptionpublic FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, File file, ServiceContext serviceContext) throws PortalException
updateFileEntry in interface DocumentRepositoryPortalException@Deprecated public FileEntry updateFileEntry(long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, File file, ServiceContext serviceContext) throws PortalException
DocumentRepository.updateFileEntry(long, long,
String, String, String, String, String, boolean, InputStream,
long, ServiceContext)updateFileEntry in interface RepositoryPortalException@Deprecated public FileEntry updateFileEntry(long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, InputStream is, long size, ServiceContext serviceContext) throws PortalException
updateFileEntry(long, long,
String, String, String, String, String, boolean, File,
ServiceContext)updateFileEntry in interface RepositoryPortalExceptionpublic Folder updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext)
updateFolder in interface DocumentRepositorypublic boolean verifyFileEntryLock(long fileEntryId,
String lockUuid)
verifyFileEntryLock in interface Repositoryprotected void clearManualCheckInRequired(long fileEntryId,
ServiceContext serviceContext)
throws NoSuchRepositoryEntryException
NoSuchRepositoryEntryExceptionprotected RepositoryEntry getRepositoryEntry(String objectId) throws PortalException
PortalExceptionprotected void setManualCheckInRequired(long fileEntryId,
ServiceContext serviceContext)
throws NoSuchRepositoryEntryException
NoSuchRepositoryEntryException