Liferay 7.0-ce-b4

com.liferay.portal.repository.util
Class RepositoryWrapper

java.lang.Object
  extended by com.liferay.portal.repository.util.RepositoryWrapper
All Implemented Interfaces:
CapabilityProvider, DocumentRepository, Repository
Direct Known Subclasses:
LiferayProcessorRepositoryWrapper, LiferayWorkflowRepositoryWrapper, ModelValidatorRepositoryWrapper

public class RepositoryWrapper
extends Object
implements Repository


Constructor Summary
RepositoryWrapper(Repository repository)
           
 
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)
           
 FileEntry addFileEntry(long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, File file, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, see addFileEntry(long, long, String, String, String, String, String, File, ServiceContext)
 FileEntry addFileEntry(long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, InputStream is, long size, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, see addFileEntry(long, long, String, String, String, String, String, InputStream, long, ServiceContext)
 FileShortcut addFileShortcut(long userId, long folderId, long toFileEntryId, ServiceContext serviceContext)
           
 Folder addFolder(long userId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
 Folder addFolder(long parentFolderId, String name, String description, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by addFolder(long, long, String, String, ServiceContext)
 FileVersion cancelCheckOut(long fileEntryId)
          Cancels the file entry check out.
 void checkInFileEntry(long fileEntryId, boolean major, String changeLog, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by checkInFileEntry(long, long, boolean, String, ServiceContext)
 void checkInFileEntry(long userId, long fileEntryId, boolean major, String changeLog, ServiceContext serviceContext)
           
 void checkInFileEntry(long userId, long fileEntryId, String lockUuid, ServiceContext serviceContext)
           
 void checkInFileEntry(long fileEntryId, String lockUuid)
          Deprecated. 
 void checkInFileEntry(long fileEntryId, String lockUuid, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by checkInFileEntry(long, long, String, ServiceContext)
 FileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext)
           
 FileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext)
           
 FileEntry copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext)
           
 FileEntry copyFileEntry(long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by copyFileEntry(long, long, long, long, ServiceContext)
 void deleteAll()
           
 void deleteFileEntry(long fileEntryId)
           
 void deleteFileEntry(long folderId, String title)
           
 void deleteFileShortcut(long fileShortcutId)
           
 void deleteFileShortcuts(long toFileEntryId)
           
 void deleteFileVersion(long fileEntryId, String version)
           
 void deleteFolder(long folderId)
           
 void deleteFolder(long parentFolderId, String name)
           
<T extends Capability>
T
getCapability(Class<T> capabilityClass)
           
 List<FileEntry> getFileEntries(long folderId, int status, int start, int end, OrderByComparator<FileEntry> obc)
           
 List<FileEntry> getFileEntries(long folderId, int start, int end, OrderByComparator<FileEntry> obc)
           
 List<FileEntry> getFileEntries(long folderId, long fileEntryTypeId, int start, int end, OrderByComparator<FileEntry> obc)
           
 List<FileEntry> getFileEntries(long folderId, String[] mimeTypes, int start, int end, OrderByComparator<FileEntry> obc)
           
 List<RepositoryEntry> getFileEntriesAndFileShortcuts(long folderId, int status, int start, int end)
           
 int getFileEntriesAndFileShortcutsCount(long folderId, int status)
           
 int getFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimeTypes)
           
 int getFileEntriesCount(long folderId)
           
 int getFileEntriesCount(long folderId, int status)
           
 int getFileEntriesCount(long folderId, long fileEntryTypeId)
           
 int getFileEntriesCount(long folderId, String[] mimeTypes)
           
 FileEntry getFileEntry(long fileEntryId)
           
 FileEntry getFileEntry(long folderId, String title)
           
 FileEntry getFileEntryByUuid(String uuid)
           
 FileShortcut getFileShortcut(long fileShortcutId)
           
 FileVersion getFileVersion(long fileVersionId)
           
 Folder getFolder(long folderId)
           
 Folder getFolder(long parentFolderId, String name)
           
 List<Folder> getFolders(long parentFolderId, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> obc)
           
 List<Folder> getFolders(long parentFolderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<Folder> obc)
           
 List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator<?> obc)
           
 List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, String[] mimetypes, boolean includeMountFolders, int start, int end, OrderByComparator<?> obc)
           
 int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, boolean includeMountFolders)
           
 int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimetypes, boolean includeMountFolders)
           
 int getFoldersCount(long parentFolderId, boolean includeMountfolders)
           
 int getFoldersCount(long parentFolderId, int status, boolean includeMountfolders)
           
 int getFoldersFileEntriesCount(List<Long> folderIds, int status)
           
 List<Folder> getMountFolders(long parentFolderId, int start, int end, OrderByComparator<Folder> obc)
           
 int getMountFoldersCount(long parentFolderId)
           
 List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, OrderByComparator<FileEntry> obc)
           
 List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, OrderByComparator<FileEntry> obc)
           
 int getRepositoryFileEntriesCount(long userId, long rootFolderId)
           
 int getRepositoryFileEntriesCount(long userId, long rootFolderId, String[] mimeTypes, int status)
           
 long getRepositoryId()
           
 void getSubfolderIds(List<Long> folderIds, long folderId)
           
 List<Long> getSubfolderIds(long folderId, boolean recurse)
           
<T extends Capability>
boolean
isCapabilityProvided(Class<T> capabilityClass)
           
 Lock lockFolder(long folderId)
           
 Lock lockFolder(long folderId, String owner, boolean inheritable, long expirationTime)
           
 FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext)
           
 FileEntry moveFileEntry(long fileEntryId, long newFolderId, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by moveFileEntry(long, long, long, ServiceContext)
 Folder moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext)
           
 Folder moveFolder(long folderId, long newParentFolderId, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by moveFolder(long, long, long, ServiceContext)
 Lock refreshFileEntryLock(String lockUuid, long companyId, long expirationTime)
           
 Lock refreshFolderLock(String lockUuid, long companyId, long expirationTime)
           
 void revertFileEntry(long userId, long fileEntryId, String version, ServiceContext serviceContext)
           
 void revertFileEntry(long fileEntryId, String version, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by revertFileEntry(long, long, String, ServiceContext)
 Hits search(long creatorUserId, int status, int start, int end)
           
 Hits search(long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end)
           
 Hits search(SearchContext searchContext)
           
 Hits search(SearchContext searchContext, Query query)
           
 void unlockFolder(long folderId, String lockUuid)
           
 void unlockFolder(long parentFolderId, String name, String lockUuid)
           
 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)
           
 FileEntry updateFileEntry(long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, File file, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateFileEntry(long, long, String, String, String, String, String, boolean, File, ServiceContext)
 FileEntry updateFileEntry(long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, InputStream is, long size, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, replaced by updateFileEntry(long, long, String, String, String, String, String, boolean, InputStream, long, ServiceContext)
 FileShortcut updateFileShortcut(long userId, long fileShortcutId, long folderId, long toFileEntryId, ServiceContext serviceContext)
           
 void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId)
           
 Folder updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
 Folder updateFolder(long folderId, String name, String description, ServiceContext serviceContext)
           
 boolean verifyFileEntryCheckOut(long fileEntryId, String lockUuid)
           
 boolean verifyFileEntryLock(long fileEntryId, String lockUuid)
           
 boolean verifyInheritableLock(long folderId, String lockUuid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryWrapper

public RepositoryWrapper(Repository repository)
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
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
Throws:
PortalException

addFileEntry

@Deprecated
public FileEntry addFileEntry(long folderId,
                                         String sourceFileName,
                                         String mimeType,
                                         String title,
                                         String description,
                                         String changeLog,
                                         File file,
                                         ServiceContext serviceContext)
                       throws PortalException
Deprecated. As of 7.0.0, see addFileEntry(long, long, String, String, String, String, String, File, ServiceContext)

Specified by:
addFileEntry in interface Repository
Throws:
PortalException

addFileEntry

@Deprecated
public FileEntry addFileEntry(long folderId,
                                         String sourceFileName,
                                         String mimeType,
                                         String title,
                                         String description,
                                         String changeLog,
                                         InputStream is,
                                         long size,
                                         ServiceContext serviceContext)
                       throws PortalException
Deprecated. As of 7.0.0, see addFileEntry(long, long, String, String, String, String, String, InputStream, long, ServiceContext)

Specified by:
addFileEntry in interface Repository
Throws:
PortalException

addFileShortcut

public FileShortcut addFileShortcut(long userId,
                                    long folderId,
                                    long toFileEntryId,
                                    ServiceContext serviceContext)
                             throws PortalException
Specified by:
addFileShortcut in interface DocumentRepository
Throws:
PortalException

addFolder

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

addFolder

@Deprecated
public Folder addFolder(long parentFolderId,
                                   String name,
                                   String description,
                                   ServiceContext serviceContext)
                 throws PortalException
Deprecated. As of 7.0.0, replaced by addFolder(long, long, String, String, ServiceContext)

Specified by:
addFolder in interface Repository
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
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

@Deprecated
public void checkInFileEntry(long fileEntryId,
                                        boolean major,
                                        String changeLog,
                                        ServiceContext serviceContext)
                      throws PortalException
Deprecated. As of 7.0.0, replaced by checkInFileEntry(long, long, boolean, String, ServiceContext)

Specified by:
checkInFileEntry in interface Repository
Throws:
PortalException

checkInFileEntry

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

checkInFileEntry

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

checkInFileEntry

@Deprecated
public void checkInFileEntry(long fileEntryId,
                                        String lockUuid)
                      throws PortalException
Deprecated. 

Specified by:
checkInFileEntry in interface Repository
Throws:
PortalException

checkInFileEntry

@Deprecated
public void checkInFileEntry(long fileEntryId,
                                        String lockUuid,
                                        ServiceContext serviceContext)
                      throws PortalException
Deprecated. As of 7.0.0, replaced by checkInFileEntry(long, long, String, ServiceContext)

Specified by:
checkInFileEntry in interface Repository
Throws:
PortalException

checkOutFileEntry

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

checkOutFileEntry

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

copyFileEntry

public FileEntry copyFileEntry(long userId,
                               long groupId,
                               long fileEntryId,
                               long destFolderId,
                               ServiceContext serviceContext)
                        throws PortalException
Specified by:
copyFileEntry in interface DocumentRepository
Throws:
PortalException

copyFileEntry

@Deprecated
public FileEntry copyFileEntry(long groupId,
                                          long fileEntryId,
                                          long destFolderId,
                                          ServiceContext serviceContext)
                        throws PortalException
Deprecated. As of 7.0.0, replaced by copyFileEntry(long, long, long, long, ServiceContext)

Specified by:
copyFileEntry in interface Repository
Throws:
PortalException

deleteAll

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

deleteFileEntry

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

deleteFileEntry

public void deleteFileEntry(long folderId,
                            String title)
                     throws PortalException
Specified by:
deleteFileEntry in interface Repository
Throws:
PortalException

deleteFileShortcut

public void deleteFileShortcut(long fileShortcutId)
                        throws PortalException
Specified by:
deleteFileShortcut in interface DocumentRepository
Throws:
PortalException

deleteFileShortcuts

public void deleteFileShortcuts(long toFileEntryId)
                         throws PortalException
Specified by:
deleteFileShortcuts in interface DocumentRepository
Throws:
PortalException

deleteFileVersion

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

deleteFolder

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

deleteFolder

public void deleteFolder(long parentFolderId,
                         String name)
                  throws PortalException
Specified by:
deleteFolder in interface Repository
Throws:
PortalException

getCapability

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

getFileEntries

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

getFileEntries

public List<FileEntry> getFileEntries(long folderId,
                                      int start,
                                      int end,
                                      OrderByComparator<FileEntry> obc)
                               throws PortalException
Specified by:
getFileEntries in interface DocumentRepository
Throws:
PortalException

getFileEntries

public List<FileEntry> getFileEntries(long folderId,
                                      long fileEntryTypeId,
                                      int start,
                                      int end,
                                      OrderByComparator<FileEntry> obc)
                               throws PortalException
Specified by:
getFileEntries in interface Repository
Throws:
PortalException

getFileEntries

public List<FileEntry> getFileEntries(long folderId,
                                      String[] mimeTypes,
                                      int start,
                                      int end,
                                      OrderByComparator<FileEntry> obc)
                               throws PortalException
Specified by:
getFileEntries in interface Repository
Throws:
PortalException

getFileEntriesAndFileShortcuts

public List<RepositoryEntry> getFileEntriesAndFileShortcuts(long folderId,
                                                            int status,
                                                            int start,
                                                            int end)
                                                     throws PortalException
Specified by:
getFileEntriesAndFileShortcuts in interface DocumentRepository
Throws:
PortalException

getFileEntriesAndFileShortcutsCount

public int getFileEntriesAndFileShortcutsCount(long folderId,
                                               int status)
                                        throws PortalException
Specified by:
getFileEntriesAndFileShortcutsCount in interface DocumentRepository
Throws:
PortalException

getFileEntriesAndFileShortcutsCount

public int getFileEntriesAndFileShortcutsCount(long folderId,
                                               int status,
                                               String[] mimeTypes)
                                        throws PortalException
Specified by:
getFileEntriesAndFileShortcutsCount in interface Repository
Throws:
PortalException

getFileEntriesCount

public int getFileEntriesCount(long folderId)
                        throws PortalException
Specified by:
getFileEntriesCount in interface DocumentRepository
Throws:
PortalException

getFileEntriesCount

public int getFileEntriesCount(long folderId,
                               int status)
                        throws PortalException
Specified by:
getFileEntriesCount in interface DocumentRepository
Throws:
PortalException

getFileEntriesCount

public int getFileEntriesCount(long folderId,
                               long fileEntryTypeId)
                        throws PortalException
Specified by:
getFileEntriesCount in interface Repository
Throws:
PortalException

getFileEntriesCount

public int getFileEntriesCount(long folderId,
                               String[] mimeTypes)
                        throws PortalException
Specified by:
getFileEntriesCount in interface Repository
Throws:
PortalException

getFileEntry

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

getFileEntry

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

getFileEntryByUuid

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

getFileShortcut

public FileShortcut getFileShortcut(long fileShortcutId)
                             throws PortalException
Specified by:
getFileShortcut in interface DocumentRepository
Throws:
PortalException

getFileVersion

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

getFolder

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

getFolder

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

getFolders

public List<Folder> getFolders(long parentFolderId,
                               boolean includeMountFolders,
                               int start,
                               int end,
                               OrderByComparator<Folder> obc)
                        throws PortalException
Specified by:
getFolders in interface DocumentRepository
Throws:
PortalException

getFolders

public List<Folder> getFolders(long parentFolderId,
                               int status,
                               boolean includeMountFolders,
                               int start,
                               int end,
                               OrderByComparator<Folder> obc)
                        throws PortalException
Specified by:
getFolders in interface DocumentRepository
Throws:
PortalException

getFoldersAndFileEntriesAndFileShortcuts

public List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
                                                                      int status,
                                                                      boolean includeMountFolders,
                                                                      int start,
                                                                      int end,
                                                                      OrderByComparator<?> obc)
                                                               throws PortalException
Specified by:
getFoldersAndFileEntriesAndFileShortcuts in interface DocumentRepository
Throws:
PortalException

getFoldersAndFileEntriesAndFileShortcuts

public List<RepositoryEntry> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
                                                                      int status,
                                                                      String[] mimetypes,
                                                                      boolean includeMountFolders,
                                                                      int start,
                                                                      int end,
                                                                      OrderByComparator<?> obc)
                                                               throws PortalException
Specified by:
getFoldersAndFileEntriesAndFileShortcuts in interface Repository
Throws:
PortalException

getFoldersAndFileEntriesAndFileShortcutsCount

public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
                                                         int status,
                                                         boolean includeMountFolders)
                                                  throws PortalException
Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount in interface Repository
Throws:
PortalException

getFoldersAndFileEntriesAndFileShortcutsCount

public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
                                                         int status,
                                                         String[] mimetypes,
                                                         boolean includeMountFolders)
                                                  throws PortalException
Specified by:
getFoldersAndFileEntriesAndFileShortcutsCount in interface Repository
Throws:
PortalException

getFoldersCount

public int getFoldersCount(long parentFolderId,
                           boolean includeMountfolders)
                    throws PortalException
Specified by:
getFoldersCount in interface DocumentRepository
Throws:
PortalException

getFoldersCount

public int getFoldersCount(long parentFolderId,
                           int status,
                           boolean includeMountfolders)
                    throws PortalException
Specified by:
getFoldersCount in interface DocumentRepository
Throws:
PortalException

getFoldersFileEntriesCount

public int getFoldersFileEntriesCount(List<Long> folderIds,
                                      int status)
                               throws PortalException
Specified by:
getFoldersFileEntriesCount in interface Repository
Throws:
PortalException

getMountFolders

public List<Folder> getMountFolders(long parentFolderId,
                                    int start,
                                    int end,
                                    OrderByComparator<Folder> obc)
                             throws PortalException
Specified by:
getMountFolders in interface Repository
Throws:
PortalException

getMountFoldersCount

public int getMountFoldersCount(long parentFolderId)
                         throws PortalException
Specified by:
getMountFoldersCount in interface Repository
Throws:
PortalException

getRepositoryFileEntries

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

getRepositoryFileEntries

public List<FileEntry> getRepositoryFileEntries(long userId,
                                                long rootFolderId,
                                                String[] mimeTypes,
                                                int status,
                                                int start,
                                                int end,
                                                OrderByComparator<FileEntry> obc)
                                         throws PortalException
Specified by:
getRepositoryFileEntries in interface Repository
Throws:
PortalException

getRepositoryFileEntriesCount

public int getRepositoryFileEntriesCount(long userId,
                                         long rootFolderId)
                                  throws PortalException
Specified by:
getRepositoryFileEntriesCount in interface Repository
Throws:
PortalException

getRepositoryFileEntriesCount

public int getRepositoryFileEntriesCount(long userId,
                                         long rootFolderId,
                                         String[] mimeTypes,
                                         int status)
                                  throws PortalException
Specified by:
getRepositoryFileEntriesCount in interface Repository
Throws:
PortalException

getRepositoryId

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

getSubfolderIds

public void getSubfolderIds(List<Long> folderIds,
                            long folderId)
                     throws PortalException
Specified by:
getSubfolderIds in interface Repository
Throws:
PortalException

getSubfolderIds

public List<Long> getSubfolderIds(long folderId,
                                  boolean recurse)
                           throws PortalException
Specified by:
getSubfolderIds in interface Repository
Throws:
PortalException

isCapabilityProvided

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

lockFolder

public Lock lockFolder(long folderId)
                throws PortalException
Specified by:
lockFolder in interface Repository
Throws:
PortalException

lockFolder

public Lock lockFolder(long folderId,
                       String owner,
                       boolean inheritable,
                       long expirationTime)
                throws PortalException
Specified by:
lockFolder in interface Repository
Throws:
PortalException

moveFileEntry

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

moveFileEntry

@Deprecated
public FileEntry moveFileEntry(long fileEntryId,
                                          long newFolderId,
                                          ServiceContext serviceContext)
                        throws PortalException
Deprecated. As of 7.0.0, replaced by moveFileEntry(long, long, long, ServiceContext)

Specified by:
moveFileEntry in interface Repository
Throws:
PortalException

moveFolder

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

moveFolder

@Deprecated
public Folder moveFolder(long folderId,
                                    long newParentFolderId,
                                    ServiceContext serviceContext)
                  throws PortalException
Deprecated. As of 7.0.0, replaced by moveFolder(long, long, long, ServiceContext)

Specified by:
moveFolder in interface Repository
Throws:
PortalException

refreshFileEntryLock

public Lock refreshFileEntryLock(String lockUuid,
                                 long companyId,
                                 long expirationTime)
                          throws PortalException
Specified by:
refreshFileEntryLock in interface Repository
Throws:
PortalException

refreshFolderLock

public Lock refreshFolderLock(String lockUuid,
                              long companyId,
                              long expirationTime)
                       throws PortalException
Specified by:
refreshFolderLock in interface Repository
Throws:
PortalException

revertFileEntry

public void revertFileEntry(long userId,
                            long fileEntryId,
                            String version,
                            ServiceContext serviceContext)
                     throws PortalException
Specified by:
revertFileEntry in interface DocumentRepository
Throws:
PortalException

revertFileEntry

@Deprecated
public void revertFileEntry(long fileEntryId,
                                       String version,
                                       ServiceContext serviceContext)
                     throws PortalException
Deprecated. As of 7.0.0, replaced by revertFileEntry(long, long, String, ServiceContext)

Specified by:
revertFileEntry in interface Repository
Throws:
PortalException

search

public Hits search(long creatorUserId,
                   int status,
                   int start,
                   int end)
            throws PortalException
Specified by:
search in interface Repository
Throws:
PortalException

search

public Hits search(long creatorUserId,
                   long folderId,
                   String[] mimeTypes,
                   int status,
                   int start,
                   int end)
            throws PortalException
Specified by:
search in interface Repository
Throws:
PortalException

search

public Hits search(SearchContext searchContext)
            throws SearchException
Specified by:
search in interface Repository
Throws:
SearchException

search

public Hits search(SearchContext searchContext,
                   Query query)
            throws SearchException
Specified by:
search in interface Repository
Throws:
SearchException

unlockFolder

public void unlockFolder(long folderId,
                         String lockUuid)
                  throws PortalException
Specified by:
unlockFolder in interface Repository
Throws:
PortalException

unlockFolder

public void unlockFolder(long parentFolderId,
                         String name,
                         String lockUuid)
                  throws PortalException
Specified by:
unlockFolder in interface Repository
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
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
Throws:
PortalException

updateFileEntry

@Deprecated
public FileEntry updateFileEntry(long fileEntryId,
                                            String sourceFileName,
                                            String mimeType,
                                            String title,
                                            String description,
                                            String changeLog,
                                            boolean majorVersion,
                                            File file,
                                            ServiceContext serviceContext)
                          throws PortalException
Deprecated. As of 7.0.0, replaced by updateFileEntry(long, long, String, String, String, String, String, boolean, File, ServiceContext)

Specified by:
updateFileEntry in interface Repository
Throws:
PortalException

updateFileEntry

@Deprecated
public FileEntry updateFileEntry(long fileEntryId,
                                            String sourceFileName,
                                            String mimeType,
                                            String title,
                                            String description,
                                            String changeLog,
                                            boolean majorVersion,
                                            InputStream is,
                                            long size,
                                            ServiceContext serviceContext)
                          throws PortalException
Deprecated. As of 7.0.0, replaced by updateFileEntry(long, long, String, String, String, String, String, boolean, InputStream, long, ServiceContext)

Specified by:
updateFileEntry in interface Repository
Throws:
PortalException

updateFileShortcut

public FileShortcut updateFileShortcut(long userId,
                                       long fileShortcutId,
                                       long folderId,
                                       long toFileEntryId,
                                       ServiceContext serviceContext)
                                throws PortalException
Specified by:
updateFileShortcut in interface DocumentRepository
Throws:
PortalException

updateFileShortcuts

public void updateFileShortcuts(long oldToFileEntryId,
                                long newToFileEntryId)
                         throws PortalException
Specified by:
updateFileShortcuts in interface DocumentRepository
Throws:
PortalException

updateFolder

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

updateFolder

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

verifyFileEntryCheckOut

public boolean verifyFileEntryCheckOut(long fileEntryId,
                                       String lockUuid)
                                throws PortalException
Specified by:
verifyFileEntryCheckOut in interface Repository
Throws:
PortalException

verifyFileEntryLock

public boolean verifyFileEntryLock(long fileEntryId,
                                   String lockUuid)
                            throws PortalException
Specified by:
verifyFileEntryLock in interface Repository
Throws:
PortalException

verifyInheritableLock

public boolean verifyInheritableLock(long folderId,
                                     String lockUuid)
                              throws PortalException
Specified by:
verifyInheritableLock in interface Repository
Throws:
PortalException

Liferay 7.0-ce-b4