Liferay 6.2-ce-ga5

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, 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)
           
 Repository addPortletRepository(long groupId, String portletId, ServiceContext serviceContext)
           
 void deleteFolder(long folderId)
           
 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 deletePortletRepository(long groupId, String portletId)
           
 Repository fetchPortletRepository(long groupId, String portletId)
           
 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 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)
           
 FileEntry movePortletFileEntryToTrash(long userId, long fileEntryId)
           
 FileEntry movePortletFileEntryToTrash(long groupId, long userId, long folderId, String fileName)
           
 void restorePortletFileEntryFromTrash(long userId, long fileEntryId)
           
 void restorePortletFileEntryFromTrash(long groupId, long userId, long folderId, String fileName)
           
protected  List<FileEntry> toFileEntries(List<DLFileEntry> dlFileEntries)
           
 
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,
                                  SystemException
Specified by:
addPortletFileEntries in interface PortletFileRepository
Throws:
PortalException
SystemException

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,
                                     SystemException
Specified by:
addPortletFileEntry in interface PortletFileRepository
Throws:
PortalException
SystemException

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,
                                     SystemException
Specified by:
addPortletFileEntry in interface PortletFileRepository
Throws:
PortalException
SystemException

addPortletFolder

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

addPortletRepository

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

deleteFolder

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

deletePortletFileEntries

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

deletePortletFileEntries

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

deletePortletFileEntry

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

deletePortletFileEntry

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

deletePortletRepository

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

fetchPortletRepository

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

getPortletFileEntries

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

getPortletFileEntries

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

getPortletFileEntries

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

getPortletFileEntriesCount

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

getPortletFileEntriesCount

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

getPortletFileEntry

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

getPortletFileEntry

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

getPortletFileEntry

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

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,
                               SystemException
Specified by:
getPortletFolder in interface PortletFileRepository
Throws:
PortalException
SystemException

getPortletFolder

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

getPortletRepository

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

movePortletFileEntryToTrash

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

movePortletFileEntryToTrash

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

restorePortletFileEntryFromTrash

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

restorePortletFileEntryFromTrash

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

toFileEntries

protected List<FileEntry> toFileEntries(List<DLFileEntry> dlFileEntries)
See Also:
LiferayBase.toFileEntries(java.util.List)

Liferay 6.2-ce-ga5