Liferay 6.2.0

com.liferay.portal.kernel.repository
Interface Repository

All Known Subinterfaces:
BaseRepository
All Known Implementing Classes:
BaseCmisRepository, BaseRepositoryImpl, BaseRepositoryProxyBean, CMISRepositoryHandler

public interface Repository


Method Summary
abstract  FileEntry addFileEntry(long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, File file, ServiceContext serviceContext)
           
abstract  FileEntry addFileEntry(long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, InputStream is, long size, ServiceContext serviceContext)
           
abstract  Folder addFolder(long parentFolderId, String title, String description, ServiceContext serviceContext)
           
abstract  FileVersion cancelCheckOut(long fileEntryId)
           
abstract  void checkInFileEntry(long fileEntryId, boolean major, String changeLog, ServiceContext serviceContext)
           
abstract  void checkInFileEntry(long fileEntryId, String lockUuid)
          Deprecated. As of 6.2.0, replaced by checkInFileEntry(long, String, ServiceContext)
abstract  void checkInFileEntry(long fileEntryId, String lockUuid, ServiceContext serviceContext)
           
abstract  FileEntry checkOutFileEntry(long fileEntryId, ServiceContext serviceContext)
           
abstract  FileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext)
           
abstract  FileEntry copyFileEntry(long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext)
           
abstract  void deleteFileEntry(long fileEntryId)
           
abstract  void deleteFileEntry(long folderId, String title)
           
abstract  void deleteFileVersion(long fileEntryId, String version)
           
abstract  void deleteFolder(long folderId)
           
abstract  void deleteFolder(long parentFolderId, String title)
           
abstract  List<FileEntry> getFileEntries(long folderId, int start, int end, OrderByComparator obc)
           
abstract  List<FileEntry> getFileEntries(long folderId, long fileEntryTypeId, int start, int end, OrderByComparator obc)
           
abstract  List<FileEntry> getFileEntries(long folderId, String[] mimeTypes, int start, int end, OrderByComparator obc)
           
abstract  List<Object> getFileEntriesAndFileShortcuts(long folderId, int status, int start, int end)
           
abstract  int getFileEntriesAndFileShortcutsCount(long folderId, int status)
           
abstract  int getFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimeTypes)
           
abstract  int getFileEntriesCount(long folderId)
           
abstract  int getFileEntriesCount(long folderId, long fileEntryTypeId)
           
abstract  int getFileEntriesCount(long folderId, String[] mimeTypes)
           
abstract  FileEntry getFileEntry(long fileEntryId)
           
abstract  FileEntry getFileEntry(long folderId, String title)
           
abstract  FileEntry getFileEntryByUuid(String uuid)
           
abstract  FileVersion getFileVersion(long fileVersionId)
           
abstract  Folder getFolder(long folderId)
           
abstract  Folder getFolder(long parentFolderId, String title)
           
abstract  List<Folder> getFolders(long parentFolderId, boolean includeMountFolders, int start, int end, OrderByComparator obc)
           
abstract  List<Folder> getFolders(long parentFolderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator obc)
           
abstract  List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator obc)
           
abstract  List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int status, String[] mimetypes, boolean includeMountFolders, int start, int end, OrderByComparator obc)
           
abstract  int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, boolean includeMountFolders)
           
abstract  int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId, int status, String[] mimetypes, boolean includeMountFolders)
           
abstract  int getFoldersCount(long parentFolderId, boolean includeMountfolders)
           
abstract  int getFoldersCount(long parentFolderId, int status, boolean includeMountfolders)
           
abstract  int getFoldersFileEntriesCount(List<Long> folderIds, int status)
           
abstract  List<Folder> getMountFolders(long parentFolderId, int start, int end, OrderByComparator obc)
           
abstract  int getMountFoldersCount(long parentFolderId)
           
abstract  List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, OrderByComparator obc)
           
abstract  List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, OrderByComparator obc)
           
abstract  int getRepositoryFileEntriesCount(long userId, long rootFolderId)
           
abstract  int getRepositoryFileEntriesCount(long userId, long rootFolderId, String[] mimeTypes, int status)
           
abstract  long getRepositoryId()
           
abstract  void getSubfolderIds(List<Long> folderIds, long folderId)
           
abstract  List<Long> getSubfolderIds(long folderId, boolean recurse)
           
abstract  Lock lockFileEntry(long fileEntryId)
          Deprecated. As of 6.2.0, replaced by checkOutFileEntry(long, ServiceContext)
abstract  Lock lockFileEntry(long fileEntryId, String owner, long expirationTime)
          Deprecated. As of 6.2.0, replaced by checkOutFileEntry(long, String, long, ServiceContext)
abstract  Lock lockFolder(long folderId)
           
abstract  Lock lockFolder(long folderId, String owner, boolean inheritable, long expirationTime)
           
abstract  FileEntry moveFileEntry(long fileEntryId, long newFolderId, ServiceContext serviceContext)
           
abstract  Folder moveFolder(long folderId, long newParentFolderId, ServiceContext serviceContext)
           
abstract  Lock refreshFileEntryLock(String lockUuid, long companyId, long expirationTime)
           
abstract  Lock refreshFolderLock(String lockUuid, long companyId, long expirationTime)
           
abstract  void revertFileEntry(long fileEntryId, String version, ServiceContext serviceContext)
           
abstract  Hits search(long creatorUserId, int status, int start, int end)
           
abstract  Hits search(long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end)
           
abstract  Hits search(SearchContext searchContext)
           
abstract  Hits search(SearchContext searchContext, Query query)
           
abstract  void unlockFolder(long folderId, String lockUuid)
           
abstract  void unlockFolder(long parentFolderId, String title, String lockUuid)
           
abstract  FileEntry updateFileEntry(long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, File file, ServiceContext serviceContext)
           
abstract  FileEntry updateFileEntry(long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, InputStream is, long size, ServiceContext serviceContext)
           
abstract  Folder updateFolder(long folderId, String title, String description, ServiceContext serviceContext)
           
abstract  boolean verifyFileEntryCheckOut(long fileEntryId, String lockUuid)
           
abstract  boolean verifyFileEntryLock(long fileEntryId, String lockUuid)
           
abstract  boolean verifyInheritableLock(long folderId, String lockUuid)
           
 

Method Detail

addFileEntry

FileEntry addFileEntry(long folderId,
                       String sourceFileName,
                       String mimeType,
                       String title,
                       String description,
                       String changeLog,
                       File file,
                       ServiceContext serviceContext)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addFileEntry

FileEntry addFileEntry(long folderId,
                       String sourceFileName,
                       String mimeType,
                       String title,
                       String description,
                       String changeLog,
                       InputStream is,
                       long size,
                       ServiceContext serviceContext)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addFolder

Folder addFolder(long parentFolderId,
                 String title,
                 String description,
                 ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

cancelCheckOut

FileVersion cancelCheckOut(long fileEntryId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

checkInFileEntry

void checkInFileEntry(long fileEntryId,
                      boolean major,
                      String changeLog,
                      ServiceContext serviceContext)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

checkInFileEntry

void checkInFileEntry(long fileEntryId,
                      String lockUuid)
                      throws PortalException,
                             SystemException
Deprecated. As of 6.2.0, replaced by checkInFileEntry(long, String, ServiceContext)

Throws:
PortalException
SystemException

checkInFileEntry

void checkInFileEntry(long fileEntryId,
                      String lockUuid,
                      ServiceContext serviceContext)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

checkOutFileEntry

FileEntry checkOutFileEntry(long fileEntryId,
                            ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

checkOutFileEntry

FileEntry checkOutFileEntry(long fileEntryId,
                            String owner,
                            long expirationTime,
                            ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

copyFileEntry

FileEntry copyFileEntry(long groupId,
                        long fileEntryId,
                        long destFolderId,
                        ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

deleteFileEntry

void deleteFileEntry(long fileEntryId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

deleteFileEntry

void deleteFileEntry(long folderId,
                     String title)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

deleteFileVersion

void deleteFileVersion(long fileEntryId,
                       String version)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteFolder

void deleteFolder(long folderId)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

deleteFolder

void deleteFolder(long parentFolderId,
                  String title)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

getFileEntries

List<FileEntry> getFileEntries(long folderId,
                               int start,
                               int end,
                               OrderByComparator obc)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getFileEntries

List<FileEntry> getFileEntries(long folderId,
                               long fileEntryTypeId,
                               int start,
                               int end,
                               OrderByComparator obc)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getFileEntries

List<FileEntry> getFileEntries(long folderId,
                               String[] mimeTypes,
                               int start,
                               int end,
                               OrderByComparator obc)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getFileEntriesAndFileShortcuts

List<Object> getFileEntriesAndFileShortcuts(long folderId,
                                            int status,
                                            int start,
                                            int end)
                                            throws PortalException,
                                                   SystemException
Throws:
PortalException
SystemException

getFileEntriesAndFileShortcutsCount

int getFileEntriesAndFileShortcutsCount(long folderId,
                                        int status)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getFileEntriesAndFileShortcutsCount

int getFileEntriesAndFileShortcutsCount(long folderId,
                                        int status,
                                        String[] mimeTypes)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getFileEntriesCount

int getFileEntriesCount(long folderId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getFileEntriesCount

int getFileEntriesCount(long folderId,
                        long fileEntryTypeId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getFileEntriesCount

int getFileEntriesCount(long folderId,
                        String[] mimeTypes)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getFileEntry

FileEntry getFileEntry(long fileEntryId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getFileEntry

FileEntry getFileEntry(long folderId,
                       String title)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getFileEntryByUuid

FileEntry getFileEntryByUuid(String uuid)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getFileVersion

FileVersion getFileVersion(long fileVersionId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getFolder

Folder getFolder(long folderId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

getFolder

Folder getFolder(long parentFolderId,
                 String title)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

getFolders

List<Folder> getFolders(long parentFolderId,
                        boolean includeMountFolders,
                        int start,
                        int end,
                        OrderByComparator obc)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getFolders

List<Folder> getFolders(long parentFolderId,
                        int status,
                        boolean includeMountFolders,
                        int start,
                        int end,
                        OrderByComparator obc)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getFoldersAndFileEntriesAndFileShortcuts

List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
                                                      int status,
                                                      boolean includeMountFolders,
                                                      int start,
                                                      int end,
                                                      OrderByComparator obc)
                                                      throws PortalException,
                                                             SystemException
Throws:
PortalException
SystemException

getFoldersAndFileEntriesAndFileShortcuts

List<Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
                                                      int status,
                                                      String[] mimetypes,
                                                      boolean includeMountFolders,
                                                      int start,
                                                      int end,
                                                      OrderByComparator obc)
                                                      throws PortalException,
                                                             SystemException
Throws:
PortalException
SystemException

getFoldersAndFileEntriesAndFileShortcutsCount

int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
                                                  int status,
                                                  boolean includeMountFolders)
                                                  throws PortalException,
                                                         SystemException
Throws:
PortalException
SystemException

getFoldersAndFileEntriesAndFileShortcutsCount

int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId,
                                                  int status,
                                                  String[] mimetypes,
                                                  boolean includeMountFolders)
                                                  throws PortalException,
                                                         SystemException
Throws:
PortalException
SystemException

getFoldersCount

int getFoldersCount(long parentFolderId,
                    boolean includeMountfolders)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getFoldersCount

int getFoldersCount(long parentFolderId,
                    int status,
                    boolean includeMountfolders)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getFoldersFileEntriesCount

int getFoldersFileEntriesCount(List<Long> folderIds,
                               int status)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getMountFolders

List<Folder> getMountFolders(long parentFolderId,
                             int start,
                             int end,
                             OrderByComparator obc)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getMountFoldersCount

int getMountFoldersCount(long parentFolderId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getRepositoryFileEntries

List<FileEntry> getRepositoryFileEntries(long userId,
                                         long rootFolderId,
                                         int start,
                                         int end,
                                         OrderByComparator obc)
                                         throws PortalException,
                                                SystemException
Throws:
PortalException
SystemException

getRepositoryFileEntries

List<FileEntry> getRepositoryFileEntries(long userId,
                                         long rootFolderId,
                                         String[] mimeTypes,
                                         int status,
                                         int start,
                                         int end,
                                         OrderByComparator obc)
                                         throws PortalException,
                                                SystemException
Throws:
PortalException
SystemException

getRepositoryFileEntriesCount

int getRepositoryFileEntriesCount(long userId,
                                  long rootFolderId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getRepositoryFileEntriesCount

int getRepositoryFileEntriesCount(long userId,
                                  long rootFolderId,
                                  String[] mimeTypes,
                                  int status)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getRepositoryId

long getRepositoryId()

getSubfolderIds

void getSubfolderIds(List<Long> folderIds,
                     long folderId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getSubfolderIds

List<Long> getSubfolderIds(long folderId,
                           boolean recurse)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

lockFileEntry

Lock lockFileEntry(long fileEntryId)
                   throws PortalException,
                          SystemException
Deprecated. As of 6.2.0, replaced by checkOutFileEntry(long, ServiceContext)

Throws:
PortalException
SystemException

lockFileEntry

Lock lockFileEntry(long fileEntryId,
                   String owner,
                   long expirationTime)
                   throws PortalException,
                          SystemException
Deprecated. As of 6.2.0, replaced by checkOutFileEntry(long, String, long, ServiceContext)

Throws:
PortalException
SystemException

lockFolder

Lock lockFolder(long folderId)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

lockFolder

Lock lockFolder(long folderId,
                String owner,
                boolean inheritable,
                long expirationTime)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

moveFileEntry

FileEntry moveFileEntry(long fileEntryId,
                        long newFolderId,
                        ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

moveFolder

Folder moveFolder(long folderId,
                  long newParentFolderId,
                  ServiceContext serviceContext)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

refreshFileEntryLock

Lock refreshFileEntryLock(String lockUuid,
                          long companyId,
                          long expirationTime)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

refreshFolderLock

Lock refreshFolderLock(String lockUuid,
                       long companyId,
                       long expirationTime)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

revertFileEntry

void revertFileEntry(long fileEntryId,
                     String version,
                     ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

search

Hits search(long creatorUserId,
            int status,
            int start,
            int end)
            throws PortalException,
                   SystemException
Throws:
PortalException
SystemException

search

Hits search(long creatorUserId,
            long folderId,
            String[] mimeTypes,
            int status,
            int start,
            int end)
            throws PortalException,
                   SystemException
Throws:
PortalException
SystemException

search

Hits search(SearchContext searchContext)
            throws SearchException
Throws:
SearchException

search

Hits search(SearchContext searchContext,
            Query query)
            throws SearchException
Throws:
SearchException

unlockFolder

void unlockFolder(long folderId,
                  String lockUuid)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

unlockFolder

void unlockFolder(long parentFolderId,
                  String title,
                  String lockUuid)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateFileEntry

FileEntry updateFileEntry(long fileEntryId,
                          String sourceFileName,
                          String mimeType,
                          String title,
                          String description,
                          String changeLog,
                          boolean majorVersion,
                          File file,
                          ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

updateFileEntry

FileEntry updateFileEntry(long fileEntryId,
                          String sourceFileName,
                          String mimeType,
                          String title,
                          String description,
                          String changeLog,
                          boolean majorVersion,
                          InputStream is,
                          long size,
                          ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

updateFolder

Folder updateFolder(long folderId,
                    String title,
                    String description,
                    ServiceContext serviceContext)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

verifyFileEntryCheckOut

boolean verifyFileEntryCheckOut(long fileEntryId,
                                String lockUuid)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

verifyFileEntryLock

boolean verifyFileEntryLock(long fileEntryId,
                            String lockUuid)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

verifyInheritableLock

boolean verifyInheritableLock(long folderId,
                              String lockUuid)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

Liferay 6.2.0