Liferay 6.2-ce-ga5

com.liferay.portal.repository.liferayrepository
Class LiferayLocalRepository

java.lang.Object
  extended by com.liferay.portal.repository.liferayrepository.util.LiferayBase
      extended by com.liferay.portal.repository.liferayrepository.LiferayRepositoryBase
          extended by com.liferay.portal.repository.liferayrepository.LiferayLocalRepository
All Implemented Interfaces:
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 repositoryId)
           
LiferayLocalRepository(RepositoryLocalService repositoryLocalService, RepositoryService repositoryService, DLAppHelperLocalService dlAppHelperLocalService, DLFileEntryLocalService dlFileEntryLocalService, DLFileEntryService dlFileEntryService, DLFileEntryTypeLocalService dlFileEntryTypeLocalService, DLFileVersionLocalService dlFileVersionLocalService, DLFileVersionService dlFileVersionService, DLFolderLocalService dlFolderLocalService, DLFolderService dlFolderService, ResourceLocalService resourceLocalService, long folderId, long fileEntryId, long fileVersionId)
           
 
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 title, String description, ServiceContext serviceContext)
           
 void addRepository(long groupId, String name, String description, String portletKey, UnicodeProperties typeSettingsProperties)
           
 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 title)
           
protected  void initByFileEntryId(long fileEntryId)
           
protected  void initByFileVersionId(long fileVersionId)
           
protected  void initByFolderId(long folderId)
           
protected  void initByRepositoryId(long repositoryId)
           
 FileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext)
           
 Folder moveFolder(long userId, long folderId, long parentFolderId, 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 title, String description, ServiceContext serviceContext)
           
 UnicodeProperties updateRepository(UnicodeProperties typeSettingsProperties)
           
 
Methods inherited from class com.liferay.portal.repository.liferayrepository.LiferayRepositoryBase
addFileEntryResources, getDefaultFileEntryTypeId, getFieldsMap, getGroupId, getLongList, getRepositoryId, isDefaultRepository, setDlFolderId, setGroupId, setRepositoryId, toFolderId, toFolderIds
 
Methods inherited from class com.liferay.portal.repository.liferayrepository.util.LiferayBase
toFileEntries, toFileEntriesAndFolders, toFileVersions, toFolders
 
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.LocalRepository
getRepositoryId
 

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 repositoryId)

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 folderId,
                              long fileEntryId,
                              long fileVersionId)
                       throws PrincipalException
Throws:
PrincipalException
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,
                              SystemException
Specified by:
addFileEntry in interface LocalRepository
Throws:
PortalException
SystemException

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,
                              SystemException
Specified by:
addFileEntry in interface LocalRepository
Throws:
PortalException
SystemException

addFolder

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

addRepository

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

deleteAll

public void deleteAll()
               throws PortalException,
                      SystemException
Specified by:
deleteAll in interface LocalRepository
Throws:
PortalException
SystemException

deleteFileEntry

public void deleteFileEntry(long fileEntryId)
                     throws PortalException,
                            SystemException
Specified by:
deleteFileEntry in interface LocalRepository
Throws:
PortalException
SystemException

deleteFolder

public void deleteFolder(long folderId)
                  throws PortalException,
                         SystemException
Specified by:
deleteFolder in interface LocalRepository
Throws:
PortalException
SystemException

getFileEntry

public FileEntry getFileEntry(long fileEntryId)
                       throws PortalException,
                              SystemException
Specified by:
getFileEntry in interface LocalRepository
Throws:
PortalException
SystemException

getFileEntry

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

getFileEntryByUuid

public FileEntry getFileEntryByUuid(String uuid)
                             throws PortalException,
                                    SystemException
Specified by:
getFileEntryByUuid in interface LocalRepository
Throws:
PortalException
SystemException

getFileVersion

public FileVersion getFileVersion(long fileVersionId)
                           throws PortalException,
                                  SystemException
Specified by:
getFileVersion in interface LocalRepository
Throws:
PortalException
SystemException

getFolder

public Folder getFolder(long folderId)
                 throws PortalException,
                        SystemException
Specified by:
getFolder in interface LocalRepository
Throws:
PortalException
SystemException

getFolder

public Folder getFolder(long parentFolderId,
                        String title)
                 throws PortalException,
                        SystemException
Specified by:
getFolder in interface LocalRepository
Throws:
PortalException
SystemException

moveFileEntry

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

moveFolder

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

updateAsset

public void updateAsset(long userId,
                        FileEntry fileEntry,
                        FileVersion fileVersion,
                        long[] assetCategoryIds,
                        String[] assetTagNames,
                        long[] assetLinkEntryIds)
                 throws PortalException,
                        SystemException
Specified by:
updateAsset in interface LocalRepository
Throws:
PortalException
SystemException

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,
                                 SystemException
Specified by:
updateFileEntry in interface LocalRepository
Throws:
PortalException
SystemException

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,
                                 SystemException
Specified by:
updateFileEntry in interface LocalRepository
Throws:
PortalException
SystemException

updateFolder

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

updateRepository

public UnicodeProperties updateRepository(UnicodeProperties typeSettingsProperties)

initByFileEntryId

protected void initByFileEntryId(long fileEntryId)
                          throws PrincipalException
Specified by:
initByFileEntryId in class LiferayRepositoryBase
Throws:
PrincipalException

initByFileVersionId

protected void initByFileVersionId(long fileVersionId)
                            throws PrincipalException
Specified by:
initByFileVersionId in class LiferayRepositoryBase
Throws:
PrincipalException

initByFolderId

protected void initByFolderId(long folderId)
                       throws PrincipalException
Specified by:
initByFolderId in class LiferayRepositoryBase
Throws:
PrincipalException

initByRepositoryId

protected void initByRepositoryId(long repositoryId)
Specified by:
initByRepositoryId in class LiferayRepositoryBase

Liferay 6.2-ce-ga5