Liferay 7.0-ce-b4

com.liferay.portal.repository
Class InitializedRepository

java.lang.Object
  extended by com.liferay.portal.repository.InitializedDocumentRepository<Repository>
      extended by com.liferay.portal.repository.InitializedRepository
All Implemented Interfaces:
CapabilityProvider, DocumentRepository, Repository

public class InitializedRepository
extends InitializedDocumentRepository<Repository>
implements Repository


Field Summary
 
Fields inherited from class com.liferay.portal.repository.InitializedDocumentRepository
documentRepository
 
Constructor Summary
InitializedRepository()
           
 
Method Summary
 FileEntry addFileEntry(long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, File file, ServiceContext serviceContext)
          Deprecated. 
 FileEntry addFileEntry(long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, InputStream is, long size, ServiceContext serviceContext)
          Deprecated. 
 Folder addFolder(long parentFolderId, String name, String description, ServiceContext serviceContext)
          Deprecated. 
 FileVersion cancelCheckOut(long fileEntryId)
          Cancels the file entry check out.
 void checkInFileEntry(long fileEntryId, boolean major, String changeLog, ServiceContext serviceContext)
          Deprecated. 
 void checkInFileEntry(long fileEntryId, String lockUuid)
          Deprecated. 
 void checkInFileEntry(long fileEntryId, String lockUuid, ServiceContext serviceContext)
          Deprecated. 
 FileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext)
           
 FileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext)
           
 FileEntry copyFileEntry(long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext)
          Deprecated. 
 void deleteFileEntry(long folderId, String title)
           
 void deleteFileVersion(long fileEntryId, String version)
           
 void deleteFolder(long parentFolderId, String name)
           
 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, long fileEntryTypeId)
           
 int getFileEntriesCount(long folderId, String[] mimeTypes)
           
 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, 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)
           
 void getSubfolderIds(List<Long> folderIds, long folderId)
           
 List<Long> getSubfolderIds(long folderId, boolean recurse)
           
 Lock lockFolder(long folderId)
           
 Lock lockFolder(long folderId, String owner, boolean inheritable, long expirationTime)
           
 FileEntry moveFileEntry(long fileEntryId, long newFolderId, ServiceContext serviceContext)
          Deprecated. 
 Folder moveFolder(long folderId, long newParentFolderId, ServiceContext serviceContext)
          Deprecated. 
 Lock refreshFileEntryLock(String lockUuid, long companyId, long expirationTime)
           
 Lock refreshFolderLock(String lockUuid, long companyId, long expirationTime)
           
 void revertFileEntry(long fileEntryId, String version, ServiceContext serviceContext)
          Deprecated. 
 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 fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, File file, ServiceContext serviceContext)
          Deprecated. 
 FileEntry updateFileEntry(long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, InputStream is, long size, ServiceContext serviceContext)
          Deprecated. 
 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 com.liferay.portal.repository.InitializedDocumentRepository
addFileEntry, addFileEntry, addFileShortcut, addFolder, checkDocumentRepository, checkInFileEntry, checkInFileEntry, copyFileEntry, deleteAll, deleteFileEntry, deleteFileShortcut, deleteFileShortcuts, deleteFolder, getCapability, getFileEntries, getFileEntries, getFileEntriesCount, getFileEntriesCount, getFileEntry, getFileEntry, getFileEntryByUuid, getFileShortcut, getFileVersion, getFolder, getFolder, getRepositoryFileEntries, getRepositoryId, isCapabilityProvided, moveFileEntry, moveFolder, revertFileEntry, setDocumentRepository, updateFileEntry, updateFileEntry, updateFileShortcut, updateFileShortcuts, updateFolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.repository.DocumentRepository
addFileEntry, addFileEntry, addFileShortcut, addFolder, checkInFileEntry, checkInFileEntry, copyFileEntry, deleteAll, deleteFileEntry, deleteFileShortcut, deleteFileShortcuts, deleteFolder, getFileEntries, getFileEntries, getFileEntriesCount, getFileEntriesCount, getFileEntry, getFileEntry, getFileEntryByUuid, getFileShortcut, getFileVersion, getFolder, getFolder, getRepositoryFileEntries, getRepositoryId, moveFileEntry, moveFolder, revertFileEntry, updateFileEntry, updateFileEntry, updateFileShortcut, updateFileShortcuts, updateFolder
 
Methods inherited from interface com.liferay.portal.kernel.repository.capabilities.CapabilityProvider
getCapability, isCapabilityProvided
 

Constructor Detail

InitializedRepository

public InitializedRepository()
Method Detail

addFileEntry

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

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. 

Specified by:
addFileEntry in interface Repository
Throws:
PortalException

addFolder

@Deprecated
public Folder addFolder(long parentFolderId,
                                   String name,
                                   String description,
                                   ServiceContext serviceContext)
                 throws PortalException
Deprecated. 

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. 

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

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

@Deprecated
public FileEntry copyFileEntry(long groupId,
                                          long fileEntryId,
                                          long destFolderId,
                                          ServiceContext serviceContext)
                        throws PortalException
Deprecated. 

Specified by:
copyFileEntry in interface Repository
Throws:
PortalException

deleteFileEntry

public void deleteFileEntry(long folderId,
                            String title)
                     throws PortalException
Specified by:
deleteFileEntry in interface Repository
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 parentFolderId,
                         String name)
                  throws PortalException
Specified by:
deleteFolder in interface Repository
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
Overrides:
getFileEntriesAndFileShortcuts in class InitializedDocumentRepository<Repository>
Throws:
PortalException

getFileEntriesAndFileShortcutsCount

public int getFileEntriesAndFileShortcutsCount(long folderId,
                                               int status)
                                        throws PortalException
Specified by:
getFileEntriesAndFileShortcutsCount in interface DocumentRepository
Overrides:
getFileEntriesAndFileShortcutsCount in class InitializedDocumentRepository<Repository>
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,
                               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

getFolders

public List<Folder> getFolders(long parentFolderId,
                               boolean includeMountFolders,
                               int start,
                               int end,
                               OrderByComparator<Folder> obc)
                        throws PortalException
Specified by:
getFolders in interface DocumentRepository
Overrides:
getFolders in class InitializedDocumentRepository<Repository>
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
Overrides:
getFolders in class InitializedDocumentRepository<Repository>
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
Overrides:
getFoldersAndFileEntriesAndFileShortcuts in class InitializedDocumentRepository<Repository>
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
Overrides:
getFoldersCount in class InitializedDocumentRepository<Repository>
Throws:
PortalException

getFoldersCount

public int getFoldersCount(long parentFolderId,
                           int status,
                           boolean includeMountfolders)
                    throws PortalException
Specified by:
getFoldersCount in interface DocumentRepository
Overrides:
getFoldersCount in class InitializedDocumentRepository<Repository>
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,
                                                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

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

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

@Deprecated
public FileEntry moveFileEntry(long fileEntryId,
                                          long newFolderId,
                                          ServiceContext serviceContext)
                        throws PortalException
Deprecated. 

Specified by:
moveFileEntry in interface Repository
Throws:
PortalException

moveFolder

@Deprecated
public Folder moveFolder(long folderId,
                                    long newParentFolderId,
                                    ServiceContext serviceContext)
                  throws PortalException
Deprecated. 

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

@Deprecated
public void revertFileEntry(long fileEntryId,
                                       String version,
                                       ServiceContext serviceContext)
                     throws PortalException
Deprecated. 

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

@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. 

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. 

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