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) |
abstract Folder |
addFolder(long userId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext) |
abstract void |
checkInFileEntry(long userId,
long fileEntryId,
DLVersionNumberIncrease dlVersionNumberIncrease,
String changeLog,
ServiceContext 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) |
void |
deleteAll() |
void |
deleteFileEntry(long folderId,
String title) |
void |
deleteFileVersion(long fileVersionId) |
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> orderByComparator) |
abstract List<Object> |
getFoldersAndFileEntries(long folderId,
int start,
int end,
OrderByComparator<?> orderByComparator) |
abstract List<Object> |
getFoldersAndFileEntries(long folderId,
String[] mimeTypes,
int start,
int end,
OrderByComparator<?> orderByComparator) |
List<RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> orderByComparator) |
List<RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> orderByComparator) |
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) |
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId) |
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId,
String[] mimeTypes,
int status) |
long |
getRepositoryId() |
String[][] |
getSupportedParameters()
Deprecated.
As of Wilberforce (7.0.x)
|
UnicodeProperties |
getTypeSettingsProperties() |
abstract void |
initRepository() |
<T extends Capability> |
isCapabilityProvided(Class<T> capabilityClass) |
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 typeSettingsUnicodeProperties) |
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,
DLVersionNumberIncrease dlVersionNumberIncrease,
File file,
ServiceContext serviceContext) |
abstract FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
DLVersionNumberIncrease dlVersionNumberIncrease,
InputStream inputStream,
long size,
ServiceContext 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, wait
cancelCheckOut, getFileEntries, getFileEntries, getFileEntriesCount, getFileEntriesCount, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersFileEntriesCount, getMountFolders, getMountFoldersCount, getSubfolderIds, getSubfolderIds, lockFolder, lockFolder, refreshFileEntryLock, refreshFolderLock, search, search, search, unlockFolder, updateFolder, verifyFileEntryCheckOut, verifyInheritableLock
addFileEntry, addFileShortcut, checkInFileEntry, copyFileEntry, deleteFileEntry, deleteFileShortcut, deleteFileShortcuts, deleteFolder, getFileEntries, getFileEntries, getFileEntries, getFileEntriesCount, getFileEntriesCount, getFileEntriesCount, getFileEntry, getFileEntry, getFileEntryByUuid, getFileShortcut, getFileVersion, getFolder, getFolder, getFolders, getFoldersCount, moveFileEntry, moveFolder, revertFileEntry, updateFileShortcut, updateFileShortcuts
protected 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 DocumentRepository
PortalException
public abstract Folder addFolder(long userId, long parentFolderId, String name, String description, ServiceContext serviceContext) throws PortalException
addFolder
in interface DocumentRepository
PortalException
public abstract void checkInFileEntry(long userId, long fileEntryId, DLVersionNumberIncrease dlVersionNumberIncrease, String changeLog, ServiceContext serviceContext) throws PortalException
checkInFileEntry
in interface DocumentRepository
PortalException
public abstract FileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext) throws PortalException
checkOutFileEntry
in interface Repository
PortalException
public abstract FileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext) throws PortalException
checkOutFileEntry
in interface Repository
PortalException
public void deleteAll()
deleteAll
in interface DocumentRepository
public void deleteFileEntry(long folderId, String title) throws PortalException
deleteFileEntry
in interface Repository
PortalException
public void deleteFileVersion(long fileVersionId) throws PortalException
deleteFileVersion
in interface DocumentRepository
PortalException
public void deleteFileVersion(long fileEntryId, String version)
deleteFileVersion
in interface Repository
public void deleteFolder(long parentFolderId, String name) throws PortalException
deleteFolder
in interface Repository
PortalException
public <T extends Capability> T getCapability(Class<T> capabilityClass)
getCapability
in interface CapabilityProvider
public long getCompanyId()
public List<RepositoryEntry> getFileEntriesAndFileShortcuts(long folderId, int status, int start, int end) throws PortalException
getFileEntriesAndFileShortcuts
in interface DocumentRepository
PortalException
public int getFileEntriesAndFileShortcutsCount(long folderId, int status) throws PortalException
getFileEntriesAndFileShortcutsCount
in interface DocumentRepository
PortalException
public int getFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimeTypes) throws PortalException
getFileEntriesAndFileShortcutsCount
in interface Repository
PortalException
public List<Folder> getFolders(long parentFolderId, int status, boolean includeMountfolders, int start, int end, OrderByComparator<Folder> orderByComparator) throws PortalException
getFolders
in interface DocumentRepository
PortalException
public abstract List<Object> getFoldersAndFileEntries(long folderId, int start, int end, OrderByComparator<?> orderByComparator)
public abstract List<Object> getFoldersAndFileEntries(long folderId, String[] mimeTypes, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException
PortalException
public List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<?> orderByComparator)
getFoldersAndFileEntriesAndFileShortcuts
in interface DocumentRepository
public List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, String[] mimeTypes, boolean includeMountFolders, int start, int end, OrderByComparator<?> orderByComparator) throws PortalException
getFoldersAndFileEntriesAndFileShortcuts
in interface Repository
PortalException
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, boolean includeMountFolders)
getFoldersAndFileEntriesAndFileShortcutsCount
in interface DocumentRepository
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimeTypes, boolean includeMountFolders) throws PortalException
getFoldersAndFileEntriesAndFileShortcutsCount
in interface Repository
PortalException
public abstract int getFoldersAndFileEntriesCount(long folderId)
public abstract int getFoldersAndFileEntriesCount(long folderId, String[] mimeTypes) throws PortalException
PortalException
public int getFoldersCount(long parentFolderId, int status, boolean includeMountfolders) throws PortalException
getFoldersCount
in interface DocumentRepository
PortalException
public long getGroupId()
public LocalRepository getLocalRepository()
getLocalRepository
in interface BaseRepository
public List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
getRepositoryFileEntries
in interface DocumentRepository
PortalException
public List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
getRepositoryFileEntries
in interface Repository
PortalException
public int getRepositoryFileEntriesCount(long userId, long rootFolderId) throws PortalException
getRepositoryFileEntriesCount
in interface Repository
PortalException
public int getRepositoryFileEntriesCount(long userId, long rootFolderId, String[] mimeTypes, int status) throws PortalException
getRepositoryFileEntriesCount
in interface Repository
PortalException
public long getRepositoryId()
getRepositoryId
in interface DocumentRepository
@Deprecated public String[][] getSupportedParameters()
getSupportedParameters
in interface BaseRepository
public UnicodeProperties getTypeSettingsProperties()
public abstract void initRepository() throws PortalException
initRepository
in interface BaseRepository
PortalException
public <T extends Capability> boolean isCapabilityProvided(Class<T> capabilityClass)
isCapabilityProvided
in interface CapabilityProvider
public Hits search(SearchContext searchContext) throws SearchException
search
in interface Repository
SearchException
public void setAssetEntryLocalService(AssetEntryLocalService assetEntryLocalService)
setAssetEntryLocalService
in interface BaseRepository
public void setCompanyId(long companyId)
setCompanyId
in interface BaseRepository
public void setCompanyLocalService(CompanyLocalService companyLocalService)
setCompanyLocalService
in interface BaseRepository
public void setDLAppHelperLocalService(DLAppHelperLocalService dlAppHelperLocalService)
setDLAppHelperLocalService
in interface BaseRepository
public void setDLFolderLocalService(DLFolderLocalService dlFolderLocalService)
setDLFolderLocalService
in interface BaseRepository
public void setGroupId(long groupId)
setGroupId
in interface BaseRepository
public void setRepositoryEntryLocalService(RepositoryEntryLocalService repositoryEntryLocalService)
setRepositoryEntryLocalService
in interface BaseRepository
public void setRepositoryId(long repositoryId)
setRepositoryId
in interface BaseRepository
public void setTypeSettingsProperties(UnicodeProperties typeSettingsUnicodeProperties)
setTypeSettingsProperties
in interface BaseRepository
public void setUserLocalService(UserLocalService userLocalService)
setUserLocalService
in interface BaseRepository
public void unlockFolder(long parentFolderId, String name, String lockUuid) throws PortalException
unlockFolder
in interface Repository
PortalException
public FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, File file, ServiceContext serviceContext) throws PortalException
updateFileEntry
in interface DocumentRepository
PortalException
public abstract FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, InputStream inputStream, long size, ServiceContext serviceContext) throws PortalException
updateFileEntry
in interface DocumentRepository
PortalException
public Folder updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext)
updateFolder
in interface DocumentRepository
public boolean verifyFileEntryLock(long fileEntryId, String lockUuid)
verifyFileEntryLock
in interface Repository
protected void clearManualCheckInRequired(long fileEntryId, ServiceContext serviceContext) throws NoSuchRepositoryEntryException
NoSuchRepositoryEntryException
protected RepositoryEntry getRepositoryEntry(String objectId) throws PortalException
PortalException
protected void setManualCheckInRequired(long fileEntryId, ServiceContext serviceContext) throws NoSuchRepositoryEntryException
NoSuchRepositoryEntryException