public class PortletFileRepositoryImpl
extends java.lang.Object
implements com.liferay.portal.portletfilerepository.PortletFileRepository
| Constructor and Description |
|---|
PortletFileRepositoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPortletFileEntries(long groupId,
long userId,
java.lang.String className,
long classPK,
java.lang.String portletId,
long folderId,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs) |
com.liferay.portal.kernel.repository.model.FileEntry |
addPortletFileEntry(long groupId,
long userId,
java.lang.String className,
long classPK,
java.lang.String portletId,
long folderId,
java.io.File file,
java.lang.String fileName,
java.lang.String mimeType,
boolean indexingEnabled) |
com.liferay.portal.kernel.repository.model.FileEntry |
addPortletFileEntry(long groupId,
long userId,
java.lang.String className,
long classPK,
java.lang.String portletId,
long folderId,
java.io.InputStream inputStream,
java.lang.String fileName,
java.lang.String mimeType,
boolean indexingEnabled) |
com.liferay.portal.kernel.repository.model.Folder |
addPortletFolder(long userId,
long repositoryId,
long parentFolderId,
java.lang.String folderName,
com.liferay.portal.service.ServiceContext serviceContext) |
com.liferay.portal.model.Repository |
addPortletRepository(long groupId,
java.lang.String portletId,
com.liferay.portal.service.ServiceContext serviceContext) |
void |
deleteFolder(long folderId) |
void |
deletePortletFileEntries(long groupId,
long folderId) |
void |
deletePortletFileEntries(long groupId,
long folderId,
int status) |
void |
deletePortletFileEntry(long fileEntryId) |
void |
deletePortletFileEntry(long groupId,
long folderId,
java.lang.String fileName) |
void |
deletePortletRepository(long groupId,
java.lang.String portletId) |
com.liferay.portal.model.Repository |
fetchPortletRepository(long groupId,
java.lang.String portletId) |
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getPortletFileEntries(long groupId,
long folderId) |
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getPortletFileEntries(long groupId,
long folderId,
int status) |
java.util.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 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,
java.lang.String fileName) |
com.liferay.portal.kernel.repository.model.FileEntry |
getPortletFileEntry(java.lang.String uuid,
long groupId) |
java.lang.String |
getPortletFileEntryURL(com.liferay.portal.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String queryString) |
java.lang.String |
getPortletFileEntryURL(com.liferay.portal.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.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,
java.lang.String folderName) |
com.liferay.portal.model.Repository |
getPortletRepository(long groupId,
java.lang.String portletId) |
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,
java.lang.String fileName) |
void |
restorePortletFileEntryFromTrash(long userId,
long fileEntryId) |
void |
restorePortletFileEntryFromTrash(long groupId,
long userId,
long folderId,
java.lang.String fileName) |
protected java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
toFileEntries(java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> dlFileEntries) |
public void addPortletFileEntries(long groupId,
long userId,
java.lang.String className,
long classPK,
java.lang.String portletId,
long folderId,
java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
addPortletFileEntries in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry addPortletFileEntry(long groupId,
long userId,
java.lang.String className,
long classPK,
java.lang.String portletId,
long folderId,
java.io.File file,
java.lang.String fileName,
java.lang.String mimeType,
boolean indexingEnabled)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
addPortletFileEntry in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry addPortletFileEntry(long groupId,
long userId,
java.lang.String className,
long classPK,
java.lang.String portletId,
long folderId,
java.io.InputStream inputStream,
java.lang.String fileName,
java.lang.String mimeType,
boolean indexingEnabled)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
addPortletFileEntry in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.Folder addPortletFolder(long userId,
long repositoryId,
long parentFolderId,
java.lang.String folderName,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
addPortletFolder in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.model.Repository addPortletRepository(long groupId,
java.lang.String portletId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
addPortletRepository in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deleteFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deleteFolder in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deletePortletFileEntries(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deletePortletFileEntries in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deletePortletFileEntries(long groupId,
long folderId,
int status)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deletePortletFileEntries in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deletePortletFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deletePortletFileEntry in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deletePortletFileEntry(long groupId,
long folderId,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deletePortletFileEntry in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deletePortletRepository(long groupId,
java.lang.String portletId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deletePortletRepository in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.model.Repository fetchPortletRepository(long groupId,
java.lang.String portletId)
throws com.liferay.portal.kernel.exception.SystemException
fetchPortletRepository in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getPortletFileEntries(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.SystemException
getPortletFileEntries in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getPortletFileEntries(long groupId,
long folderId,
int status)
throws com.liferay.portal.kernel.exception.SystemException
getPortletFileEntries in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.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 obc)
throws com.liferay.portal.kernel.exception.SystemException
getPortletFileEntries in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.SystemExceptionpublic int getPortletFileEntriesCount(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.SystemException
getPortletFileEntriesCount in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.SystemExceptionpublic int getPortletFileEntriesCount(long groupId,
long folderId,
int status)
throws com.liferay.portal.kernel.exception.SystemException
getPortletFileEntriesCount in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getPortletFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getPortletFileEntry in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getPortletFileEntry(long groupId,
long folderId,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getPortletFileEntry in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getPortletFileEntry(java.lang.String uuid,
long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getPortletFileEntry in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getPortletFileEntryURL(com.liferay.portal.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String queryString)
getPortletFileEntryURL in interface com.liferay.portal.portletfilerepository.PortletFileRepositorypublic java.lang.String getPortletFileEntryURL(com.liferay.portal.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
java.lang.String queryString,
boolean absoluteURL)
getPortletFileEntryURL in interface com.liferay.portal.portletfilerepository.PortletFileRepositorypublic com.liferay.portal.kernel.repository.model.Folder getPortletFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getPortletFolder in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.Folder getPortletFolder(long repositoryId,
long parentFolderId,
java.lang.String folderName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getPortletFolder in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.model.Repository getPortletRepository(long groupId,
java.lang.String portletId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getPortletRepository in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry movePortletFileEntryToTrash(long userId,
long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
movePortletFileEntryToTrash in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry movePortletFileEntryToTrash(long groupId,
long userId,
long folderId,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
movePortletFileEntryToTrash in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void restorePortletFileEntryFromTrash(long userId,
long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
restorePortletFileEntryFromTrash in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void restorePortletFileEntryFromTrash(long groupId,
long userId,
long folderId,
java.lang.String fileName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
restorePortletFileEntryFromTrash in interface com.liferay.portal.portletfilerepository.PortletFileRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> toFileEntries(java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> dlFileEntries)