com.liferay.portal.kernel.repository
Interface LocalRepository
- All Superinterfaces:
- CapabilityProvider, DocumentRepository
- All Known Implementing Classes:
- CapabilityLocalRepository, DefaultLocalRepositoryImpl, LiferayLocalRepository, LocalRepositoryProxyBean
public interface LocalRepository
- extends DocumentRepository
|
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 name,
String description,
ServiceContext serviceContext)
|
void |
deleteAll()
|
void |
deleteFileEntry(long fileEntryId)
|
void |
deleteFolder(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 name)
|
List<FileEntry> |
getRepositoryFileEntries(long rootFolderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
|
FileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
|
Folder |
moveFolder(long userId,
long folderId,
long parentFolderId,
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 name,
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
- Throws:
PortalException
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
- Throws:
PortalException
addFolder
Folder addFolder(long userId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
deleteAll
void deleteAll()
throws PortalException
- Throws:
PortalException
deleteFileEntry
void deleteFileEntry(long fileEntryId)
throws PortalException
- Throws:
PortalException
deleteFolder
void deleteFolder(long folderId)
throws PortalException
- Throws:
PortalException
getFileEntry
FileEntry getFileEntry(long fileEntryId)
throws PortalException
- Throws:
PortalException
getFileEntry
FileEntry getFileEntry(long folderId,
String title)
throws PortalException
- Throws:
PortalException
getFileEntryByUuid
FileEntry getFileEntryByUuid(String uuid)
throws PortalException
- Throws:
PortalException
getFileVersion
FileVersion getFileVersion(long fileVersionId)
throws PortalException
- Throws:
PortalException
getFolder
Folder getFolder(long folderId)
throws PortalException
- Throws:
PortalException
getFolder
Folder getFolder(long parentFolderId,
String name)
throws PortalException
- Throws:
PortalException
getRepositoryFileEntries
List<FileEntry> getRepositoryFileEntries(long rootFolderId,
int start,
int end,
OrderByComparator<FileEntry> obc)
throws PortalException
- Throws:
PortalException
moveFileEntry
FileEntry moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
moveFolder
Folder moveFolder(long userId,
long folderId,
long parentFolderId,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
updateAsset
void updateAsset(long userId,
FileEntry fileEntry,
FileVersion fileVersion,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException
- Throws:
PortalException
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
- Throws:
PortalException
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
- Throws:
PortalException
updateFolder
Folder updateFolder(long folderId,
long parentFolderId,
String name,
String description,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException