Interface PortletFileRepository
@ProviderType
public interface PortletFileRepository
- Author:
- Eudaldo Alonso, Alexander Chow
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPortletFileEntries(long groupId, long userId, String className, long classPK, String portletId, long folderId, List<ObjectValuePair<String, InputStream>> inputStreamOVPs) addPortletFileEntry(long groupId, long userId, String className, long classPK, String portletId, long folderId, byte[] bytes, String fileName, String mimeType, boolean indexingEnabled) addPortletFileEntry(String externalReferenceCode, long groupId, long userId, String className, long classPK, String portletId, long folderId, File file, String fileName, String mimeType, boolean indexingEnabled) addPortletFileEntry(String externalReferenceCode, long groupId, long userId, String className, long classPK, String portletId, long folderId, InputStream inputStream, String fileName, String mimeType, boolean indexingEnabled) addPortletFolder(long userId, long repositoryId, long parentFolderId, String folderName, ServiceContext serviceContext) addPortletFolder(long groupId, long userId, String portletId, long parentFolderId, String folderName, ServiceContext serviceContext) addPortletRepository(long groupId, String portletId, ServiceContext serviceContext) voiddeletePortletFileEntries(long groupId, long folderId) voiddeletePortletFileEntries(long groupId, long folderId, int status) voiddeletePortletFileEntry(long fileEntryId) voiddeletePortletFileEntry(long groupId, long folderId, String fileName) voiddeletePortletFolder(long folderId) voiddeletePortletRepository(long groupId, String portletId) fetchPortletFileEntry(long groupId, long folderId, String fileName) fetchPortletRepository(long groupId, String portletId) getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString) getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString, boolean absoluteURL) getPortletFileEntries(long groupId, long folderId) getPortletFileEntries(long groupId, long folderId, int status) getPortletFileEntries(long groupId, long folderId, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) getPortletFileEntries(long groupId, long folderId, OrderByComparator<FileEntry> orderByComparator) getPortletFileEntries(long groupId, long folderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) intgetPortletFileEntriesCount(long groupId, long folderId) intgetPortletFileEntriesCount(long groupId, long folderId, int status) intgetPortletFileEntriesCount(long groupId, long folderId, String[] mimeTypes, int status) getPortletFileEntry(long fileEntryId) getPortletFileEntry(long groupId, long folderId, String fileName) getPortletFileEntry(String uuid, long groupId) getPortletFileEntryByExternalReferenceCode(String externalReferenceCode, long groupId) getPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString) getPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString, boolean absoluteURL) getPortletFolder(long folderId) getPortletFolder(long repositoryId, long parentFolderId, String folderName) getPortletRepository(long groupId, String portletId) getUniqueFileName(long groupId, long folderId, String fileName) movePortletFileEntryToTrash(long userId, long fileEntryId) movePortletFileEntryToTrash(long groupId, long userId, long folderId, String fileName) movePortletFolder(long groupId, long userId, long folderId, long parentFolderId, ServiceContext serviceContext) voidrestorePortletFileEntryFromTrash(long userId, long fileEntryId) voidrestorePortletFileEntryFromTrash(long groupId, long userId, long folderId, String fileName) searchPortletFileEntries(long repositoryId, SearchContext searchContext)
-
Method Details
-
addPortletFileEntries
void addPortletFileEntries(long groupId, long userId, String className, long classPK, String portletId, long folderId, List<ObjectValuePair<String, InputStream>> inputStreamOVPs) throws PortalException- Throws:
PortalException
-
addPortletFileEntry
FileEntry addPortletFileEntry(long groupId, long userId, String className, long classPK, String portletId, long folderId, byte[] bytes, String fileName, String mimeType, boolean indexingEnabled) throws PortalException - Throws:
PortalException
-
addPortletFileEntry
FileEntry addPortletFileEntry(String externalReferenceCode, long groupId, long userId, String className, long classPK, String portletId, long folderId, File file, String fileName, String mimeType, boolean indexingEnabled) throws PortalException - Throws:
PortalException
-
addPortletFileEntry
FileEntry addPortletFileEntry(String externalReferenceCode, long groupId, long userId, String className, long classPK, String portletId, long folderId, InputStream inputStream, String fileName, String mimeType, boolean indexingEnabled) throws PortalException - Throws:
PortalException
-
addPortletFolder
Folder addPortletFolder(long userId, long repositoryId, long parentFolderId, String folderName, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
addPortletFolder
Folder addPortletFolder(long groupId, long userId, String portletId, long parentFolderId, String folderName, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
addPortletRepository
Repository addPortletRepository(long groupId, String portletId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deletePortletFileEntries
- Throws:
PortalException
-
deletePortletFileEntries
- Throws:
PortalException
-
deletePortletFileEntry
- Throws:
PortalException
-
deletePortletFileEntry
- Throws:
PortalException
-
deletePortletFolder
- Throws:
PortalException
-
deletePortletRepository
- Throws:
PortalException
-
fetchPortletFileEntry
-
fetchPortletRepository
-
getDownloadPortletFileEntryURL
String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString) -
getDownloadPortletFileEntryURL
String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString, boolean absoluteURL) -
getPortletFileEntries
- Throws:
PortalException
-
getPortletFileEntries
List<FileEntry> getPortletFileEntries(long groupId, long folderId, int status) throws PortalException - Throws:
PortalException
-
getPortletFileEntries
List<FileEntry> getPortletFileEntries(long groupId, long folderId, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Throws:
PortalException
-
getPortletFileEntries
List<FileEntry> getPortletFileEntries(long groupId, long folderId, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Throws:
PortalException
-
getPortletFileEntries
List<FileEntry> getPortletFileEntries(long groupId, long folderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Throws:
PortalException
-
getPortletFileEntriesCount
- Throws:
PortalException
-
getPortletFileEntriesCount
- Throws:
PortalException
-
getPortletFileEntriesCount
int getPortletFileEntriesCount(long groupId, long folderId, String[] mimeTypes, int status) throws PortalException - Throws:
PortalException
-
getPortletFileEntry
- Throws:
PortalException
-
getPortletFileEntry
- Throws:
PortalException
-
getPortletFileEntry
- Throws:
PortalException
-
getPortletFileEntryByExternalReferenceCode
FileEntry getPortletFileEntryByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Throws:
PortalException
-
getPortletFileEntryURL
-
getPortletFileEntryURL
String getPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString, boolean absoluteURL) -
getPortletFolder
- Throws:
PortalException
-
getPortletFolder
Folder getPortletFolder(long repositoryId, long parentFolderId, String folderName) throws PortalException - Throws:
PortalException
-
getPortletRepository
- Throws:
PortalException
-
getUniqueFileName
-
movePortletFileEntryToTrash
- Throws:
PortalException
-
movePortletFileEntryToTrash
FileEntry movePortletFileEntryToTrash(long groupId, long userId, long folderId, String fileName) throws PortalException - Throws:
PortalException
-
movePortletFolder
Folder movePortletFolder(long groupId, long userId, long folderId, long parentFolderId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
restorePortletFileEntryFromTrash
- Throws:
PortalException
-
restorePortletFileEntryFromTrash
void restorePortletFileEntryFromTrash(long groupId, long userId, long folderId, String fileName) throws PortalException - Throws:
PortalException
-
searchPortletFileEntries
Hits searchPortletFileEntries(long repositoryId, SearchContext searchContext) throws PortalException - Throws:
PortalException
-