public class LiferayLocalRepository extends LiferayRepositoryBase implements com.liferay.portal.kernel.repository.LocalRepository
dlAppHelperLocalService, dlFileEntryLocalService, dlFileEntryService, dlFileEntryTypeLocalService, dlFileVersionLocalService, dlFileVersionService, dlFolderLocalService, dlFolderService, repositoryLocalService, repositoryService, resourceLocalService| Constructor and Description |
|---|
LiferayLocalRepository(com.liferay.portal.service.RepositoryLocalService repositoryLocalService,
com.liferay.portal.service.RepositoryService repositoryService,
com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService,
com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService,
com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService,
com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService,
com.liferay.portal.service.ResourceLocalService resourceLocalService,
long repositoryId) |
LiferayLocalRepository(com.liferay.portal.service.RepositoryLocalService repositoryLocalService,
com.liferay.portal.service.RepositoryService repositoryService,
com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService,
com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService,
com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService,
com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService,
com.liferay.portal.service.ResourceLocalService resourceLocalService,
long folderId,
long fileEntryId,
long fileVersionId) |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.kernel.repository.model.FileEntry |
addFileEntry(long userId,
long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.FileEntry |
addFileEntry(long userId,
long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.Folder |
addFolder(long userId,
long parentFolderId,
java.lang.String title,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext) |
void |
addRepository(long groupId,
java.lang.String name,
java.lang.String description,
java.lang.String portletKey,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) |
void |
deleteAll() |
void |
deleteFileEntry(long fileEntryId) |
void |
deleteFolder(long folderId) |
com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntry(long fileEntryId) |
com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntry(long folderId,
java.lang.String title) |
com.liferay.portal.kernel.repository.model.FileEntry |
getFileEntryByUuid(java.lang.String uuid) |
com.liferay.portal.kernel.repository.model.FileVersion |
getFileVersion(long fileVersionId) |
com.liferay.portal.kernel.repository.model.Folder |
getFolder(long folderId) |
com.liferay.portal.kernel.repository.model.Folder |
getFolder(long parentFolderId,
java.lang.String title) |
protected void |
initByFileEntryId(long fileEntryId) |
protected void |
initByFileVersionId(long fileVersionId) |
protected void |
initByFolderId(long folderId) |
protected void |
initByRepositoryId(long repositoryId) |
com.liferay.portal.kernel.repository.model.FileEntry |
moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
com.liferay.portal.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.Folder |
moveFolder(long userId,
long folderId,
long parentFolderId,
com.liferay.portal.service.ServiceContext serviceContext) |
void |
updateAsset(long userId,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds) |
com.liferay.portal.kernel.repository.model.FileEntry |
updateFileEntry(long userId,
long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.FileEntry |
updateFileEntry(long userId,
long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.repository.model.Folder |
updateFolder(long folderId,
long parentFolderId,
java.lang.String title,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.util.UnicodeProperties |
updateRepository(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) |
addFileEntryResources, getDefaultFileEntryTypeId, getFieldsMap, getGroupId, getLongList, getRepositoryId, isDefaultRepository, setDlFolderId, setGroupId, setRepositoryId, toFolderId, toFolderIdstoFileEntries, toFileEntriesAndFolders, toFileVersions, toFolderspublic LiferayLocalRepository(com.liferay.portal.service.RepositoryLocalService repositoryLocalService,
com.liferay.portal.service.RepositoryService repositoryService,
com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService,
com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService,
com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService,
com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService,
com.liferay.portal.service.ResourceLocalService resourceLocalService,
long repositoryId)
public LiferayLocalRepository(com.liferay.portal.service.RepositoryLocalService repositoryLocalService,
com.liferay.portal.service.RepositoryService repositoryService,
com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService dlAppHelperLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService dlFileEntryLocalService,
com.liferay.portlet.documentlibrary.service.DLFileEntryService dlFileEntryService,
com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService dlFileVersionLocalService,
com.liferay.portlet.documentlibrary.service.DLFileVersionService dlFileVersionService,
com.liferay.portlet.documentlibrary.service.DLFolderLocalService dlFolderLocalService,
com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService,
com.liferay.portal.service.ResourceLocalService resourceLocalService,
long folderId,
long fileEntryId,
long fileVersionId)
throws com.liferay.portal.security.auth.PrincipalException
com.liferay.portal.security.auth.PrincipalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(long userId,
long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
addFileEntry in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry addFileEntry(long userId,
long folderId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
addFileEntry in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.Folder addFolder(long userId,
long parentFolderId,
java.lang.String title,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
addFolder in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void addRepository(long groupId,
java.lang.String name,
java.lang.String description,
java.lang.String portletKey,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
public void deleteAll()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deleteAll in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deleteFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deleteFileEntry in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deleteFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
deleteFolder in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getFileEntry in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getFileEntry(long folderId,
java.lang.String title)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getFileEntry in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry getFileEntryByUuid(java.lang.String uuid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getFileEntryByUuid in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileVersion getFileVersion(long fileVersionId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getFileVersion in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.Folder getFolder(long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getFolder in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.Folder getFolder(long parentFolderId,
java.lang.String title)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getFolder in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry moveFileEntry(long userId,
long fileEntryId,
long newFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
moveFileEntry in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.Folder moveFolder(long userId,
long folderId,
long parentFolderId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
moveFolder in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void updateAsset(long userId,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
updateAsset in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(long userId,
long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
updateFileEntry in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry updateFileEntry(long userId,
long fileEntryId,
java.lang.String sourceFileName,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String changeLog,
boolean majorVersion,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
updateFileEntry in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.repository.model.Folder updateFolder(long folderId,
long parentFolderId,
java.lang.String title,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
updateFolder in interface com.liferay.portal.kernel.repository.LocalRepositorycom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.util.UnicodeProperties updateRepository(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
protected void initByFileEntryId(long fileEntryId)
throws com.liferay.portal.security.auth.PrincipalException
initByFileEntryId in class LiferayRepositoryBasecom.liferay.portal.security.auth.PrincipalExceptionprotected void initByFileVersionId(long fileVersionId)
throws com.liferay.portal.security.auth.PrincipalException
initByFileVersionId in class LiferayRepositoryBasecom.liferay.portal.security.auth.PrincipalExceptionprotected void initByFolderId(long folderId)
throws com.liferay.portal.security.auth.PrincipalException
initByFolderId in class LiferayRepositoryBasecom.liferay.portal.security.auth.PrincipalExceptionprotected void initByRepositoryId(long repositoryId)
initByRepositoryId in class LiferayRepositoryBase