public class ExtRepositoryAdapter extends BaseRepositoryImpl
assetEntryLocalService, companyLocalService, dlAppHelperLocalService, dlFolderLocalService, repositoryEntryLocalService, userLocalService| Modifier | Constructor and Description |
|---|---|
protected |
ExtRepositoryAdapter(ExtRepository extRepository) |
| Modifier and Type | Method and Description |
|---|---|
FileEntry |
addFileEntry(long userId,
long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.InputStream inputStream,
long size,
ServiceContext serviceContext) |
FileShortcut |
addFileShortcut(long userId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext) |
ExtRepositoryFolderAdapter |
addFolder(long userId,
long parentFolderId,
java.lang.String name,
java.lang.String description,
ServiceContext serviceContext) |
FileVersion |
cancelCheckOut(long fileEntryId)
Cancels the file entry check out.
|
void |
checkInFileEntry(long userId,
long fileEntryId,
DLVersionNumberIncrease dlVersionNumberIncrease,
java.lang.String changeLog,
ServiceContext serviceContext) |
void |
checkInFileEntry(long userId,
long fileEntryId,
java.lang.String lockUuid,
ServiceContext serviceContext) |
FileEntry |
checkOutFileEntry(long fileEntryId,
ServiceContext serviceContext) |
FileEntry |
checkOutFileEntry(long fileEntryId,
java.lang.String owner,
long expirationTime,
ServiceContext serviceContext) |
FileEntry |
copyFileEntry(long userId,
long groupId,
long fileEntryId,
long destFolderId,
ServiceContext serviceContext) |
void |
deleteFileEntry(long fileEntryId) |
void |
deleteFileShortcut(long fileShortcutId) |
void |
deleteFileShortcuts(long toFileEntryId) |
void |
deleteFolder(long folderId) |
java.lang.String |
getAuthType() |
java.io.InputStream |
getContentStream(ExtRepositoryFileEntryAdapter extRepositoryFileEntryAdapter) |
java.io.InputStream |
getContentStream(ExtRepositoryFileVersionAdapter extRepositoryFileVersionAdapter) |
java.util.List<ExtRepositoryFileVersionAdapter> |
getExtRepositoryFileVersionAdapters(ExtRepositoryFileEntryAdapter extRepositoryFileEntryAdapter) |
protected java.lang.String |
getExtRepositoryObjectKey(long repositoryEntryId) |
java.util.List<FileEntry> |
getFileEntries(long folderId,
int status,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
java.util.List<FileEntry> |
getFileEntries(long folderId,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
java.util.List<FileEntry> |
getFileEntries(long folderId,
long fileEntryTypeId,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
java.util.List<FileEntry> |
getFileEntries(long folderId,
java.lang.String[] mimeTypes,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
int |
getFileEntriesCount(long folderId) |
int |
getFileEntriesCount(long folderId,
int status) |
int |
getFileEntriesCount(long folderId,
long fileEntryTypeId) |
int |
getFileEntriesCount(long folderId,
java.lang.String[] mimeTypes) |
ExtRepositoryFileEntryAdapter |
getFileEntry(long fileEntryId) |
FileEntry |
getFileEntry(long folderId,
java.lang.String title) |
FileEntry |
getFileEntryByUuid(java.lang.String uuid) |
FileShortcut |
getFileShortcut(long fileShortcutId) |
FileVersion |
getFileVersion(long fileVersionId) |
ExtRepositoryFolderAdapter |
getFolder(long folderId) |
ExtRepositoryFolderAdapter |
getFolder(long parentFolderId,
java.lang.String name) |
java.util.List<Folder> |
getFolders(long parentFolderId,
boolean includeMountFolders,
int start,
int end,
OrderByComparator<Folder> orderByComparator) |
java.util.List<java.lang.Object> |
getFoldersAndFileEntries(long folderId,
int start,
int end,
OrderByComparator<?> orderByComparator) |
java.util.List<java.lang.Object> |
getFoldersAndFileEntries(long folderId,
java.lang.String[] mimeTypes,
int start,
int end,
OrderByComparator<?> orderByComparator) |
int |
getFoldersAndFileEntriesCount(long folderId) |
int |
getFoldersAndFileEntriesCount(long folderId,
java.lang.String[] mimeTypes) |
int |
getFoldersCount(long parentFolderId,
boolean includeMountfolders) |
int |
getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds,
int status) |
java.lang.String |
getLiferayLogin(java.lang.String extRepositoryUserName) |
java.util.List<Folder> |
getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator<Folder> orderByComparator) |
int |
getMountFoldersCount(long parentFolderId) |
ExtRepositoryFolderAdapter |
getParentFolder(ExtRepositoryObjectAdapter<?> extRepositoryObjectAdapter) |
void |
getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long folderId) |
java.util.List<java.lang.Long> |
getSubfolderIds(long folderId,
boolean recurse) |
java.lang.String[][] |
getSupportedParameters() |
void |
initRepository() |
protected boolean |
isCheckedOut(ExtRepositoryFileEntry extRepositoryFileEntry) |
Lock |
lockFolder(long folderId) |
Lock |
lockFolder(long folderId,
java.lang.String owner,
boolean inheritable,
long expirationTime) |
FileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext) |
ExtRepositoryFolderAdapter |
moveFolder(long userId,
long folderId,
long newParentFolderId,
ServiceContext serviceContext) |
Lock |
refreshFileEntryLock(java.lang.String lockUuid,
long companyId,
long expirationTime) |
Lock |
refreshFolderLock(java.lang.String lockUuid,
long companyId,
long expirationTime) |
void |
revertFileEntry(long userId,
long fileEntryId,
java.lang.String version,
ServiceContext serviceContext) |
Hits |
search(long creatorUserId,
int status,
int start,
int end) |
Hits |
search(long creatorUserId,
long folderId,
java.lang.String[] mimeTypes,
int status,
int start,
int end) |
Hits |
search(SearchContext searchContext,
Query query) |
void |
unlockFolder(long folderId,
java.lang.String lockUuid) |
FileEntry |
updateFileEntry(long userId,
long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
DLVersionNumberIncrease dlVersionNumberIncrease,
java.io.InputStream inputStream,
long size,
ServiceContext serviceContext) |
FileShortcut |
updateFileShortcut(long userId,
long fileShortcutId,
long folderId,
long toFileEntryId,
ServiceContext serviceContext) |
void |
updateFileShortcuts(long oldToFileEntryId,
long newToFileEntryId) |
ExtRepositoryFolderAdapter |
updateFolder(long folderId,
java.lang.String name,
java.lang.String description,
ServiceContext serviceContext) |
boolean |
verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid) |
boolean |
verifyInheritableLock(long folderId,
java.lang.String lockUuid) |
addFileEntry, clearManualCheckInRequired, deleteAll, deleteFileEntry, deleteFileVersion, deleteFileVersion, deleteFolder, getCapability, getCompanyId, getFileEntriesAndFileShortcuts, getFileEntriesAndFileShortcutsCount, getFileEntriesAndFileShortcutsCount, getFolders, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersCount, getGroupId, getLocalRepository, getRepositoryEntry, getRepositoryFileEntries, getRepositoryFileEntries, getRepositoryFileEntriesCount, getRepositoryFileEntriesCount, getRepositoryId, getTypeSettingsProperties, isCapabilityProvided, search, setAssetEntryLocalService, setCompanyId, setCompanyLocalService, setDLAppHelperLocalService, setDLFolderLocalService, setGroupId, setManualCheckInRequired, setRepositoryEntryLocalService, setRepositoryId, setTypeSettingsProperties, setUserLocalService, unlockFolder, updateFileEntry, updateFolder, verifyFileEntryLockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcutsCountgetFileEntries, getFileEntriesCountprotected ExtRepositoryAdapter(ExtRepository extRepository)
public FileEntry addFileEntry(long userId, long folderId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, java.io.InputStream inputStream, long size, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic FileShortcut addFileShortcut(long userId, long folderId, long toFileEntryId, ServiceContext serviceContext)
public ExtRepositoryFolderAdapter addFolder(long userId, long parentFolderId, java.lang.String name, java.lang.String description, ServiceContext serviceContext) throws PortalException
addFolder in interface DocumentRepositoryaddFolder in class BaseRepositoryImplPortalExceptionpublic FileVersion cancelCheckOut(long fileEntryId) throws PortalException
RepositoryfileEntryId - the primary key of the file entry to cancel the check
outnull if the file entry was not checked outPortalExceptionDocumentRepository.checkInFileEntry(long, long, DLVersionNumberIncrease, String,
ServiceContext),
Repository.checkOutFileEntry(long, ServiceContext)public void checkInFileEntry(long userId,
long fileEntryId,
DLVersionNumberIncrease dlVersionNumberIncrease,
java.lang.String changeLog,
ServiceContext serviceContext)
throws PortalException
checkInFileEntry in interface DocumentRepositorycheckInFileEntry in class BaseRepositoryImplPortalExceptionpublic void checkInFileEntry(long userId,
long fileEntryId,
java.lang.String lockUuid,
ServiceContext serviceContext)
throws PortalException
PortalExceptionpublic FileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext) throws PortalException
checkOutFileEntry in interface RepositorycheckOutFileEntry in class BaseRepositoryImplPortalExceptionpublic FileEntry checkOutFileEntry(long fileEntryId, java.lang.String owner, long expirationTime, ServiceContext serviceContext) throws PortalException
checkOutFileEntry in interface RepositorycheckOutFileEntry in class BaseRepositoryImplPortalExceptionpublic FileEntry copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic void deleteFileEntry(long fileEntryId)
throws PortalException
PortalExceptionpublic void deleteFileShortcut(long fileShortcutId)
public void deleteFileShortcuts(long toFileEntryId)
public void deleteFolder(long folderId)
throws PortalException
PortalExceptionpublic java.lang.String getAuthType()
public java.io.InputStream getContentStream(ExtRepositoryFileEntryAdapter extRepositoryFileEntryAdapter) throws PortalException
PortalExceptionpublic java.io.InputStream getContentStream(ExtRepositoryFileVersionAdapter extRepositoryFileVersionAdapter) throws PortalException
PortalExceptionpublic java.util.List<ExtRepositoryFileVersionAdapter> getExtRepositoryFileVersionAdapters(ExtRepositoryFileEntryAdapter extRepositoryFileEntryAdapter) throws PortalException
PortalExceptionpublic java.util.List<FileEntry> getFileEntries(long folderId, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
PortalExceptionpublic java.util.List<FileEntry> getFileEntries(long folderId, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
PortalExceptionpublic java.util.List<FileEntry> getFileEntries(long folderId, long fileEntryTypeId, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
PortalExceptionpublic java.util.List<FileEntry> getFileEntries(long folderId, java.lang.String[] mimeTypes, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
PortalExceptionpublic int getFileEntriesCount(long folderId)
throws PortalException
PortalExceptionpublic int getFileEntriesCount(long folderId,
int status)
throws PortalException
PortalExceptionpublic int getFileEntriesCount(long folderId,
long fileEntryTypeId)
throws PortalException
PortalExceptionpublic int getFileEntriesCount(long folderId,
java.lang.String[] mimeTypes)
throws PortalException
PortalExceptionpublic ExtRepositoryFileEntryAdapter getFileEntry(long fileEntryId) throws PortalException
PortalExceptionpublic FileEntry getFileEntry(long folderId, java.lang.String title) throws PortalException
PortalExceptionpublic FileEntry getFileEntryByUuid(java.lang.String uuid) throws PortalException
PortalExceptionpublic FileShortcut getFileShortcut(long fileShortcutId)
public FileVersion getFileVersion(long fileVersionId) throws PortalException
PortalExceptionpublic ExtRepositoryFolderAdapter getFolder(long folderId) throws PortalException
PortalExceptionpublic ExtRepositoryFolderAdapter getFolder(long parentFolderId, java.lang.String name) throws PortalException
PortalExceptionpublic java.util.List<Folder> getFolders(long parentFolderId, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> orderByComparator) throws PortalException
PortalExceptionpublic java.util.List<java.lang.Object> getFoldersAndFileEntries(long folderId,
int start,
int end,
OrderByComparator<?> orderByComparator)
getFoldersAndFileEntries in class BaseRepositoryImplpublic java.util.List<java.lang.Object> getFoldersAndFileEntries(long folderId,
java.lang.String[] mimeTypes,
int start,
int end,
OrderByComparator<?> orderByComparator)
throws PortalException
getFoldersAndFileEntries in class BaseRepositoryImplPortalExceptionpublic int getFoldersAndFileEntriesCount(long folderId)
getFoldersAndFileEntriesCount in class BaseRepositoryImplpublic int getFoldersAndFileEntriesCount(long folderId,
java.lang.String[] mimeTypes)
throws PortalException
getFoldersAndFileEntriesCount in class BaseRepositoryImplPortalExceptionpublic int getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws PortalException
PortalExceptionpublic int getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds,
int status)
throws PortalException
PortalExceptionpublic java.lang.String getLiferayLogin(java.lang.String extRepositoryUserName)
public java.util.List<Folder> getMountFolders(long parentFolderId, int start, int end, OrderByComparator<Folder> orderByComparator) throws PortalException
PortalExceptionpublic int getMountFoldersCount(long parentFolderId)
throws PortalException
PortalExceptionpublic ExtRepositoryFolderAdapter getParentFolder(ExtRepositoryObjectAdapter<?> extRepositoryObjectAdapter) throws PortalException
PortalExceptionpublic void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long folderId)
throws PortalException
PortalExceptionpublic java.util.List<java.lang.Long> getSubfolderIds(long folderId,
boolean recurse)
throws PortalException
PortalExceptionpublic java.lang.String[][] getSupportedParameters()
getSupportedParameters in interface BaseRepositorygetSupportedParameters in class BaseRepositoryImplpublic void initRepository()
throws PortalException
initRepository in interface BaseRepositoryinitRepository in class BaseRepositoryImplPortalExceptionpublic Lock lockFolder(long folderId) throws PortalException
PortalExceptionpublic Lock lockFolder(long folderId, java.lang.String owner, boolean inheritable, long expirationTime) throws PortalException
PortalExceptionpublic FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic ExtRepositoryFolderAdapter moveFolder(long userId, long folderId, long newParentFolderId, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic Lock refreshFileEntryLock(java.lang.String lockUuid, long companyId, long expirationTime) throws PortalException
PortalExceptionpublic Lock refreshFolderLock(java.lang.String lockUuid, long companyId, long expirationTime) throws PortalException
PortalExceptionpublic void revertFileEntry(long userId,
long fileEntryId,
java.lang.String version,
ServiceContext serviceContext)
throws PortalException
PortalExceptionpublic Hits search(long creatorUserId, int status, int start, int end) throws PortalException
PortalExceptionpublic Hits search(long creatorUserId, long folderId, java.lang.String[] mimeTypes, int status, int start, int end) throws PortalException
PortalExceptionpublic Hits search(SearchContext searchContext, Query query) throws SearchException
SearchExceptionpublic void unlockFolder(long folderId,
java.lang.String lockUuid)
throws PortalException
PortalExceptionpublic FileEntry updateFileEntry(long userId, long fileEntryId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, DLVersionNumberIncrease dlVersionNumberIncrease, java.io.InputStream inputStream, long size, ServiceContext serviceContext) throws PortalException
updateFileEntry in interface DocumentRepositoryupdateFileEntry in class BaseRepositoryImplPortalExceptionpublic FileShortcut updateFileShortcut(long userId, long fileShortcutId, long folderId, long toFileEntryId, ServiceContext serviceContext)
public void updateFileShortcuts(long oldToFileEntryId,
long newToFileEntryId)
public ExtRepositoryFolderAdapter updateFolder(long folderId, java.lang.String name, java.lang.String description, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic boolean verifyFileEntryCheckOut(long fileEntryId,
java.lang.String lockUuid)
throws PortalException
PortalExceptionpublic boolean verifyInheritableLock(long folderId,
java.lang.String lockUuid)
throws PortalException
PortalExceptionprotected java.lang.String getExtRepositoryObjectKey(long repositoryEntryId)
throws PortalException
PortalExceptionprotected boolean isCheckedOut(ExtRepositoryFileEntry extRepositoryFileEntry)