Liferay 7.0-ce-m2

com.liferay.portal.repository.proxy
Class LocalRepositoryProxyBean

java.lang.Object
  extended by com.liferay.portal.repository.proxy.RepositoryModelProxyBean
      extended by com.liferay.portal.repository.proxy.LocalRepositoryProxyBean
All Implemented Interfaces:
CapabilityProvider, DocumentRepository, LocalRepository

public class LocalRepositoryProxyBean
extends RepositoryModelProxyBean
implements LocalRepository


Constructor Summary
LocalRepositoryProxyBean(LocalRepository localRepository, ClassLoader classLoader)
           
 
Method Summary
 FileEntry addFileEntry(long userId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, File file, ServiceContext serviceContext)
           
 FileEntry addFileEntry(long userId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, InputStream is, long size, ServiceContext serviceContext)
           
 Folder addFolder(long userId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
 void deleteAll()
           
 void deleteFileEntry(long fileEntryId)
           
 void deleteFolder(long folderId)
           
<T extends Capability>
T
getCapability(Class<T> capabilityClass)
           
 FileEntry getFileEntry(long fileEntryId)
           
 FileEntry getFileEntry(long folderId, String title)
           
 FileEntry getFileEntryByUuid(String uuid)
           
 FileVersion getFileVersion(long fileVersionId)
           
 Folder getFolder(long folderId)
           
 Folder getFolder(long parentFolderId, String name)
           
 List<FileEntry> getRepositoryFileEntries(long rootFolderId, int start, int end, OrderByComparator<FileEntry> obc)
           
 long getRepositoryId()
           
<T extends Capability>
boolean
isCapabilityProvided(Class<T> capabilityClass)
           
 FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext)
           
 Folder moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext)
           
 void updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
 FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, File file, ServiceContext serviceContext)
           
 FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, InputStream is, long size, ServiceContext serviceContext)
           
 Folder updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portal.repository.proxy.RepositoryModelProxyBean
newFileEntryProxyBean, newFileVersionProxyBean, newFolderProxyBean, newLocalRepositoryProxyBean, newProxyBean, newProxyInstance, toFileEntryProxyBeans, toFileVersionProxyBeans, toFolderProxyBeans, toObjectProxyBeans
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalRepositoryProxyBean

public LocalRepositoryProxyBean(LocalRepository localRepository,
                                ClassLoader classLoader)
Method Detail

addFileEntry

public FileEntry addFileEntry(long userId,
                              long folderId,
                              String sourceFileName,
                              String mimeType,
                              String title,
                              String description,
                              String changeLog,
                              File file,
                              ServiceContext serviceContext)
                       throws PortalException
Specified by:
addFileEntry in interface LocalRepository
Throws:
PortalException

addFileEntry

public FileEntry addFileEntry(long userId,
                              long folderId,
                              String sourceFileName,
                              String mimeType,
                              String title,
                              String description,
                              String changeLog,
                              InputStream is,
                              long size,
                              ServiceContext serviceContext)
                       throws PortalException
Specified by:
addFileEntry in interface LocalRepository
Throws:
PortalException

addFolder

public Folder addFolder(long userId,
                        long parentFolderId,
                        String name,
                        String description,
                        ServiceContext serviceContext)
                 throws PortalException
Specified by:
addFolder in interface LocalRepository
Throws:
PortalException

deleteAll

public void deleteAll()
               throws PortalException
Specified by:
deleteAll in interface LocalRepository
Throws:
PortalException

deleteFileEntry

public void deleteFileEntry(long fileEntryId)
                     throws PortalException
Specified by:
deleteFileEntry in interface LocalRepository
Throws:
PortalException

deleteFolder

public void deleteFolder(long folderId)
                  throws PortalException
Specified by:
deleteFolder in interface LocalRepository
Throws:
PortalException

getCapability

public <T extends Capability> T getCapability(Class<T> capabilityClass)
Specified by:
getCapability in interface CapabilityProvider

getFileEntry

public FileEntry getFileEntry(long fileEntryId)
                       throws PortalException
Specified by:
getFileEntry in interface LocalRepository
Throws:
PortalException

getFileEntry

public FileEntry getFileEntry(long folderId,
                              String title)
                       throws PortalException
Specified by:
getFileEntry in interface LocalRepository
Throws:
PortalException

getFileEntryByUuid

public FileEntry getFileEntryByUuid(String uuid)
                             throws PortalException
Specified by:
getFileEntryByUuid in interface LocalRepository
Throws:
PortalException

getFileVersion

public FileVersion getFileVersion(long fileVersionId)
                           throws PortalException
Specified by:
getFileVersion in interface LocalRepository
Throws:
PortalException

getFolder

public Folder getFolder(long folderId)
                 throws PortalException
Specified by:
getFolder in interface LocalRepository
Throws:
PortalException

getFolder

public Folder getFolder(long parentFolderId,
                        String name)
                 throws PortalException
Specified by:
getFolder in interface LocalRepository
Throws:
PortalException

getRepositoryFileEntries

public List<FileEntry> getRepositoryFileEntries(long rootFolderId,
                                                int start,
                                                int end,
                                                OrderByComparator<FileEntry> obc)
                                         throws PortalException
Specified by:
getRepositoryFileEntries in interface LocalRepository
Throws:
PortalException

getRepositoryId

public long getRepositoryId()
Specified by:
getRepositoryId in interface DocumentRepository

isCapabilityProvided

public <T extends Capability> boolean isCapabilityProvided(Class<T> capabilityClass)
Specified by:
isCapabilityProvided in interface CapabilityProvider

moveFileEntry

public FileEntry moveFileEntry(long userId,
                               long fileEntryId,
                               long newFolderId,
                               ServiceContext serviceContext)
                        throws PortalException
Specified by:
moveFileEntry in interface LocalRepository
Throws:
PortalException

moveFolder

public Folder moveFolder(long userId,
                         long folderId,
                         long parentFolderId,
                         ServiceContext serviceContext)
                  throws PortalException
Specified by:
moveFolder in interface LocalRepository
Throws:
PortalException

updateAsset

public void updateAsset(long userId,
                        FileEntry fileEntry,
                        FileVersion fileVersion,
                        long[] assetCategoryIds,
                        String[] assetTagNames,
                        long[] assetLinkEntryIds)
                 throws PortalException
Specified by:
updateAsset in interface LocalRepository
Throws:
PortalException

updateFileEntry

public FileEntry updateFileEntry(long userId,
                                 long fileEntryId,
                                 String sourceFileName,
                                 String mimeType,
                                 String title,
                                 String description,
                                 String changeLog,
                                 boolean majorVersion,
                                 File file,
                                 ServiceContext serviceContext)
                          throws PortalException
Specified by:
updateFileEntry in interface LocalRepository
Throws:
PortalException

updateFileEntry

public FileEntry updateFileEntry(long userId,
                                 long fileEntryId,
                                 String sourceFileName,
                                 String mimeType,
                                 String title,
                                 String description,
                                 String changeLog,
                                 boolean majorVersion,
                                 InputStream is,
                                 long size,
                                 ServiceContext serviceContext)
                          throws PortalException
Specified by:
updateFileEntry in interface LocalRepository
Throws:
PortalException

updateFolder

public Folder updateFolder(long folderId,
                           long parentFolderId,
                           String name,
                           String description,
                           ServiceContext serviceContext)
                    throws PortalException
Specified by:
updateFolder in interface LocalRepository
Throws:
PortalException

Liferay 7.0-ce-m2