com.liferay.portal.portletfilerepository
Class PortletFileRepositoryImpl
java.lang.Object
com.liferay.portal.portletfilerepository.PortletFileRepositoryImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
public class PortletFileRepositoryImpl
- extends Object
- implements com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletFileRepositoryImpl
public PortletFileRepositoryImpl()
addPortletFileEntries
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
- Specified by:
addPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
addPortletFileEntry
public 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
- Specified by:
addPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
addPortletFileEntry
public 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
- Specified by:
addPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
addPortletFileEntry
public 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
- Specified by:
addPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
addPortletFolder
public 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
- Specified by:
addPortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
addPortletFolder
public 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
- Specified by:
addPortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
addPortletRepository
public 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
- Specified by:
addPortletRepository in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
deleteFolder
@Deprecated
public void deleteFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException
- Deprecated. As of 7.0.0, replaced by
deletePortletFolder(long)
- Specified by:
deleteFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
deletePortletFileEntries
public void deletePortletFileEntries(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
deletePortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
deletePortletFileEntries
public void deletePortletFileEntries(long groupId,
long folderId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
deletePortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
deletePortletFileEntry
public void deletePortletFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
deletePortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
deletePortletFileEntry
public void deletePortletFileEntry(long groupId,
long folderId,
String fileName)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
deletePortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
deletePortletFolder
public void deletePortletFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
deletePortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
deletePortletRepository
public void deletePortletRepository(long groupId,
String portletId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
deletePortletRepository in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
fetchPortletRepository
public com.liferay.portal.kernel.model.Repository fetchPortletRepository(long groupId,
String portletId)
- Specified by:
fetchPortletRepository in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
getDownloadPortletFileEntryURL
public String getDownloadPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
String queryString)
- Specified by:
getDownloadPortletFileEntryURL in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
getDownloadPortletFileEntryURL
public String getDownloadPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
String queryString,
boolean absoluteURL)
- Specified by:
getDownloadPortletFileEntryURL in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
getPortletFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getPortletFileEntries(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPortletFileEntries
public List<com.liferay.portal.kernel.repository.model.FileEntry> getPortletFileEntries(long groupId,
long folderId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPortletFileEntries
public 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
- Specified by:
getPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPortletFileEntries
public 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
- Specified by:
getPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPortletFileEntriesCount
public int getPortletFileEntriesCount(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getPortletFileEntriesCount in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPortletFileEntriesCount
public int getPortletFileEntriesCount(long groupId,
long folderId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getPortletFileEntriesCount in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPortletFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry getPortletFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPortletFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry getPortletFileEntry(long groupId,
long folderId,
String fileName)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPortletFileEntry
public com.liferay.portal.kernel.repository.model.FileEntry getPortletFileEntry(String uuid,
long groupId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getPortletFileEntry in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPortletFileEntryURL
public String getPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
String queryString)
- Specified by:
getPortletFileEntryURL in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
getPortletFileEntryURL
public String getPortletFileEntryURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
String queryString,
boolean absoluteURL)
- Specified by:
getPortletFileEntryURL in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
getPortletFolder
public com.liferay.portal.kernel.repository.model.Folder getPortletFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getPortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPortletFolder
public com.liferay.portal.kernel.repository.model.Folder getPortletFolder(long repositoryId,
long parentFolderId,
String folderName)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getPortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getPortletRepository
public com.liferay.portal.kernel.model.Repository getPortletRepository(long groupId,
String portletId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
getPortletRepository in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
getUniqueFileName
public String getUniqueFileName(long groupId,
long folderId,
String fileName)
- Specified by:
getUniqueFileName in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
movePortletFileEntryToTrash
public com.liferay.portal.kernel.repository.model.FileEntry movePortletFileEntryToTrash(long userId,
long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
movePortletFileEntryToTrash in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
movePortletFileEntryToTrash
public com.liferay.portal.kernel.repository.model.FileEntry movePortletFileEntryToTrash(long groupId,
long userId,
long folderId,
String fileName)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
movePortletFileEntryToTrash in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
movePortletFolder
public 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
- Specified by:
movePortletFolder in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
restorePortletFileEntryFromTrash
public void restorePortletFileEntryFromTrash(long userId,
long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
restorePortletFileEntryFromTrash in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
restorePortletFileEntryFromTrash
public void restorePortletFileEntryFromTrash(long groupId,
long userId,
long folderId,
String fileName)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
restorePortletFileEntryFromTrash in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException
searchPortletFileEntries
public com.liferay.portal.kernel.search.Hits searchPortletFileEntries(long repositoryId,
com.liferay.portal.kernel.search.SearchContext searchContext)
throws com.liferay.portal.kernel.exception.PortalException
- Specified by:
searchPortletFileEntries in interface com.liferay.portal.kernel.portletfilerepository.PortletFileRepository
- Throws:
com.liferay.portal.kernel.exception.PortalException