@ProviderType
public class PortletFileRepositoryUtil
extends Object
Constructor and Description |
---|
PortletFileRepositoryUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addPortletFileEntries(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs) |
static FileEntry |
addPortletFileEntry(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
byte[] bytes,
String fileName,
String mimeType,
boolean indexingEnabled) |
static FileEntry |
addPortletFileEntry(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
File file,
String fileName,
String mimeType,
boolean indexingEnabled) |
static FileEntry |
addPortletFileEntry(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
InputStream inputStream,
String fileName,
String mimeType,
boolean indexingEnabled) |
static Folder |
addPortletFolder(long userId,
long repositoryId,
long parentFolderId,
String folderName,
ServiceContext serviceContext) |
static Folder |
addPortletFolder(long groupId,
long userId,
String portletId,
long parentFolderId,
String folderName,
ServiceContext serviceContext) |
static Repository |
addPortletRepository(long groupId,
String portletId,
ServiceContext serviceContext) |
static void |
deletePortletFileEntries(long groupId,
long folderId) |
static void |
deletePortletFileEntries(long groupId,
long folderId,
int status) |
static void |
deletePortletFileEntry(long fileEntryId) |
static void |
deletePortletFileEntry(long groupId,
long folderId,
String fileName) |
static void |
deletePortletFolder(long folderId) |
static void |
deletePortletRepository(long groupId,
String portletId) |
static FileEntry |
fetchPortletFileEntry(long groupId,
long folderId,
String fileName) |
static Repository |
fetchPortletRepository(long groupId,
String portletId) |
static String |
getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay,
FileEntry fileEntry,
String queryString) |
static String |
getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay,
FileEntry fileEntry,
String queryString,
boolean absoluteURL) |
static List<FileEntry> |
getPortletFileEntries(long groupId,
long folderId) |
static List<FileEntry> |
getPortletFileEntries(long groupId,
long folderId,
int status) |
static List<FileEntry> |
getPortletFileEntries(long groupId,
long folderId,
int status,
int start,
int end,
OrderByComparator<FileEntry> obc) |
static List<FileEntry> |
getPortletFileEntries(long groupId,
long folderId,
OrderByComparator<FileEntry> obc) |
static List<FileEntry> |
getPortletFileEntries(long groupId,
long folderId,
String[] mimeTypes,
int status,
int start,
int end,
OrderByComparator<FileEntry> obc) |
static int |
getPortletFileEntriesCount(long groupId,
long folderId) |
static int |
getPortletFileEntriesCount(long groupId,
long folderId,
int status) |
static int |
getPortletFileEntriesCount(long groupId,
long folderId,
String[] mimeTypes,
int status) |
static FileEntry |
getPortletFileEntry(long fileEntryId) |
static FileEntry |
getPortletFileEntry(long groupId,
long folderId,
String fileName) |
static FileEntry |
getPortletFileEntry(String uuid,
long groupId) |
static String |
getPortletFileEntryURL(ThemeDisplay themeDisplay,
FileEntry fileEntry,
String queryString) |
static String |
getPortletFileEntryURL(ThemeDisplay themeDisplay,
FileEntry fileEntry,
String queryString,
boolean absoluteURL) |
static PortletFileRepository |
getPortletFileRepository() |
static Folder |
getPortletFolder(long folderId) |
static Folder |
getPortletFolder(long repositoryId,
long parentFolderId,
String folderName) |
static Repository |
getPortletRepository(long groupId,
String portletId) |
static String |
getUniqueFileName(long groupId,
long folderId,
String fileName) |
static FileEntry |
movePortletFileEntryToTrash(long userId,
long fileEntryId) |
static FileEntry |
movePortletFileEntryToTrash(long groupId,
long userId,
long folderId,
String fileName) |
static Folder |
movePortletFolder(long groupId,
long userId,
long folderId,
long parentFolderId,
ServiceContext serviceContext) |
static void |
restorePortletFileEntryFromTrash(long userId,
long fileEntryId) |
static void |
restorePortletFileEntryFromTrash(long groupId,
long userId,
long folderId,
String fileName) |
static Hits |
searchPortletFileEntries(long repositoryId,
SearchContext searchContext) |
void |
setPortletFileRepository(PortletFileRepository portletFileRepository) |
public static void addPortletFileEntries(long groupId, long userId, String className, long classPK, String portletId, long folderId, List<ObjectValuePair<String,InputStream>> inputStreamOVPs) throws PortalException
PortalException
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
PortalException
public static FileEntry addPortletFileEntry(long groupId, long userId, String className, long classPK, String portletId, long folderId, File file, String fileName, String mimeType, boolean indexingEnabled) throws PortalException
PortalException
public static FileEntry addPortletFileEntry(long groupId, long userId, String className, long classPK, String portletId, long folderId, InputStream inputStream, String fileName, String mimeType, boolean indexingEnabled) throws PortalException
PortalException
public static Folder addPortletFolder(long userId, long repositoryId, long parentFolderId, String folderName, ServiceContext serviceContext) throws PortalException
PortalException
public static Folder addPortletFolder(long groupId, long userId, String portletId, long parentFolderId, String folderName, ServiceContext serviceContext) throws PortalException
PortalException
public static Repository addPortletRepository(long groupId, String portletId, ServiceContext serviceContext) throws PortalException
PortalException
public static void deletePortletFileEntries(long groupId, long folderId) throws PortalException
PortalException
public static void deletePortletFileEntries(long groupId, long folderId, int status) throws PortalException
PortalException
public static void deletePortletFileEntry(long fileEntryId) throws PortalException
PortalException
public static void deletePortletFileEntry(long groupId, long folderId, String fileName) throws PortalException
PortalException
public static void deletePortletFolder(long folderId) throws PortalException
PortalException
public static void deletePortletRepository(long groupId, String portletId) throws PortalException
PortalException
public static FileEntry fetchPortletFileEntry(long groupId, long folderId, String fileName)
public static Repository fetchPortletRepository(long groupId, String portletId)
public static String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString)
public static String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString, boolean absoluteURL)
public static List<FileEntry> getPortletFileEntries(long groupId, long folderId) throws PortalException
PortalException
public static List<FileEntry> getPortletFileEntries(long groupId, long folderId, int status) throws PortalException
PortalException
public static List<FileEntry> getPortletFileEntries(long groupId, long folderId, int status, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
PortalException
public static List<FileEntry> getPortletFileEntries(long groupId, long folderId, OrderByComparator<FileEntry> obc) throws PortalException
PortalException
public static List<FileEntry> getPortletFileEntries(long groupId, long folderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
PortalException
public static int getPortletFileEntriesCount(long groupId, long folderId) throws PortalException
PortalException
public static int getPortletFileEntriesCount(long groupId, long folderId, int status) throws PortalException
PortalException
public static int getPortletFileEntriesCount(long groupId, long folderId, String[] mimeTypes, int status) throws PortalException
PortalException
public static FileEntry getPortletFileEntry(long fileEntryId) throws PortalException
PortalException
public static FileEntry getPortletFileEntry(long groupId, long folderId, String fileName) throws PortalException
PortalException
public static FileEntry getPortletFileEntry(String uuid, long groupId) throws PortalException
PortalException
public static String getPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString)
public static String getPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString, boolean absoluteURL)
public static PortletFileRepository getPortletFileRepository()
public static Folder getPortletFolder(long folderId) throws PortalException
PortalException
public static Folder getPortletFolder(long repositoryId, long parentFolderId, String folderName) throws PortalException
PortalException
public static Repository getPortletRepository(long groupId, String portletId) throws PortalException
PortalException
public static String getUniqueFileName(long groupId, long folderId, String fileName)
public static FileEntry movePortletFileEntryToTrash(long userId, long fileEntryId) throws PortalException
PortalException
public static FileEntry movePortletFileEntryToTrash(long groupId, long userId, long folderId, String fileName) throws PortalException
PortalException
public static Folder movePortletFolder(long groupId, long userId, long folderId, long parentFolderId, ServiceContext serviceContext) throws PortalException
PortalException
public static void restorePortletFileEntryFromTrash(long userId, long fileEntryId) throws PortalException
PortalException
public static void restorePortletFileEntryFromTrash(long groupId, long userId, long folderId, String fileName) throws PortalException
PortalException
public static Hits searchPortletFileEntries(long repositoryId, SearchContext searchContext) throws PortalException
PortalException
public void setPortletFileRepository(PortletFileRepository portletFileRepository)