com.liferay.portal.kernel.repository
Interface LocalRepository
- All Known Implementing Classes:
- DefaultLocalRepositoryImpl, LocalRepositoryProxyBean
public interface LocalRepository
Method Summary |
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)
|
Folder |
addFolder(long userId,
long parentFolderId,
String title,
String description,
ServiceContext serviceContext)
|
void |
deleteAll()
|
void |
deleteFileEntry(long fileEntryId)
|
void |
deleteFolder(long folderId)
|
List<FileEntry> |
getFileEntries(long folderId,
int start,
int end,
OrderByComparator obc)
|
List<Object> |
getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
|
int |
getFileEntriesAndFileShortcutsCount(long folderId,
int status)
|
int |
getFileEntriesCount(long folderId)
|
FileEntry |
getFileEntry(long fileEntryId)
|
FileEntry |
getFileEntry(long folderId,
String title)
|
FileEntry |
getFileEntryByUuid(String uuid)
|
FileVersion |
getFileVersion(long fileVersionId)
|
Folder |
getFolder(long folderId)
|
Folder |
getFolder(long parentFolderId,
String title)
|
List<Folder> |
getFolders(long parentFolderId,
boolean includeMountfolders,
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)
|
int |
getFoldersCount(long parentFolderId,
boolean includeMountfolders)
|
int |
getFoldersFileEntriesCount(List<Long> folderIds,
int status)
|
List<Folder> |
getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator obc)
|
int |
getMountFoldersCount(long parentFolderId)
|
long |
getRepositoryId()
|
FileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
|
void |
updateAsset(long userId,
FileEntry fileEntry,
FileVersion fileVersion,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
|
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 userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
ServiceContext serviceContext)
|
Folder |
updateFolder(long folderId,
long parentFolderId,
String title,
String description,
ServiceContext serviceContext)
|
addFileEntry
FileEntry addFileEntry(long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
File file,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addFileEntry
FileEntry addFileEntry(long userId,
long folderId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
InputStream is,
long size,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addFolder
Folder addFolder(long userId,
long parentFolderId,
String title,
String description,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteAll
void deleteAll()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFileEntry
void deleteFileEntry(long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFolder
void deleteFolder(long folderId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileEntries
List<FileEntry> getFileEntries(long folderId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getFileEntriesAndFileShortcuts
List<Object> getFileEntriesAndFileShortcuts(long folderId,
int status,
int start,
int end)
throws SystemException
- Throws:
SystemException
getFileEntriesAndFileShortcutsCount
int getFileEntriesAndFileShortcutsCount(long folderId,
int status)
throws SystemException
- Throws:
SystemException
getFileEntriesCount
int getFileEntriesCount(long folderId)
throws SystemException
- Throws:
SystemException
getFileEntry
FileEntry getFileEntry(long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileEntry
FileEntry getFileEntry(long folderId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileEntryByUuid
FileEntry getFileEntryByUuid(String uuid)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileVersion
FileVersion getFileVersion(long fileVersionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFolder
Folder getFolder(long folderId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFolder
Folder getFolder(long parentFolderId,
String title)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFolders
List<Folder> getFolders(long parentFolderId,
boolean includeMountfolders,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFoldersAndFileEntriesAndFileShortcuts
List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getFoldersAndFileEntriesAndFileShortcuts
List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
boolean includeMountFolders)
throws SystemException
- Throws:
SystemException
getFoldersAndFileEntriesAndFileShortcutsCount
int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
int status,
String[] mimeTypes,
boolean includeMountFolders)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFoldersCount
int getFoldersCount(long parentFolderId,
boolean includeMountfolders)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFoldersFileEntriesCount
int getFoldersFileEntriesCount(List<Long> folderIds,
int status)
throws SystemException
- Throws:
SystemException
getMountFolders
List<Folder> getMountFolders(long parentFolderId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getMountFoldersCount
int getMountFoldersCount(long parentFolderId)
throws SystemException
- Throws:
SystemException
getRepositoryId
long getRepositoryId()
moveFileEntry
FileEntry moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAsset
void updateAsset(long userId,
FileEntry fileEntry,
FileVersion fileVersion,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFileEntry
FileEntry updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
File file,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFileEntry
FileEntry updateFileEntry(long userId,
long fileEntryId,
String sourceFileName,
String mimeType,
String title,
String description,
String changeLog,
boolean majorVersion,
InputStream is,
long size,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFolder
Folder updateFolder(long folderId,
long parentFolderId,
String title,
String description,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException