Liferay 7.0-ce-b4

com.liferay.portal.portletfilerepository
Class PortletFileRepositoryImpl

java.lang.Object
  extended by com.liferay.portal.portletfilerepository.PortletFileRepositoryImpl
All Implemented Interfaces:
PortletFileRepository

public class PortletFileRepositoryImpl
extends Object
implements PortletFileRepository


Constructor Summary
PortletFileRepositoryImpl()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletFileRepositoryImpl

public PortletFileRepositoryImpl()
Method Detail

addPortletFileEntries

public void addPortletFileEntries(long groupId,
                                  long userId,
                                  String className,
                                  long classPK,
                                  String portletId,
                                  long folderId,
                                  List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
                           throws PortalException
Specified by:
addPortletFileEntries in interface PortletFileRepository
Throws:
PortalException

addPortletFileEntry

public FileEntry addPortletFileEntry(long groupId,
                                     long userId,
                                     String className,
                                     long classPK,
                                     String portletId,
                                     long folderId,
                                     byte[] bytes,
                                     String fileName,
                                     String mimeType,
                                     boolean indexingEnabled)
                              throws PortalException
Specified by:
addPortletFileEntry in interface PortletFileRepository
Throws:
PortalException

addPortletFileEntry

public FileEntry addPortletFileEntry(long groupId,
                                     long userId,
                                     String className,
                                     long classPK,
                                     String portletId,
                                     long folderId,
                                     File file,
                                     String fileName,
                                     String mimeType,
                                     boolean indexingEnabled)
                              throws PortalException
Specified by:
addPortletFileEntry in interface PortletFileRepository
Throws:
PortalException

addPortletFileEntry

public FileEntry addPortletFileEntry(long groupId,
                                     long userId,
                                     String className,
                                     long classPK,
                                     String portletId,
                                     long folderId,
                                     InputStream inputStream,
                                     String fileName,
                                     String mimeType,
                                     boolean indexingEnabled)
                              throws PortalException
Specified by:
addPortletFileEntry in interface PortletFileRepository
Throws:
PortalException

addPortletFolder

public Folder addPortletFolder(long userId,
                               long repositoryId,
                               long parentFolderId,
                               String folderName,
                               ServiceContext serviceContext)
                        throws PortalException
Specified by:
addPortletFolder in interface PortletFileRepository
Throws:
PortalException

addPortletFolder

public Folder addPortletFolder(long groupId,
                               long userId,
                               String portletId,
                               long parentFolderId,
                               String folderName,
                               ServiceContext serviceContext)
                        throws PortalException
Specified by:
addPortletFolder in interface PortletFileRepository
Throws:
PortalException

addPortletRepository

public Repository addPortletRepository(long groupId,
                                       String portletId,
                                       ServiceContext serviceContext)
                                throws PortalException
Specified by:
addPortletRepository in interface PortletFileRepository
Throws:
PortalException

deleteFolder

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

Specified by:
deleteFolder in interface PortletFileRepository
Throws:
PortalException

deletePortletFileEntries

public void deletePortletFileEntries(long groupId,
                                     long folderId)
                              throws PortalException
Specified by:
deletePortletFileEntries in interface PortletFileRepository
Throws:
PortalException

deletePortletFileEntries

public void deletePortletFileEntries(long groupId,
                                     long folderId,
                                     int status)
                              throws PortalException
Specified by:
deletePortletFileEntries in interface PortletFileRepository
Throws:
PortalException

deletePortletFileEntry

public void deletePortletFileEntry(long fileEntryId)
                            throws PortalException
Specified by:
deletePortletFileEntry in interface PortletFileRepository
Throws:
PortalException

deletePortletFileEntry

public void deletePortletFileEntry(long groupId,
                                   long folderId,
                                   String fileName)
                            throws PortalException
Specified by:
deletePortletFileEntry in interface PortletFileRepository
Throws:
PortalException

deletePortletFolder

public void deletePortletFolder(long folderId)
                         throws PortalException
Specified by:
deletePortletFolder in interface PortletFileRepository
Throws:
PortalException

deletePortletRepository

public void deletePortletRepository(long groupId,
                                    String portletId)
                             throws PortalException
Specified by:
deletePortletRepository in interface PortletFileRepository
Throws:
PortalException

fetchPortletRepository

public Repository fetchPortletRepository(long groupId,
                                         String portletId)
Specified by:
fetchPortletRepository in interface PortletFileRepository

getDownloadPortletFileEntryURL

public String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay,
                                             FileEntry fileEntry,
                                             String queryString)
Specified by:
getDownloadPortletFileEntryURL in interface PortletFileRepository

getDownloadPortletFileEntryURL

public String getDownloadPortletFileEntryURL(ThemeDisplay themeDisplay,
                                             FileEntry fileEntry,
                                             String queryString,
                                             boolean absoluteURL)
Specified by:
getDownloadPortletFileEntryURL in interface PortletFileRepository

getPortletFileEntries

public List<FileEntry> getPortletFileEntries(long groupId,
                                             long folderId)
                                      throws PortalException
Specified by:
getPortletFileEntries in interface PortletFileRepository
Throws:
PortalException

getPortletFileEntries

public List<FileEntry> getPortletFileEntries(long groupId,
                                             long folderId,
                                             int status)
                                      throws PortalException
Specified by:
getPortletFileEntries in interface PortletFileRepository
Throws:
PortalException

getPortletFileEntries

public List<FileEntry> getPortletFileEntries(long groupId,
                                             long folderId,
                                             int status,
                                             int start,
                                             int end,
                                             OrderByComparator<FileEntry> obc)
                                      throws PortalException
Specified by:
getPortletFileEntries in interface PortletFileRepository
Throws:
PortalException

getPortletFileEntries

public List<FileEntry> getPortletFileEntries(long groupId,
                                             long folderId,
                                             OrderByComparator<FileEntry> obc)
                                      throws PortalException
Specified by:
getPortletFileEntries in interface PortletFileRepository
Throws:
PortalException

getPortletFileEntriesCount

public int getPortletFileEntriesCount(long groupId,
                                      long folderId)
                               throws PortalException
Specified by:
getPortletFileEntriesCount in interface PortletFileRepository
Throws:
PortalException

getPortletFileEntriesCount

public int getPortletFileEntriesCount(long groupId,
                                      long folderId,
                                      int status)
                               throws PortalException
Specified by:
getPortletFileEntriesCount in interface PortletFileRepository
Throws:
PortalException

getPortletFileEntry

public FileEntry getPortletFileEntry(long fileEntryId)
                              throws PortalException
Specified by:
getPortletFileEntry in interface PortletFileRepository
Throws:
PortalException

getPortletFileEntry

public FileEntry getPortletFileEntry(long groupId,
                                     long folderId,
                                     String fileName)
                              throws PortalException
Specified by:
getPortletFileEntry in interface PortletFileRepository
Throws:
PortalException

getPortletFileEntry

public FileEntry getPortletFileEntry(String uuid,
                                     long groupId)
                              throws PortalException
Specified by:
getPortletFileEntry in interface PortletFileRepository
Throws:
PortalException

getPortletFileEntryURL

public String getPortletFileEntryURL(ThemeDisplay themeDisplay,
                                     FileEntry fileEntry,
                                     String queryString)
Specified by:
getPortletFileEntryURL in interface PortletFileRepository

getPortletFileEntryURL

public String getPortletFileEntryURL(ThemeDisplay themeDisplay,
                                     FileEntry fileEntry,
                                     String queryString,
                                     boolean absoluteURL)
Specified by:
getPortletFileEntryURL in interface PortletFileRepository

getPortletFolder

public Folder getPortletFolder(long folderId)
                        throws PortalException
Specified by:
getPortletFolder in interface PortletFileRepository
Throws:
PortalException

getPortletFolder

public Folder getPortletFolder(long repositoryId,
                               long parentFolderId,
                               String folderName)
                        throws PortalException
Specified by:
getPortletFolder in interface PortletFileRepository
Throws:
PortalException

getPortletRepository

public Repository getPortletRepository(long groupId,
                                       String portletId)
                                throws PortalException
Specified by:
getPortletRepository in interface PortletFileRepository
Throws:
PortalException

getUniqueFileName

public String getUniqueFileName(long groupId,
                                long folderId,
                                String fileName)
Specified by:
getUniqueFileName in interface PortletFileRepository

movePortletFileEntryToTrash

public FileEntry movePortletFileEntryToTrash(long userId,
                                             long fileEntryId)
                                      throws PortalException
Specified by:
movePortletFileEntryToTrash in interface PortletFileRepository
Throws:
PortalException

movePortletFileEntryToTrash

public FileEntry movePortletFileEntryToTrash(long groupId,
                                             long userId,
                                             long folderId,
                                             String fileName)
                                      throws PortalException
Specified by:
movePortletFileEntryToTrash in interface PortletFileRepository
Throws:
PortalException

movePortletFolder

public Folder movePortletFolder(long groupId,
                                long userId,
                                long folderId,
                                long parentFolderId,
                                ServiceContext serviceContext)
                         throws PortalException
Specified by:
movePortletFolder in interface PortletFileRepository
Throws:
PortalException

restorePortletFileEntryFromTrash

public void restorePortletFileEntryFromTrash(long userId,
                                             long fileEntryId)
                                      throws PortalException
Specified by:
restorePortletFileEntryFromTrash in interface PortletFileRepository
Throws:
PortalException

restorePortletFileEntryFromTrash

public void restorePortletFileEntryFromTrash(long groupId,
                                             long userId,
                                             long folderId,
                                             String fileName)
                                      throws PortalException
Specified by:
restorePortletFileEntryFromTrash in interface PortletFileRepository
Throws:
PortalException

searchPortletFileEntries

public Hits searchPortletFileEntries(long repositoryId,
                                     SearchContext searchContext)
                              throws PortalException
Specified by:
searchPortletFileEntries in interface PortletFileRepository
Throws:
PortalException

Liferay 7.0-ce-b4