public class DefaultLocalRepositoryImpl extends Object implements LocalRepository
UnsupportedOperationException.| Constructor and Description |
|---|
DefaultLocalRepositoryImpl(Repository repository) |
| 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 userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
ServiceContext serviceContext) |
FileShortcut |
addFileShortcut(long userId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext) |
Folder |
addFolder(long userId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext) |
void |
checkInFileEntry(long userId,
long fileEntryId,
boolean majorVersion,
String changeLog,
ServiceContext serviceContext)
Deprecated.
As of Judson (7.1.x), replaced by
checkInFileEntry(long, long, DLVersionNumberIncrease,
String, ServiceContext) |
void |
checkInFileEntry(long userId,
long fileEntryId,
DLVersionNumberIncrease dlVersionNumberIncrease,
String changeLog,
ServiceContext serviceContext) |
void |
checkInFileEntry(long userId,
long fileEntryId,
String lockUuid,
ServiceContext serviceContext) |
FileEntry |
copyFileEntry(long userId,
long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext) |
void |
deleteAll() |
void |
deleteFileEntry(long fileEntryId) |
void |
deleteFileShortcut(long fileShortcutId) |
void |
deleteFileShortcuts(long toFileEntryId) |
void |
deleteFileVersion(long fileVersionId) |
void |
deleteFolder(long folderId) |
<T extends Capability> |
getCapability(Class<T> capabilityClass) |
List<FileEntry> |
getFileEntries(long folderId,
int status,
int start,
int end,
OrderByComparator<FileEntry> obc) |
List<FileEntry> |
getFileEntries(long folderId,
int start,
int end,
OrderByComparator<FileEntry> obc) |
List<FileEntry> |
getFileEntries(long folderId,
String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator<FileEntry> obc) |
List<RepositoryEntry> |
getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end) |
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status) |
int |
getFileEntriesCount(long folderId) |
int |
getFileEntriesCount(long folderId,
int status) |
int |
getFileEntriesCount(long folderId,
String[] mimeTypes,
int status) |
FileEntry |
getFileEntry(long fileEntryId) |
FileEntry |
getFileEntry(long folderId,
String title) |
FileEntry |
getFileEntryByUuid(String uuid) |
FileShortcut |
getFileShortcut(long fileShortcutId) |
FileVersion |
getFileVersion(long fileVersionId) |
Folder |
getFolder(long folderId) |
Folder |
getFolder(long parentFolderId,
String name) |
List<Folder> |
getFolders(long parentFolderId,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc) |
List<Folder> |
getFolders(long parentFolderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> obc) |
List<RepositoryEntry> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<?> obc) |
int |
getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders) |
int |
getFoldersCount(long parentFolderId,
boolean includeMountfolders) |
int |
getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders) |
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator<FileEntry> obc) |
long |
getRepositoryId() |
<T extends Capability> |
isCapabilityProvided(Class<T> capabilityClass) |
FileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext) |
Folder |
moveFolder(long userId,
long folderId,
long parentFolderId,
ServiceContext serviceContext) |
void |
revertFileEntry(long userId,
long fileEntryId,
String version,
ServiceContext serviceContext) |
FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
Deprecated.
As of Judson (7.1.x), replaced by
updateFileEntry(long, long, String, String, String, String,
String, DLVersionNumberIncrease, File, ServiceContext) |
FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
ServiceContext serviceContext)
Deprecated.
As of Judson (7.1.x), replaced by
updateFileEntry(long, long, String, String, String, String,
String, DLVersionNumberIncrease, InputStream, long,
ServiceContext) |
FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
DLVersionNumberIncrease dlVersionNumberIncrease,
File file,
ServiceContext serviceContext) |
FileEntry |
updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
DLVersionNumberIncrease dlVersionNumberIncrease,
InputStream is,
long size,
ServiceContext serviceContext) |
FileShortcut |
updateFileShortcut(long userId,
long fileShortcutId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext) |
void |
updateFileShortcuts(long oldToFileEntryId,
long newToFileEntryId) |
Folder |
updateFolder(long folderId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext) |
public DefaultLocalRepositoryImpl(Repository repository)
public FileEntry addFileEntry(long userId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, File file, ServiceContext serviceContext)
addFileEntry in interface DocumentRepositorypublic FileEntry addFileEntry(long userId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, InputStream is, long size, ServiceContext serviceContext)
addFileEntry in interface DocumentRepositorypublic FileShortcut addFileShortcut(long userId, long folderId, long toFileEntryId, ServiceContext serviceContext)
addFileShortcut in interface DocumentRepositorypublic Folder addFolder(long userId, long parentFolderId, String name, String description, ServiceContext serviceContext)
addFolder in interface DocumentRepository@Deprecated
public void checkInFileEntry(long userId,
long fileEntryId,
boolean majorVersion,
String changeLog,
ServiceContext serviceContext)
throws PortalException
checkInFileEntry(long, long, DLVersionNumberIncrease,
String, ServiceContext)checkInFileEntry in interface DocumentRepositoryPortalExceptionpublic void checkInFileEntry(long userId,
long fileEntryId,
DLVersionNumberIncrease dlVersionNumberIncrease,
String changeLog,
ServiceContext serviceContext)
throws PortalException
checkInFileEntry in interface DocumentRepositoryPortalExceptionpublic void checkInFileEntry(long userId,
long fileEntryId,
String lockUuid,
ServiceContext serviceContext)
throws PortalException
checkInFileEntry in interface DocumentRepositoryPortalExceptionpublic FileEntry copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext) throws PortalException
copyFileEntry in interface DocumentRepositoryPortalExceptionpublic void deleteAll()
deleteAll in interface DocumentRepositorypublic void deleteFileEntry(long fileEntryId)
throws PortalException
deleteFileEntry in interface DocumentRepositoryPortalExceptionpublic void deleteFileShortcut(long fileShortcutId)
throws PortalException
deleteFileShortcut in interface DocumentRepositoryPortalExceptionpublic void deleteFileShortcuts(long toFileEntryId)
throws PortalException
deleteFileShortcuts in interface DocumentRepositoryPortalExceptionpublic void deleteFileVersion(long fileVersionId)
throws PortalException
deleteFileVersion in interface DocumentRepositoryPortalExceptionpublic void deleteFolder(long folderId)
throws PortalException
deleteFolder in interface DocumentRepositoryPortalExceptionpublic <T extends Capability> T getCapability(Class<T> capabilityClass)
getCapability in interface CapabilityProviderpublic List<FileEntry> getFileEntries(long folderId, int status, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
getFileEntries in interface DocumentRepositoryPortalExceptionpublic List<FileEntry> getFileEntries(long folderId, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
getFileEntries in interface DocumentRepositoryPortalExceptionpublic List<FileEntry> getFileEntries(long folderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
getFileEntries in interface DocumentRepositoryPortalExceptionpublic 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 getFileEntriesCount(long folderId)
throws PortalException
getFileEntriesCount in interface DocumentRepositoryPortalExceptionpublic int getFileEntriesCount(long folderId,
int status)
throws PortalException
getFileEntriesCount in interface DocumentRepositoryPortalExceptionpublic int getFileEntriesCount(long folderId,
String[] mimeTypes,
int status)
throws PortalException
getFileEntriesCount in interface DocumentRepositoryPortalExceptionpublic FileEntry getFileEntry(long fileEntryId) throws PortalException
getFileEntry in interface DocumentRepositoryPortalExceptionpublic FileEntry getFileEntry(long folderId, String title) throws PortalException
getFileEntry in interface DocumentRepositoryPortalExceptionpublic FileEntry getFileEntryByUuid(String uuid) throws PortalException
getFileEntryByUuid in interface DocumentRepositoryPortalExceptionpublic FileShortcut getFileShortcut(long fileShortcutId)
getFileShortcut in interface DocumentRepositorypublic FileVersion getFileVersion(long fileVersionId) throws PortalException
getFileVersion in interface DocumentRepositoryPortalExceptionpublic Folder getFolder(long folderId) throws PortalException
getFolder in interface DocumentRepositoryPortalExceptionpublic Folder getFolder(long parentFolderId, String name) throws PortalException
getFolder in interface DocumentRepositoryPortalExceptionpublic List<Folder> getFolders(long parentFolderId, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> obc) throws PortalException
getFolders in interface DocumentRepositoryPortalExceptionpublic List<Folder> getFolders(long parentFolderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> obc) throws PortalException
getFolders in interface DocumentRepositoryPortalExceptionpublic List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<?> obc) throws PortalException
getFoldersAndFileEntriesAndFileShortcuts in interface DocumentRepositoryPortalExceptionpublic int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
throws PortalException
getFoldersAndFileEntriesAndFileShortcutsCount in interface DocumentRepositoryPortalExceptionpublic int getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws PortalException
getFoldersCount in interface DocumentRepositoryPortalExceptionpublic int getFoldersCount(long parentFolderId,
int status,
boolean includeMountfolders)
throws PortalException
getFoldersCount in interface DocumentRepositoryPortalExceptionpublic List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
getRepositoryFileEntries in interface DocumentRepositoryPortalExceptionpublic long getRepositoryId()
getRepositoryId in interface DocumentRepositorypublic <T extends Capability> boolean isCapabilityProvided(Class<T> capabilityClass)
isCapabilityProvided in interface CapabilityProviderpublic FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext)
moveFileEntry in interface DocumentRepositorypublic Folder moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext)
moveFolder in interface DocumentRepositorypublic void revertFileEntry(long userId,
long fileEntryId,
String version,
ServiceContext serviceContext)
throws PortalException
revertFileEntry in interface DocumentRepositoryPortalException@Deprecated public FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, File file, ServiceContext serviceContext)
updateFileEntry(long, long, String, String, String, String,
String, DLVersionNumberIncrease, File, ServiceContext)updateFileEntry in interface DocumentRepository@Deprecated public FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, InputStream is, long size, ServiceContext serviceContext)
updateFileEntry(long, long, String, String, String, String,
String, DLVersionNumberIncrease, InputStream, long,
ServiceContext)updateFileEntry in interface DocumentRepositorypublic FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, File file, ServiceContext serviceContext)
updateFileEntry in interface DocumentRepositorypublic FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, InputStream is, long size, ServiceContext serviceContext)
updateFileEntry in interface DocumentRepositorypublic FileShortcut updateFileShortcut(long userId, long fileShortcutId, long folderId, long toFileEntryId, ServiceContext serviceContext)
updateFileShortcut in interface DocumentRepositorypublic void updateFileShortcuts(long oldToFileEntryId,
long newToFileEntryId)
updateFileShortcuts in interface DocumentRepositorypublic Folder updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext)
updateFolder in interface DocumentRepository