Liferay 7.0-ce-b4

com.liferay.portal.repository.liferayrepository
Class LiferayProcessorRepositoryWrapper

java.lang.Object
  extended by com.liferay.portal.repository.util.RepositoryWrapper
      extended by com.liferay.portal.repository.liferayrepository.LiferayProcessorRepositoryWrapper
All Implemented Interfaces:
CapabilityProvider, DocumentRepository, Repository

public class LiferayProcessorRepositoryWrapper
extends RepositoryWrapper


Constructor Summary
LiferayProcessorRepositoryWrapper(Repository repository, ProcessorCapability processorCapability)
           
 
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)
           
 FileVersion cancelCheckOut(long fileEntryId)
          Cancels the file entry check out.
 void checkInFileEntry(long userId, long fileEntryId, boolean major, String changeLog, ServiceContext serviceContext)
           
 void checkInFileEntry(long userId, long fileEntryId, String lockUuid, ServiceContext serviceContext)
           
 FileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext)
           
 FileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext)
           
 void deleteFileVersion(long fileEntryId, String version)
           
 void revertFileEntry(long userId, long fileEntryId, String version, ServiceContext serviceContext)
           
 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)
           
 
Methods inherited from class com.liferay.portal.repository.util.RepositoryWrapper
addFileEntry, addFileEntry, addFileShortcut, addFolder, addFolder, checkInFileEntry, checkInFileEntry, checkInFileEntry, copyFileEntry, copyFileEntry, deleteAll, deleteFileEntry, deleteFileEntry, deleteFileShortcut, deleteFileShortcuts, deleteFolder, deleteFolder, getCapability, getFileEntries, getFileEntries, getFileEntries, getFileEntries, getFileEntriesAndFileShortcuts, getFileEntriesAndFileShortcutsCount, getFileEntriesAndFileShortcutsCount, getFileEntriesCount, getFileEntriesCount, getFileEntriesCount, getFileEntriesCount, getFileEntry, getFileEntry, getFileEntryByUuid, getFileShortcut, getFileVersion, getFolder, getFolder, getFolders, getFolders, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcuts, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersAndFileEntriesAndFileShortcutsCount, getFoldersCount, getFoldersCount, getFoldersFileEntriesCount, getMountFolders, getMountFoldersCount, getRepositoryFileEntries, getRepositoryFileEntries, getRepositoryFileEntriesCount, getRepositoryFileEntriesCount, getRepositoryId, getSubfolderIds, getSubfolderIds, isCapabilityProvided, lockFolder, lockFolder, moveFileEntry, moveFileEntry, moveFolder, moveFolder, refreshFileEntryLock, refreshFolderLock, revertFileEntry, search, search, search, search, unlockFolder, unlockFolder, updateFileEntry, updateFileEntry, updateFileShortcut, updateFileShortcuts, updateFolder, updateFolder, verifyFileEntryCheckOut, verifyFileEntryLock, verifyInheritableLock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiferayProcessorRepositoryWrapper

public LiferayProcessorRepositoryWrapper(Repository repository,
                                         ProcessorCapability processorCapability)
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 DocumentRepository
Overrides:
addFileEntry in class RepositoryWrapper
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 DocumentRepository
Overrides:
addFileEntry in class RepositoryWrapper
Throws:
PortalException

cancelCheckOut

public FileVersion cancelCheckOut(long fileEntryId)
                           throws PortalException
Description copied from interface: Repository
Cancels the file entry check out. If the file entry is not checked out, invoking this method results in no changes.

Specified by:
cancelCheckOut in interface Repository
Overrides:
cancelCheckOut in class RepositoryWrapper
Parameters:
fileEntryId - the primary key of the file entry to cancel the check out
Returns:
the file entry if the cancel checkout operation was successful; null if the file entry was not checked out
Throws:
PortalException
See Also:
DocumentRepository.checkInFileEntry(long, long, boolean, String, ServiceContext), Repository.checkOutFileEntry(long, ServiceContext)

checkInFileEntry

public void checkInFileEntry(long userId,
                             long fileEntryId,
                             boolean major,
                             String changeLog,
                             ServiceContext serviceContext)
                      throws PortalException
Specified by:
checkInFileEntry in interface DocumentRepository
Overrides:
checkInFileEntry in class RepositoryWrapper
Throws:
PortalException

checkInFileEntry

public void checkInFileEntry(long userId,
                             long fileEntryId,
                             String lockUuid,
                             ServiceContext serviceContext)
                      throws PortalException
Specified by:
checkInFileEntry in interface DocumentRepository
Overrides:
checkInFileEntry in class RepositoryWrapper
Throws:
PortalException

checkOutFileEntry

public FileEntry checkOutFileEntry(long fileEntryId,
                                   ServiceContext serviceContext)
                            throws PortalException
Specified by:
checkOutFileEntry in interface Repository
Overrides:
checkOutFileEntry in class RepositoryWrapper
Throws:
PortalException

checkOutFileEntry

public FileEntry checkOutFileEntry(long fileEntryId,
                                   String owner,
                                   long expirationTime,
                                   ServiceContext serviceContext)
                            throws PortalException
Specified by:
checkOutFileEntry in interface Repository
Overrides:
checkOutFileEntry in class RepositoryWrapper
Throws:
PortalException

deleteFileVersion

public void deleteFileVersion(long fileEntryId,
                              String version)
                       throws PortalException
Specified by:
deleteFileVersion in interface Repository
Overrides:
deleteFileVersion in class RepositoryWrapper
Throws:
PortalException

revertFileEntry

public void revertFileEntry(long userId,
                            long fileEntryId,
                            String version,
                            ServiceContext serviceContext)
                     throws PortalException
Specified by:
revertFileEntry in interface DocumentRepository
Overrides:
revertFileEntry in class RepositoryWrapper
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 DocumentRepository
Overrides:
updateFileEntry in class RepositoryWrapper
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 DocumentRepository
Overrides:
updateFileEntry in class RepositoryWrapper
Throws:
PortalException

Liferay 7.0-ce-b4