Class PortletFileRepositoryUtil
Object
com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil
- Author:
- Eudaldo Alonso, Alexander Chow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPortletFileEntries(long groupId, long userId, String className, long classPK, String portletId, long folderId, List<ObjectValuePair<String, InputStream>> inputStreamOVPs) static FileEntryaddPortletFileEntry(long groupId, long userId, String className, long classPK, String portletId, long folderId, byte[] bytes, String fileName, String mimeType, boolean indexingEnabled) static FileEntryaddPortletFileEntry(String externalReferenceCode, long groupId, long userId, String className, long classPK, String portletId, long folderId, File file, String fileName, String mimeType, boolean indexingEnabled) static FileEntryaddPortletFileEntry(String externalReferenceCode, long groupId, long userId, String className, long classPK, String portletId, long folderId, InputStream inputStream, String fileName, String mimeType, boolean indexingEnabled) static FolderaddPortletFolder(long userId, long repositoryId, long parentFolderId, String folderName, ServiceContext serviceContext) static FolderaddPortletFolder(long groupId, long userId, String portletId, long parentFolderId, String folderName, ServiceContext serviceContext) static RepositoryaddPortletRepository(long groupId, String portletId, ServiceContext serviceContext) static voiddeletePortletFileEntries(long groupId, long folderId) static voiddeletePortletFileEntries(long groupId, long folderId, int status) static voiddeletePortletFileEntry(long fileEntryId) static voiddeletePortletFileEntry(long groupId, long folderId, String fileName) static voiddeletePortletFolder(long folderId) static voiddeletePortletRepository(long groupId, String portletId) static FileEntryfetchPortletFileEntry(long groupId, long folderId, String fileName) static RepositoryfetchPortletRepository(long groupId, String portletId) static StringgetDownloadPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString) static StringgetDownloadPortletFileEntryURL(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) static intgetPortletFileEntriesCount(long groupId, long folderId) static intgetPortletFileEntriesCount(long groupId, long folderId, int status) static intgetPortletFileEntriesCount(long groupId, long folderId, String[] mimeTypes, int status) static FileEntrygetPortletFileEntry(long fileEntryId) static FileEntrygetPortletFileEntry(long groupId, long folderId, String fileName) static FileEntrygetPortletFileEntry(String uuid, long groupId) static FileEntrygetPortletFileEntryByExternalReferenceCode(String externalReferenceCode, long groupId) static StringgetPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString) static StringgetPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString, boolean absoluteURL) static PortletFileRepositorystatic FoldergetPortletFolder(long folderId) static FoldergetPortletFolder(long repositoryId, long parentFolderId, String folderName) static RepositorygetPortletRepository(long groupId, String portletId) static StringgetUniqueFileName(long groupId, long folderId, String fileName) static FileEntrymovePortletFileEntryToTrash(long userId, long fileEntryId) static FileEntrymovePortletFileEntryToTrash(long groupId, long userId, long folderId, String fileName) static FoldermovePortletFolder(long groupId, long userId, long folderId, long parentFolderId, ServiceContext serviceContext) static voidrestorePortletFileEntryFromTrash(long userId, long fileEntryId) static voidrestorePortletFileEntryFromTrash(long groupId, long userId, long folderId, String fileName) static HitssearchPortletFileEntries(long repositoryId, SearchContext searchContext)
-
Constructor Details
-
PortletFileRepositoryUtil
public PortletFileRepositoryUtil()
-
-
Method Details
-
addPortletFileEntries
public static void addPortletFileEntries(long groupId, long userId, String className, long classPK, String portletId, long folderId, List<ObjectValuePair<String, InputStream>> inputStreamOVPs) throws PortalException- Throws:
PortalException
-
addPortletFileEntry
public static 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
public static 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
public static 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
public static Folder addPortletFolder(long userId, long repositoryId, long parentFolderId, String folderName, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
addPortletFolder
public static Folder addPortletFolder(long groupId, long userId, String portletId, long parentFolderId, String folderName, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
addPortletRepository
public static Repository addPortletRepository(long groupId, String portletId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deletePortletFileEntries
- Throws:
PortalException
-
deletePortletFileEntries
public static void deletePortletFileEntries(long groupId, long folderId, int status) throws PortalException - Throws:
PortalException
-
deletePortletFileEntry
- Throws:
PortalException
-
deletePortletFileEntry
public static void deletePortletFileEntry(long groupId, long folderId, String fileName) throws PortalException - Throws:
PortalException
-
deletePortletFolder
- Throws:
PortalException
-
deletePortletRepository
- Throws:
PortalException
-
fetchPortletFileEntry
-
fetchPortletRepository
-
getDownloadPortletFileEntryURL
public static String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString) -
getDownloadPortletFileEntryURL
public static String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString, boolean absoluteURL) -
getPortletFileEntries
public static List<FileEntry> getPortletFileEntries(long groupId, long folderId) throws PortalException - Throws:
PortalException
-
getPortletFileEntries
public static List<FileEntry> getPortletFileEntries(long groupId, long folderId, int status) throws PortalException - Throws:
PortalException
-
getPortletFileEntries
public static List<FileEntry> getPortletFileEntries(long groupId, long folderId, int status, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Throws:
PortalException
-
getPortletFileEntries
public static List<FileEntry> getPortletFileEntries(long groupId, long folderId, OrderByComparator<FileEntry> orderByComparator) throws PortalException - Throws:
PortalException
-
getPortletFileEntries
public static 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
public static int getPortletFileEntriesCount(long groupId, long folderId, int status) throws PortalException - Throws:
PortalException
-
getPortletFileEntriesCount
public static int getPortletFileEntriesCount(long groupId, long folderId, String[] mimeTypes, int status) throws PortalException - Throws:
PortalException
-
getPortletFileEntry
- Throws:
PortalException
-
getPortletFileEntry
public static FileEntry getPortletFileEntry(long groupId, long folderId, String fileName) throws PortalException - Throws:
PortalException
-
getPortletFileEntry
- Throws:
PortalException
-
getPortletFileEntryByExternalReferenceCode
public static FileEntry getPortletFileEntryByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Throws:
PortalException
-
getPortletFileEntryURL
public static String getPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString) -
getPortletFileEntryURL
public static String getPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString, boolean absoluteURL) -
getPortletFileRepository
-
getPortletFolder
- Throws:
PortalException
-
getPortletFolder
public static Folder getPortletFolder(long repositoryId, long parentFolderId, String folderName) throws PortalException - Throws:
PortalException
-
getPortletRepository
public static Repository getPortletRepository(long groupId, String portletId) throws PortalException - Throws:
PortalException
-
getUniqueFileName
-
movePortletFileEntryToTrash
public static FileEntry movePortletFileEntryToTrash(long userId, long fileEntryId) throws PortalException - Throws:
PortalException
-
movePortletFileEntryToTrash
public static FileEntry movePortletFileEntryToTrash(long groupId, long userId, long folderId, String fileName) throws PortalException - Throws:
PortalException
-
movePortletFolder
public static Folder movePortletFolder(long groupId, long userId, long folderId, long parentFolderId, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
restorePortletFileEntryFromTrash
public static void restorePortletFileEntryFromTrash(long userId, long fileEntryId) throws PortalException - Throws:
PortalException
-
restorePortletFileEntryFromTrash
public static void restorePortletFileEntryFromTrash(long groupId, long userId, long folderId, String fileName) throws PortalException - Throws:
PortalException
-
searchPortletFileEntries
public static Hits searchPortletFileEntries(long repositoryId, SearchContext searchContext) throws PortalException - Throws:
PortalException
-