Liferay 7.0-ce-b4

com.liferay.portal.portletfilerepository
Class PortletFileRepositoryUtil

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

@ProviderType
public class PortletFileRepositoryUtil
extends Object


Constructor Summary
PortletFileRepositoryUtil()
           
 
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, 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 deleteFolder(long folderId)
          Deprecated. As of 7.0.0, replaced by deletePortletFolder(long)
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 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 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 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)
           
 
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 className,
                                         long classPK,
                                         String portletId,
                                         long folderId,
                                         List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
                                  throws PortalException
Throws:
PortalException

addPortletFileEntry

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
Throws:
PortalException

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
Throws:
PortalException

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
Throws:
PortalException

addPortletFolder

public static Folder addPortletFolder(long userId,
                                      long repositoryId,
                                      long parentFolderId,
                                      String folderName,
                                      ServiceContext serviceContext)
                               throws PortalException
Throws:
PortalException

addPortletFolder

public static Folder addPortletFolder(long groupId,
                                      long userId,
                                      String portletId,
                                      long parentFolderId,
                                      String folderName,
                                      ServiceContext serviceContext)
                               throws PortalException
Throws:
PortalException

addPortletRepository

public static Repository addPortletRepository(long groupId,
                                              String portletId,
                                              ServiceContext serviceContext)
                                       throws PortalException
Throws:
PortalException

deleteFolder

@Deprecated
public static void deleteFolder(long folderId)
                         throws PortalException
Deprecated. As of 7.0.0, replaced by deletePortletFolder(long)

Throws:
PortalException

deletePortletFileEntries

public static void deletePortletFileEntries(long groupId,
                                            long folderId)
                                     throws PortalException
Throws:
PortalException

deletePortletFileEntries

public static void deletePortletFileEntries(long groupId,
                                            long folderId,
                                            int status)
                                     throws PortalException
Throws:
PortalException

deletePortletFileEntry

public static void deletePortletFileEntry(long fileEntryId)
                                   throws PortalException
Throws:
PortalException

deletePortletFileEntry

public static void deletePortletFileEntry(long groupId,
                                          long folderId,
                                          String fileName)
                                   throws PortalException
Throws:
PortalException

deletePortletFolder

public static void deletePortletFolder(long folderId)
                                throws PortalException
Throws:
PortalException

deletePortletRepository

public static void deletePortletRepository(long groupId,
                                           String portletId)
                                    throws PortalException
Throws:
PortalException

fetchPortletRepository

public static Repository fetchPortletRepository(long groupId,
                                                String portletId)

getDownloadPortletFileEntryURL

public static String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay,
                                                    FileEntry fileEntry,
                                                    String queryString)

getDownloadPortletFileEntryURL

public static String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay,
                                                    FileEntry fileEntry,
                                                    String queryString,
                                                    boolean absoluteURL)

getPortletFileEntries

public static List<FileEntry> getPortletFileEntries(long groupId,
                                                    long folderId)
                                             throws PortalException
Throws:
PortalException

getPortletFileEntries

public static List<FileEntry> getPortletFileEntries(long groupId,
                                                    long folderId,
                                                    int status)
                                             throws PortalException
Throws:
PortalException

getPortletFileEntries

public static List<FileEntry> getPortletFileEntries(long groupId,
                                                    long folderId,
                                                    int status,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<FileEntry> obc)
                                             throws PortalException
Throws:
PortalException

getPortletFileEntries

public static List<FileEntry> getPortletFileEntries(long groupId,
                                                    long folderId,
                                                    OrderByComparator<FileEntry> obc)
                                             throws PortalException
Throws:
PortalException

getPortletFileEntriesCount

public static int getPortletFileEntriesCount(long groupId,
                                             long folderId)
                                      throws PortalException
Throws:
PortalException

getPortletFileEntriesCount

public static int getPortletFileEntriesCount(long groupId,
                                             long folderId,
                                             int status)
                                      throws PortalException
Throws:
PortalException

getPortletFileEntry

public static FileEntry getPortletFileEntry(long fileEntryId)
                                     throws PortalException
Throws:
PortalException

getPortletFileEntry

public static FileEntry getPortletFileEntry(long groupId,
                                            long folderId,
                                            String fileName)
                                     throws PortalException
Throws:
PortalException

getPortletFileEntry

public static FileEntry getPortletFileEntry(String uuid,
                                            long groupId)
                                     throws PortalException
Throws:
PortalException

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
Throws:
PortalException

getPortletFolder

public static Folder getPortletFolder(long repositoryId,
                                      long parentFolderId,
                                      String folderName)
                               throws PortalException
Throws:
PortalException

getPortletRepository

public static Repository getPortletRepository(long groupId,
                                              String portletId)
                                       throws PortalException
Throws:
PortalException

getUniqueFileName

public static String getUniqueFileName(long groupId,
                                       long folderId,
                                       String fileName)

movePortletFileEntryToTrash

public static FileEntry movePortletFileEntryToTrash(long userId,
                                                    long fileEntryId)
                                             throws PortalException
Throws:
PortalException

movePortletFileEntryToTrash

public static FileEntry movePortletFileEntryToTrash(long groupId,
                                                    long userId,
                                                    long folderId,
                                                    String fileName)
                                             throws PortalException
Throws:
PortalException

movePortletFolder

public static Folder movePortletFolder(long groupId,
                                       long userId,
                                       long folderId,
                                       long parentFolderId,
                                       ServiceContext serviceContext)
                                throws PortalException
Throws:
PortalException

restorePortletFileEntryFromTrash

public static void restorePortletFileEntryFromTrash(long userId,
                                                    long fileEntryId)
                                             throws PortalException
Throws:
PortalException

restorePortletFileEntryFromTrash

public static void restorePortletFileEntryFromTrash(long groupId,
                                                    long userId,
                                                    long folderId,
                                                    String fileName)
                                             throws PortalException
Throws:
PortalException

searchPortletFileEntries

public static Hits searchPortletFileEntries(long repositoryId,
                                            SearchContext searchContext)
                                     throws PortalException
Throws:
PortalException

setPortletFileRepository

public void setPortletFileRepository(PortletFileRepository portletFileRepository)

Liferay 7.0-ce-b4