com.liferay.portal.portletfilerepository
Class PortletFileRepositoryUtil
java.lang.Object
com.liferay.portal.portletfilerepository.PortletFileRepositoryUtil
public class PortletFileRepositoryUtil
- extends Object
Method Summary |
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,
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 Repository |
addPortletRepository(long groupId,
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,
String fileName)
|
static void |
deletePortletRepository(long groupId,
String portletId)
|
static Repository |
fetchPortletRepository(long groupId,
String portletId)
|
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 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,
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 userId,
long repositoryId,
long parentFolderId,
String folderName,
ServiceContext serviceContext)
|
static Repository |
getPortletRepository(long groupId,
String portletId)
|
static FileEntry |
movePortletFileEntryToTrash(long userId,
long fileEntryId)
|
static FileEntry |
movePortletFileEntryToTrash(long groupId,
long userId,
long folderId,
String fileName)
|
static void |
restorePortletFileEntryFromTrash(long userId,
long fileEntryId)
|
static void |
restorePortletFileEntryFromTrash(long groupId,
long userId,
long folderId,
String fileName)
|
void |
setPortletFileRepository(PortletFileRepository portletFileRepository)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletFileRepositoryUtil
public PortletFileRepositoryUtil()
addPortletFileEntries
public static void addPortletFileEntries(long groupId,
long userId,
String className,
long classPK,
String portletId,
long folderId,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPortletFileEntry
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,
SystemException
- Throws:
PortalException
SystemException
addPortletFileEntry
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,
SystemException
- Throws:
PortalException
SystemException
addPortletFolder
public static Folder addPortletFolder(long userId,
long repositoryId,
long parentFolderId,
String folderName,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPortletRepository
public static Repository addPortletRepository(long groupId,
String portletId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFolder
public static void deleteFolder(long folderId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePortletFileEntries
public static void deletePortletFileEntries(long groupId,
long folderId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePortletFileEntries
public static void deletePortletFileEntries(long groupId,
long folderId,
int status)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePortletFileEntry
public static void deletePortletFileEntry(long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePortletFileEntry
public static void deletePortletFileEntry(long groupId,
long folderId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePortletRepository
public static void deletePortletRepository(long groupId,
String portletId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
fetchPortletRepository
public static Repository fetchPortletRepository(long groupId,
String portletId)
throws SystemException
- Throws:
SystemException
getPortletFileEntries
public static List<FileEntry> getPortletFileEntries(long groupId,
long folderId)
throws SystemException
- Throws:
SystemException
getPortletFileEntries
public static List<FileEntry> getPortletFileEntries(long groupId,
long folderId,
int status)
throws SystemException
- Throws:
SystemException
getPortletFileEntries
public static List<FileEntry> getPortletFileEntries(long groupId,
long folderId,
int status,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getPortletFileEntriesCount
public static int getPortletFileEntriesCount(long groupId,
long folderId)
throws SystemException
- Throws:
SystemException
getPortletFileEntriesCount
public static int getPortletFileEntriesCount(long groupId,
long folderId,
int status)
throws SystemException
- Throws:
SystemException
getPortletFileEntry
public static FileEntry getPortletFileEntry(long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPortletFileEntry
public static FileEntry getPortletFileEntry(long groupId,
long folderId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPortletFileEntry
public static FileEntry getPortletFileEntry(String uuid,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
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
public static PortletFileRepository getPortletFileRepository()
getPortletFolder
public static Folder getPortletFolder(long folderId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPortletFolder
public static Folder getPortletFolder(long userId,
long repositoryId,
long parentFolderId,
String folderName,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPortletRepository
public static Repository getPortletRepository(long groupId,
String portletId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
movePortletFileEntryToTrash
public static FileEntry movePortletFileEntryToTrash(long userId,
long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
movePortletFileEntryToTrash
public static FileEntry movePortletFileEntryToTrash(long groupId,
long userId,
long folderId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
restorePortletFileEntryFromTrash
public static void restorePortletFileEntryFromTrash(long userId,
long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
restorePortletFileEntryFromTrash
public static void restorePortletFileEntryFromTrash(long groupId,
long userId,
long folderId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setPortletFileRepository
public void setPortletFileRepository(PortletFileRepository portletFileRepository)