com.liferay.portal.kernel.repository
Class BaseRepositoryImpl
java.lang.Object
com.liferay.portal.kernel.repository.BaseRepositoryImpl
- All Implemented Interfaces:
- BaseRepository, Repository
- Direct Known Subclasses:
- BaseCmisRepository, CMISRepositoryHandler
public abstract class BaseRepositoryImpl
- extends Object
- implements BaseRepository
Third-party repository implementations should extend from this class.
|
Method Summary |
FileEntry |
addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext)
|
void |
deleteFileEntry(long folderId,
String title)
|
void |
deleteFolder(long parentFolderId,
String title)
|
long |
getCompanyId()
|
List<Object> |
getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
|
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status)
|
abstract List<Object> |
getFoldersAndFileEntries(long folderId,
int start,
int end,
OrderByComparator obc)
|
List<Object> |
getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
|
List<Object> |
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)
|
long |
getGroupId()
|
LocalRepository |
getLocalRepository()
|
Object[] |
getRepositoryEntryIds(String objectId)
|
List<FileEntry> |
getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator obc)
|
int |
getRepositoryFileEntriesCount(long userId,
long rootFolderId)
|
long |
getRepositoryId()
|
UnicodeProperties |
getTypeSettingsProperties()
|
abstract void |
initRepository()
|
Hits |
search(SearchContext searchContext)
|
void |
setAssetEntryLocalService(AssetEntryLocalService assetEntryLocalService)
|
void |
setCompanyId(long companyId)
|
void |
setCompanyLocalService(CompanyLocalService companyLocalService)
|
void |
setCounterLocalService(CounterLocalService counterLocalService)
|
void |
setDLAppHelperLocalService(DLAppHelperLocalService dlAppHelperLocalService)
|
void |
setGroupId(long groupId)
|
void |
setRepositoryId(long repositoryId)
|
void |
setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
|
void |
setUserLocalService(UserLocalService userLocalService)
|
void |
unlockFolder(long parentFolderId,
String title,
String lockUuid)
|
FileEntry |
updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.kernel.repository.Repository |
addFileEntry, addFolder, cancelCheckOut, checkInFileEntry, checkInFileEntry, checkOutFileEntry, checkOutFileEntry, copyFileEntry, deleteFileEntry, deleteFolder, getFileEntries, getFileEntries, getFileEntriesCount, getFileEntriesCount, getFileEntry, getFileEntry, getFileEntryByUuid, getFileVersion, getFolder, getFolder, getFolders, getFoldersCount, getFoldersFileEntriesCount, getMountFolders, getMountFoldersCount, getSubfolderIds, getSubfolderIds, lockFolder, lockFolder, moveFileEntry, moveFolder, refreshFileEntryLock, refreshFolderLock, revertFileEntry, search, unlockFolder, updateFileEntry, updateFolder, verifyFileEntryCheckOut, verifyInheritableLock |
assetEntryLocalService
protected AssetEntryLocalService assetEntryLocalService
companyLocalService
protected CompanyLocalService companyLocalService
counterLocalService
protected CounterLocalService counterLocalService
dlAppHelperLocalService
protected DLAppHelperLocalService dlAppHelperLocalService
userLocalService
protected UserLocalService userLocalService
BaseRepositoryImpl
public BaseRepositoryImpl()
addFileEntry
public FileEntry addFileEntry(long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
addFileEntry in interface Repository
- Throws:
PortalException
SystemException
deleteFileEntry
public void deleteFileEntry(long folderId,
String title)
throws PortalException,
SystemException
- Specified by:
deleteFileEntry in interface Repository
- Throws:
PortalException
SystemException
deleteFolder
public void deleteFolder(long parentFolderId,
String title)
throws PortalException,
SystemException
- Specified by:
deleteFolder in interface Repository
- Throws:
PortalException
SystemException
getCompanyId
public long getCompanyId()
getFileEntriesAndFileShortcuts
public List<Object> getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
throws SystemException
- Specified by:
getFileEntriesAndFileShortcuts in interface Repository
- Throws:
SystemException
getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long folderId,
int status)
throws SystemException
- Specified by:
getFileEntriesAndFileShortcutsCount in interface Repository
- Throws:
SystemException
getFoldersAndFileEntries
public abstract List<Object> getFoldersAndFileEntries(long folderId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getFoldersAndFileEntriesAndFileShortcuts
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcuts in interface Repository
- Throws:
SystemException
getFoldersAndFileEntriesAndFileShortcuts
public List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcuts in interface Repository
- Throws:
SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
throws SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount in interface Repository
- Throws:
SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders)
throws SystemException
- Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount in interface Repository
- Throws:
SystemException
getFoldersAndFileEntriesCount
public abstract int getFoldersAndFileEntriesCount(long folderId)
throws SystemException
- Throws:
SystemException
getGroupId
public long getGroupId()
getLocalRepository
public LocalRepository getLocalRepository()
- Specified by:
getLocalRepository in interface BaseRepository
getRepositoryEntryIds
public Object[] getRepositoryEntryIds(String objectId)
throws SystemException
- Throws:
SystemException
getRepositoryFileEntries
public List<FileEntry> getRepositoryFileEntries(long userId,
long rootFolderId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Specified by:
getRepositoryFileEntries in interface Repository
- Throws:
SystemException
getRepositoryFileEntriesCount
public int getRepositoryFileEntriesCount(long userId,
long rootFolderId)
throws SystemException
- Specified by:
getRepositoryFileEntriesCount in interface Repository
- Throws:
SystemException
getRepositoryId
public long getRepositoryId()
- Specified by:
getRepositoryId in interface Repository
getTypeSettingsProperties
public UnicodeProperties getTypeSettingsProperties()
initRepository
public abstract void initRepository()
throws PortalException,
SystemException
- Specified by:
initRepository in interface BaseRepository
- Throws:
PortalException
SystemException
search
public Hits search(SearchContext searchContext)
throws SearchException
- Specified by:
search in interface Repository
- Throws:
SearchException
setAssetEntryLocalService
public void setAssetEntryLocalService(AssetEntryLocalService assetEntryLocalService)
- Specified by:
setAssetEntryLocalService in interface BaseRepository
setCompanyId
public void setCompanyId(long companyId)
- Specified by:
setCompanyId in interface BaseRepository
setCompanyLocalService
public void setCompanyLocalService(CompanyLocalService companyLocalService)
- Specified by:
setCompanyLocalService in interface BaseRepository
setCounterLocalService
public void setCounterLocalService(CounterLocalService counterLocalService)
- Specified by:
setCounterLocalService in interface BaseRepository
setDLAppHelperLocalService
public void setDLAppHelperLocalService(DLAppHelperLocalService dlAppHelperLocalService)
- Specified by:
setDLAppHelperLocalService in interface BaseRepository
setGroupId
public void setGroupId(long groupId)
- Specified by:
setGroupId in interface BaseRepository
setRepositoryId
public void setRepositoryId(long repositoryId)
- Specified by:
setRepositoryId in interface BaseRepository
setTypeSettingsProperties
public void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
- Specified by:
setTypeSettingsProperties in interface BaseRepository
setUserLocalService
public void setUserLocalService(UserLocalService userLocalService)
- Specified by:
setUserLocalService in interface BaseRepository
unlockFolder
public void unlockFolder(long parentFolderId,
String title,
String lockUuid)
throws PortalException,
SystemException
- Specified by:
unlockFolder in interface Repository
- Throws:
PortalException
SystemException
updateFileEntry
public FileEntry updateFileEntry(long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
updateFileEntry in interface Repository
- Throws:
PortalException
SystemException