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 portletId,
long folderId,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
|
static FileEntry |
addPortletFileEntry(long groupId,
long userId,
String portletId,
long folderId,
File file,
String fileName)
|
static FileEntry |
addPortletFileEntry(long groupId,
long userId,
String portletId,
long folderId,
InputStream inputStream,
String fileName)
|
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 List<DLFileEntry> |
getPortletFileEntries(long groupId,
long folderId)
|
static List<DLFileEntry> |
getPortletFileEntries(long groupId,
long folderId,
int status)
|
static List<DLFileEntry> |
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 DLFileEntry |
getPortletFileEntry(long fileEntryId)
|
static DLFileEntry |
getPortletFileEntry(long groupId,
long folderId,
String fileName)
|
static PortletFileRepository |
getPortletFileRepository()
|
static DLFolder |
getPortletFolder(long folderId)
|
static DLFolder |
getPortletFolder(long userId,
long repositoryId,
long parentFolderId,
String folderName,
ServiceContext serviceContext)
|
static long |
getPortletRepository(long groupId,
String portletId,
ServiceContext serviceContext)
|
static void |
movePortletFileEntryToTrash(long userId,
long fileEntryId)
|
static void |
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 portletId,
long folderId,
List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPortletFileEntry
public static FileEntry addPortletFileEntry(long groupId,
long userId,
String portletId,
long folderId,
File file,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addPortletFileEntry
public static FileEntry addPortletFileEntry(long groupId,
long userId,
String portletId,
long folderId,
InputStream inputStream,
String fileName)
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
getPortletFileEntries
public static List<DLFileEntry> getPortletFileEntries(long groupId,
long folderId)
throws SystemException
- Throws:
SystemException
getPortletFileEntries
public static List<DLFileEntry> getPortletFileEntries(long groupId,
long folderId,
int status)
throws SystemException
- Throws:
SystemException
getPortletFileEntries
public static List<DLFileEntry> 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 DLFileEntry getPortletFileEntry(long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPortletFileEntry
public static DLFileEntry getPortletFileEntry(long groupId,
long folderId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPortletFileRepository
public static PortletFileRepository getPortletFileRepository()
getPortletFolder
public static DLFolder getPortletFolder(long folderId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPortletFolder
public static DLFolder getPortletFolder(long userId,
long repositoryId,
long parentFolderId,
String folderName,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getPortletRepository
public static long getPortletRepository(long groupId,
String portletId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
movePortletFileEntryToTrash
public static void movePortletFileEntryToTrash(long userId,
long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
movePortletFileEntryToTrash
public static void 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)