Liferay 7.0-ce-m3

com.liferay.portal.repository.liferayrepository
Class LiferayLocalRepository

java.lang.Object
  extended by com.liferay.portal.repository.liferayrepository.LiferayRepositoryBase
      extended by com.liferay.portal.repository.liferayrepository.LiferayLocalRepository
All Implemented Interfaces:
CapabilityProvider, DocumentRepository, LocalRepository

public class LiferayLocalRepository
extends LiferayRepositoryBase
implements LocalRepository


Field Summary
 
Fields inherited from class com.liferay.portal.repository.liferayrepository.LiferayRepositoryBase
dlAppHelperLocalService, dlFileEntryLocalService, dlFileEntryService, dlFileEntryTypeLocalService, dlFileVersionLocalService, dlFileVersionService, dlFolderLocalService, dlFolderService, repositoryLocalService, repositoryService, resourceLocalService
 
Constructor Summary
LiferayLocalRepository(RepositoryLocalService repositoryLocalService, RepositoryService repositoryService, DLAppHelperLocalService dlAppHelperLocalService, DLFileEntryLocalService dlFileEntryLocalService, DLFileEntryService dlFileEntryService, DLFileEntryTypeLocalService dlFileEntryTypeLocalService, DLFileVersionLocalService dlFileVersionLocalService, DLFileVersionService dlFileVersionService, DLFolderLocalService dlFolderLocalService, DLFolderService dlFolderService, ResourceLocalService resourceLocalService, long groupId, long repositoryId, long dlFolderId)
           
 
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)
           
 Folder addFolder(long userId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
 void addRepository(long groupId, String name, String description, String portletKey, UnicodeProperties typeSettingsProperties)
           
 void checkInFileEntry(long userId, long fileEntryId, boolean major, String changeLog, ServiceContext serviceContext)
           
 void checkInFileEntry(long userId, long fileEntryId, String lockUuid, ServiceContext serviceContext)
           
 FileEntry copyFileEntry(long userId, long groupId, long fileEntryId, long destFolderId, ServiceContext serviceContext)
           
 void deleteAll()
           
 void deleteFileEntry(long fileEntryId)
           
 void deleteFolder(long folderId)
           
 FileEntry getFileEntry(long fileEntryId)
           
 FileEntry getFileEntry(long folderId, String title)
           
 FileEntry getFileEntryByUuid(String uuid)
           
 FileVersion getFileVersion(long fileVersionId)
           
 Folder getFolder(long folderId)
           
 Folder getFolder(long parentFolderId, String name)
           
 List<FileEntry> getRepositoryFileEntries(long userId, long rootFolderId, int start, int end, OrderByComparator<FileEntry> obc)
           
 FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext)
           
 Folder moveFolder(long userId, long folderId, long parentFolderId, ServiceContext serviceContext)
           
 void revertFileEntry(long userId, long fileEntryId, String version, ServiceContext serviceContext)
           
 void updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
 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)
           
 Folder updateFolder(long folderId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
 UnicodeProperties updateRepository(UnicodeProperties typeSettingsProperties)
           
 
Methods inherited from class com.liferay.portal.repository.liferayrepository.LiferayRepositoryBase
addFileEntryResources, getCapability, getDefaultFileEntryTypeId, getFieldsMap, getGroupId, getLongList, getRepositoryId, isCapabilityProvided, isDefaultRepository, toFolderId, toFolderIds
 
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
getRepositoryId
 
Methods inherited from interface com.liferay.portal.kernel.repository.capabilities.CapabilityProvider
getCapability, isCapabilityProvided
 

Constructor Detail

LiferayLocalRepository

public LiferayLocalRepository(RepositoryLocalService repositoryLocalService,
                              RepositoryService repositoryService,
                              DLAppHelperLocalService dlAppHelperLocalService,
                              DLFileEntryLocalService dlFileEntryLocalService,
                              DLFileEntryService dlFileEntryService,
                              DLFileEntryTypeLocalService dlFileEntryTypeLocalService,
                              DLFileVersionLocalService dlFileVersionLocalService,
                              DLFileVersionService dlFileVersionService,
                              DLFolderLocalService dlFolderLocalService,
                              DLFolderService dlFolderService,
                              ResourceLocalService resourceLocalService,
                              long groupId,
                              long repositoryId,
                              long dlFolderId)
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

addFolder

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

addRepository

public void addRepository(long groupId,
                          String name,
                          String description,
                          String portletKey,
                          UnicodeProperties typeSettingsProperties)

checkInFileEntry

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

checkInFileEntry

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

copyFileEntry

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

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

deleteFolder

public void deleteFolder(long folderId)
                  throws PortalException
Specified by:
deleteFolder in interface DocumentRepository
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

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

getRepositoryFileEntries

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

moveFileEntry

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

moveFolder

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

revertFileEntry

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

updateAsset

public void updateAsset(long userId,
                        FileEntry fileEntry,
                        FileVersion fileVersion,
                        long[] assetCategoryIds,
                        String[] assetTagNames,
                        long[] assetLinkEntryIds)
                 throws PortalException
Specified by:
updateAsset in interface LocalRepository
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

updateFolder

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

updateRepository

public UnicodeProperties updateRepository(UnicodeProperties typeSettingsProperties)

Liferay 7.0-ce-m3