Liferay 7.0-ce-b4

com.liferay.portal.portletfilerepository
Interface PortletFileRepository


@ProviderType
public interface PortletFileRepository


Method Summary
 void addPortletFileEntries(long groupId, long userId, String className, long classPK, String portletId, long folderId, List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
           
 FileEntry addPortletFileEntry(long groupId, long userId, String className, long classPK, String portletId, long folderId, byte[] bytes, String fileName, String mimeType, boolean indexingEnabled)
           
 FileEntry addPortletFileEntry(long groupId, long userId, String className, long classPK, String portletId, long folderId, File file, String fileName, String mimeType, boolean indexingEnabled)
           
 FileEntry addPortletFileEntry(long groupId, long userId, String className, long classPK, String portletId, long folderId, InputStream inputStream, String fileName, String mimeType, boolean indexingEnabled)
           
 Folder addPortletFolder(long userId, long repositoryId, long parentFolderId, String folderName, ServiceContext serviceContext)
           
 Folder addPortletFolder(long groupId, long userId, String portletId, long parentFolderId, String folderName, ServiceContext serviceContext)
           
 Repository addPortletRepository(long groupId, String portletId, ServiceContext serviceContext)
           
 void deleteFolder(long folderId)
          Deprecated. As of 7.0.0, replaced by deletePortletFolder(long)
 void deletePortletFileEntries(long groupId, long folderId)
           
 void deletePortletFileEntries(long groupId, long folderId, int status)
           
 void deletePortletFileEntry(long fileEntryId)
           
 void deletePortletFileEntry(long groupId, long folderId, String fileName)
           
 void deletePortletFolder(long folderId)
           
 void deletePortletRepository(long groupId, String portletId)
           
 Repository fetchPortletRepository(long groupId, String portletId)
           
 String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString)
           
 String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString, boolean absoluteURL)
           
 List<FileEntry> getPortletFileEntries(long groupId, long folderId)
           
 List<FileEntry> getPortletFileEntries(long groupId, long folderId, int status)
           
 List<FileEntry> getPortletFileEntries(long groupId, long folderId, int status, int start, int end, OrderByComparator<FileEntry> obc)
           
 List<FileEntry> getPortletFileEntries(long groupId, long folderId, OrderByComparator<FileEntry> obc)
           
 int getPortletFileEntriesCount(long groupId, long folderId)
           
 int getPortletFileEntriesCount(long groupId, long folderId, int status)
           
 FileEntry getPortletFileEntry(long fileEntryId)
           
 FileEntry getPortletFileEntry(long groupId, long folderId, String fileName)
           
 FileEntry getPortletFileEntry(String uuid, long groupId)
           
 String getPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString)
           
 String getPortletFileEntryURL(ThemeDisplay themeDisplay, FileEntry fileEntry, String queryString, boolean absoluteURL)
           
 Folder getPortletFolder(long folderId)
           
 Folder getPortletFolder(long repositoryId, long parentFolderId, String folderName)
           
 Repository getPortletRepository(long groupId, String portletId)
           
 String getUniqueFileName(long groupId, long folderId, String fileName)
           
 FileEntry movePortletFileEntryToTrash(long userId, long fileEntryId)
           
 FileEntry movePortletFileEntryToTrash(long groupId, long userId, long folderId, String fileName)
           
 Folder movePortletFolder(long groupId, long userId, long folderId, long parentFolderId, ServiceContext serviceContext)
           
 void restorePortletFileEntryFromTrash(long userId, long fileEntryId)
           
 void restorePortletFileEntryFromTrash(long groupId, long userId, long folderId, String fileName)
           
 Hits searchPortletFileEntries(long repositoryId, SearchContext searchContext)
           
 

Method Detail

addPortletFileEntries

void addPortletFileEntries(long groupId,
                           long userId,
                           String className,
                           long classPK,
                           String portletId,
                           long folderId,
                           List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
                           throws PortalException
Throws:
PortalException

addPortletFileEntry

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

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

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

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

addPortletFolder

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

addPortletRepository

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

deleteFolder

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

Throws:
PortalException

deletePortletFileEntries

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

deletePortletFileEntries

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

deletePortletFileEntry

void deletePortletFileEntry(long fileEntryId)
                            throws PortalException
Throws:
PortalException

deletePortletFileEntry

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

deletePortletFolder

void deletePortletFolder(long folderId)
                         throws PortalException
Throws:
PortalException

deletePortletRepository

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

fetchPortletRepository

Repository fetchPortletRepository(long groupId,
                                  String portletId)

getDownloadPortletFileEntryURL

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

getDownloadPortletFileEntryURL

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

getPortletFileEntries

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

getPortletFileEntries

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

getPortletFileEntries

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

getPortletFileEntries

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

getPortletFileEntriesCount

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

getPortletFileEntriesCount

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

getPortletFileEntry

FileEntry getPortletFileEntry(long fileEntryId)
                              throws PortalException
Throws:
PortalException

getPortletFileEntry

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

getPortletFileEntry

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

getPortletFileEntryURL

String getPortletFileEntryURL(ThemeDisplay themeDisplay,
                              FileEntry fileEntry,
                              String queryString)

getPortletFileEntryURL

String getPortletFileEntryURL(ThemeDisplay themeDisplay,
                              FileEntry fileEntry,
                              String queryString,
                              boolean absoluteURL)

getPortletFolder

Folder getPortletFolder(long folderId)
                        throws PortalException
Throws:
PortalException

getPortletFolder

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

getPortletRepository

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

getUniqueFileName

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

movePortletFileEntryToTrash

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

movePortletFileEntryToTrash

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

movePortletFolder

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

restorePortletFileEntryFromTrash

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

restorePortletFileEntryFromTrash

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

searchPortletFileEntries

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

Liferay 7.0-ce-b4