Liferay 6.2.0-ce-m3

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 portletId, long folderId, List<ObjectValuePair<String,InputStream>> inputStreamOVPs)
           
 FileEntry addPortletFileEntry(long groupId, long userId, String portletId, long folderId, File file, String fileName)
           
 FileEntry addPortletFileEntry(long groupId, long userId, String portletId, long folderId, InputStream inputStream, String fileName)
           
 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)
           
 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)
           
 Folder getPortletFolder(long folderId)
           
 Folder getPortletFolder(long userId, long repositoryId, long parentFolderId, String folderName, ServiceContext serviceContext)
           
 long getPortletRepository(long groupId, String portletId, ServiceContext serviceContext)
           
 void movePortletFileEntryToTrash(long userId, long fileEntryId)
           
 void 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 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 portletId,
                                     long folderId,
                                     File file,
                                     String fileName)
                              throws PortalException,
                                     SystemException
Specified by:
addPortletFileEntry in interface PortletFileRepository
Throws:
PortalException
SystemException

addPortletFileEntry

public FileEntry addPortletFileEntry(long groupId,
                                     long userId,
                                     String portletId,
                                     long folderId,
                                     InputStream inputStream,
                                     String fileName)
                              throws PortalException,
                                     SystemException
Specified by:
addPortletFileEntry 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

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

getPortletFolder

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

getPortletFolder

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

getPortletRepository

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

movePortletFileEntryToTrash

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

movePortletFileEntryToTrash

public void 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:
com.liferay.portal.repository.liferayrepository.util.LiferayBase#toFileEntries}

Liferay 6.2.0-ce-m3