public class PortletFileRepositoryImpl extends Object implements com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
| Constructor and Description |
|---|
PortletFileRepositoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPortletFileEntries(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs) |
com.liferay.portal.kernel.repository.model.FileEntry |
addPortletFileEntry(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
byte[] bytes,
String fileName,
String mimeType,
boolean indexingEnabled) |
com.liferay.portal.kernel.repository.model.FileEntry |
addPortletFileEntry(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
File file,
String fileName,
String mimeType,
boolean indexingEnabled) |
com.liferay.portal.kernel.repository.model.FileEntry |
addPortletFileEntry(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
InputStream inputStream,
String fileName,
String mimeType,
boolean indexingEnabled) |
com.liferay.portal.kernel.repository.model.Folder |
addPortletFolder(long userId,
long repositoryId,
long parentFolderId,
String folderName,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.Folder |
addPortletFolder(long groupId,
long userId,
String portletId,
long parentFolderId,
String folderName,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.model.Repository |
addPortletRepository(long groupId,
String portletId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
deleteFolder(long folderId)
Deprecated.
As of 7.0.0, replaced by
deletePortletFolder(long) |
void |
deletePortletFileEntries(long groupId,
long folderId) |
void |
deletePortletFileEntries(long groupId,
long folderId,
int status) |
void |
deletePortletFileEntry(long fileEntryId) |
void |
deletePortletFileEntry(long groupId,
long folderId,
String fileName) |
void |
deletePortletFolder(long folderId) |
void |
deletePortletRepository(long groupId,
String portletId) |
com.liferay.portal.kernel.model.Repository |
fetchPortletRepository(long groupId,
String portletId) |
String |
getDownloadPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
String queryString) |
String |
getDownloadPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
String queryString,
boolean absoluteURL) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getPortletFileEntries(long groupId,
long folderId) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getPortletFileEntries(long groupId,
long folderId,
int status) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getPortletFileEntries(long groupId,
long folderId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) |
List<com.liferay.portal.kernel.repository.model.FileEntry> |
getPortletFileEntries(long groupId,
long folderId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) |
int |
getPortletFileEntriesCount(long groupId,
long folderId) |
int |
getPortletFileEntriesCount(long groupId,
long folderId,
int status) |
com.liferay.portal.kernel.repository.model.FileEntry |
getPortletFileEntry(long fileEntryId) |
com.liferay.portal.kernel.repository.model.FileEntry |
getPortletFileEntry(long groupId,
long folderId,
String fileName) |
com.liferay.portal.kernel.repository.model.FileEntry |
getPortletFileEntry(String uuid,
long groupId) |
String |
getPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
String queryString) |
String |
getPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
String queryString,
boolean absoluteURL) |
com.liferay.portal.kernel.repository.model.Folder |
getPortletFolder(long folderId) |
com.liferay.portal.kernel.repository.model.Folder |
getPortletFolder(long repositoryId,
long parentFolderId,
String folderName) |
com.liferay.portal.kernel.model.Repository |
getPortletRepository(long groupId,
String portletId) |
String |
getUniqueFileName(long groupId,
long folderId,
String fileName) |
com.liferay.portal.kernel.repository.model.FileEntry |
movePortletFileEntryToTrash(long userId,
long fileEntryId) |
com.liferay.portal.kernel.repository.model.FileEntry |
movePortletFileEntryToTrash(long groupId,
long userId,
long folderId,
String fileName) |
com.liferay.portal.kernel.repository.model.Folder |
movePortletFolder(long groupId,
long userId,
long folderId,
long parentFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
restorePortletFileEntryFromTrash(long userId,
long fileEntryId) |
void |
restorePortletFileEntryFromTrash(long groupId,
long userId,
long folderId,
String fileName) |
com.liferay.portal.kernel.search.Hits |
searchPortletFileEntries(long repositoryId,
com.liferay.portal.kernel.search.SearchContext searchContext) |
public void addPortletFileEntries(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
List<com.liferay.portal.kernel.util.ObjectValuePair<String,InputStream>> inputStreamOVPs)
throws com.liferay.portal.kernel.exception.PortalException
addPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry addPortletFileEntry(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
byte[] bytes,
String fileName,
String mimeType,
boolean indexingEnabled)
throws com.liferay.portal.kernel.exception.PortalException
addPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry addPortletFileEntry(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
File file,
String fileName,
String mimeType,
boolean indexingEnabled)
throws com.liferay.portal.kernel.exception.PortalException
addPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry addPortletFileEntry(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
InputStream inputStream,
String fileName,
String mimeType,
boolean indexingEnabled)
throws com.liferay.portal.kernel.exception.PortalException
addPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.Folder addPortletFolder(long userId,
long repositoryId,
long parentFolderId,
String folderName,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addPortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.Folder addPortletFolder(long groupId,
long userId,
String portletId,
long parentFolderId,
String folderName,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addPortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.Repository addPortletRepository(long groupId,
String portletId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
addPortletRepository in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalException@Deprecated public void deleteFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException
deletePortletFolder(long)deleteFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deletePortletFileEntries(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException
deletePortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deletePortletFileEntries(long groupId,
long folderId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
deletePortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deletePortletFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
deletePortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deletePortletFileEntry(long groupId,
long folderId,
String fileName)
throws com.liferay.portal.kernel.exception.PortalException
deletePortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deletePortletFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException
deletePortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void deletePortletRepository(long groupId,
String portletId)
throws com.liferay.portal.kernel.exception.PortalException
deletePortletRepository in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.Repository fetchPortletRepository(long groupId,
String portletId)
fetchPortletRepository in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorypublic String getDownloadPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, String queryString)
getDownloadPortletFileEntryURL in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorypublic String getDownloadPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, String queryString, boolean absoluteURL)
getDownloadPortletFileEntryURL in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorypublic List<com.liferay.portal.kernel.repository.model.FileEntry> getPortletFileEntries(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
getPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.FileEntry> getPortletFileEntries(long groupId, long folderId, int status) throws com.liferay.portal.kernel.exception.PortalException
getPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.FileEntry> getPortletFileEntries(long groupId, long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) throws com.liferay.portal.kernel.exception.PortalException
getPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.repository.model.FileEntry> getPortletFileEntries(long groupId, long folderId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.repository.model.FileEntry> obc) throws com.liferay.portal.kernel.exception.PortalException
getPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getPortletFileEntriesCount(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException
getPortletFileEntriesCount in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic int getPortletFileEntriesCount(long groupId,
long folderId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
getPortletFileEntriesCount in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getPortletFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
getPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getPortletFileEntry(long groupId,
long folderId,
String fileName)
throws com.liferay.portal.kernel.exception.PortalException
getPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getPortletFileEntry(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic String getPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, String queryString)
getPortletFileEntryURL in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorypublic String getPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, String queryString, boolean absoluteURL)
getPortletFileEntryURL in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorypublic com.liferay.portal.kernel.repository.model.Folder getPortletFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException
getPortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.Folder getPortletFolder(long repositoryId,
long parentFolderId,
String folderName)
throws com.liferay.portal.kernel.exception.PortalException
getPortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.Repository getPortletRepository(long groupId,
String portletId)
throws com.liferay.portal.kernel.exception.PortalException
getPortletRepository in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic String getUniqueFileName(long groupId, long folderId, String fileName)
getUniqueFileName in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorypublic com.liferay.portal.kernel.repository.model.FileEntry movePortletFileEntryToTrash(long userId,
long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
movePortletFileEntryToTrash in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry movePortletFileEntryToTrash(long groupId,
long userId,
long folderId,
String fileName)
throws com.liferay.portal.kernel.exception.PortalException
movePortletFileEntryToTrash in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.Folder movePortletFolder(long groupId,
long userId,
long folderId,
long parentFolderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
movePortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void restorePortletFileEntryFromTrash(long userId,
long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
restorePortletFileEntryFromTrash in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic void restorePortletFileEntryFromTrash(long groupId,
long userId,
long folderId,
String fileName)
throws com.liferay.portal.kernel.exception.PortalException
restorePortletFileEntryFromTrash in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.search.Hits searchPortletFileEntries(long repositoryId,
com.liferay.portal.kernel.search.SearchContext searchContext)
throws com.liferay.portal.kernel.exception.PortalException
searchPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalException