public class PortletFileRepositoryUtil
extends java.lang.Object
| Constructor and Description |
|---|
PortletFileRepositoryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPortletFileEntries(long groupId,
long userId,
java.lang.String className,
long classPK,
java.lang.String portletId,
long folderId,
java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs) |
static 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) |
static 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) |
static Folder |
addPortletFolder(long userId,
long repositoryId,
long parentFolderId,
java.lang.String folderName,
ServiceContext serviceContext) |
static Repository |
addPortletRepository(long groupId,
java.lang.String portletId,
ServiceContext serviceContext) |
static void |
deleteFolder(long folderId) |
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,
java.lang.String fileName) |
static void |
deletePortletRepository(long groupId,
java.lang.String portletId) |
static Repository |
fetchPortletRepository(long groupId,
java.lang.String portletId) |
static java.util.List<FileEntry> |
getPortletFileEntries(long groupId,
long folderId) |
static java.util.List<FileEntry> |
getPortletFileEntries(long groupId,
long folderId,
int status) |
static java.util.List<FileEntry> |
getPortletFileEntries(long groupId,
long folderId,
int status,
int start,
int end,
OrderByComparator obc) |
static int |
getPortletFileEntriesCount(long groupId,
long folderId) |
static int |
getPortletFileEntriesCount(long groupId,
long folderId,
int status) |
static FileEntry |
getPortletFileEntry(long fileEntryId) |
static FileEntry |
getPortletFileEntry(long groupId,
long folderId,
java.lang.String fileName) |
static FileEntry |
getPortletFileEntry(java.lang.String uuid,
long groupId) |
static java.lang.String |
getPortletFileEntryURL(ThemeDisplay themeDisplay,
FileEntry fileEntry,
java.lang.String queryString) |
static java.lang.String |
getPortletFileEntryURL(ThemeDisplay themeDisplay,
FileEntry fileEntry,
java.lang.String queryString,
boolean absoluteURL) |
static PortletFileRepository |
getPortletFileRepository() |
static Folder |
getPortletFolder(long folderId) |
static Folder |
getPortletFolder(long userId,
long repositoryId,
long parentFolderId,
java.lang.String folderName,
ServiceContext serviceContext) |
static Repository |
getPortletRepository(long groupId,
java.lang.String portletId) |
static FileEntry |
movePortletFileEntryToTrash(long userId,
long fileEntryId) |
static FileEntry |
movePortletFileEntryToTrash(long groupId,
long userId,
long folderId,
java.lang.String fileName) |
static void |
restorePortletFileEntryFromTrash(long userId,
long fileEntryId) |
static void |
restorePortletFileEntryFromTrash(long groupId,
long userId,
long folderId,
java.lang.String fileName) |
void |
setPortletFileRepository(PortletFileRepository portletFileRepository) |
public static void addPortletFileEntries(long groupId,
long userId,
java.lang.String className,
long classPK,
java.lang.String portletId,
long folderId,
java.util.List<ObjectValuePair<java.lang.String,java.io.InputStream>> inputStreamOVPs)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static 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 PortalException, SystemException
PortalExceptionSystemExceptionpublic static 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 PortalException, SystemException
PortalExceptionSystemExceptionpublic static Folder addPortletFolder(long userId, long repositoryId, long parentFolderId, java.lang.String folderName, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static Repository addPortletRepository(long groupId, java.lang.String portletId, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void deleteFolder(long folderId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deletePortletFileEntries(long groupId,
long folderId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deletePortletFileEntries(long groupId,
long folderId,
int status)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deletePortletFileEntry(long fileEntryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deletePortletFileEntry(long groupId,
long folderId,
java.lang.String fileName)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void deletePortletRepository(long groupId,
java.lang.String portletId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static Repository fetchPortletRepository(long groupId, java.lang.String portletId) throws SystemException
SystemExceptionpublic static java.util.List<FileEntry> getPortletFileEntries(long groupId, long folderId) throws SystemException
SystemExceptionpublic static java.util.List<FileEntry> getPortletFileEntries(long groupId, long folderId, int status) throws SystemException
SystemExceptionpublic static java.util.List<FileEntry> getPortletFileEntries(long groupId, long folderId, int status, int start, int end, OrderByComparator obc) throws SystemException
SystemExceptionpublic static int getPortletFileEntriesCount(long groupId,
long folderId)
throws SystemException
SystemExceptionpublic static int getPortletFileEntriesCount(long groupId,
long folderId,
int status)
throws SystemException
SystemExceptionpublic static FileEntry getPortletFileEntry(long fileEntryId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static FileEntry getPortletFileEntry(long groupId, long folderId, java.lang.String fileName) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static FileEntry getPortletFileEntry(java.lang.String uuid, long groupId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static java.lang.String getPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, java.lang.String queryString)
public static java.lang.String getPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, java.lang.String queryString, boolean absoluteURL)
public static PortletFileRepository getPortletFileRepository()
public static Folder getPortletFolder(long folderId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static Folder getPortletFolder(long userId, long repositoryId, long parentFolderId, java.lang.String folderName, ServiceContext serviceContext) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static Repository getPortletRepository(long groupId, java.lang.String portletId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static FileEntry movePortletFileEntryToTrash(long userId, long fileEntryId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static FileEntry movePortletFileEntryToTrash(long groupId, long userId, long folderId, java.lang.String fileName) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void restorePortletFileEntryFromTrash(long userId,
long fileEntryId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void restorePortletFileEntryFromTrash(long groupId,
long userId,
long folderId,
java.lang.String fileName)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic void setPortletFileRepository(PortletFileRepository portletFileRepository)