Liferay 6.2.0

com.liferay.portal.kernel.repository
Interface LocalRepository

All Known Implementing Classes:
DefaultLocalRepositoryImpl, LocalRepositoryProxyBean

public interface LocalRepository


Method Summary
abstract  FileEntry addFileEntry(long userId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, File file, ServiceContext serviceContext)
           
abstract  FileEntry addFileEntry(long userId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, InputStream is, long size, ServiceContext serviceContext)
           
abstract  Folder addFolder(long userId, long parentFolderId, String title, String description, ServiceContext serviceContext)
           
abstract  void deleteAll()
           
abstract  void deleteFileEntry(long fileEntryId)
           
abstract  void deleteFolder(long folderId)
           
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  long getRepositoryId()
           
abstract  FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext)
           
abstract  Folder moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext)
           
abstract  void updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
abstract  FileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, File file, ServiceContext serviceContext)
           
abstract  FileEntry updateFileEntry(long userId, 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, long parentFolderId, String title, String description, ServiceContext serviceContext)
           
 

Method Detail

addFileEntry

FileEntry addFileEntry(long userId,
                       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 userId,
                       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 userId,
                 long parentFolderId,
                 String title,
                 String description,
                 ServiceContext serviceContext)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

deleteAll

void deleteAll()
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

deleteFileEntry

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

deleteFolder

void deleteFolder(long folderId)
                  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

getRepositoryId

long getRepositoryId()

moveFileEntry

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

moveFolder

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

updateAsset

void updateAsset(long userId,
                 FileEntry fileEntry,
                 FileVersion fileVersion,
                 long[] assetCategoryIds,
                 String[] assetTagNames,
                 long[] assetLinkEntryIds)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

updateFileEntry

FileEntry updateFileEntry(long userId,
                          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 userId,
                          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,
                    long parentFolderId,
                    String title,
                    String description,
                    ServiceContext serviceContext)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

Liferay 6.2.0