Liferay 6.2.0-ce-m3

com.liferay.portal.portletfilerepository
Class PortletFileRepositoryUtil

java.lang.Object
  extended by com.liferay.portal.portletfilerepository.PortletFileRepositoryUtil

public class PortletFileRepositoryUtil
extends Object


Constructor Summary
PortletFileRepositoryUtil()
           
 
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<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 PortletFileRepository getPortletFileRepository()
           
static Folder getPortletFolder(long folderId)
           
static Folder 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
 

Constructor Detail

PortletFileRepositoryUtil

public PortletFileRepositoryUtil()
Method Detail

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<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

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 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)

Liferay 6.2.0-ce-m3