public class DefaultUnifiedRepositoryWebService extends Object implements IUnifiedRepositoryWebService
IUnifiedRepositoryWebService
that delegates to an IUnifiedRepository
instance.Modifier and Type | Field and Description |
---|---|
protected NodeRepositoryFileDataAdapter |
nodeRepositoryFileDataAdapter |
protected IUnifiedRepository |
repo |
protected RepositoryFileAclAceAdapter |
repositoryFileAclAceAdapter |
protected RepositoryFileAclAdapter |
repositoryFileAclAdapter |
protected RepositoryFileAdapter |
repositoryFileAdapter |
protected RepositoryFileTreeAdapter |
repositoryFileTreeAdapter |
protected VersionSummaryAdapter |
versionSummaryAdapter |
Constructor and Description |
---|
DefaultUnifiedRepositoryWebService()
No-arg constructor for when in Pentaho BI Server.
|
DefaultUnifiedRepositoryWebService(IUnifiedRepository repo) |
protected IUnifiedRepository repo
protected RepositoryFileAdapter repositoryFileAdapter
protected NodeRepositoryFileDataAdapter nodeRepositoryFileDataAdapter
protected RepositoryFileAclAdapter repositoryFileAclAdapter
protected RepositoryFileAclAceAdapter repositoryFileAclAceAdapter
protected VersionSummaryAdapter versionSummaryAdapter
protected RepositoryFileTreeAdapter repositoryFileTreeAdapter
public DefaultUnifiedRepositoryWebService()
public DefaultUnifiedRepositoryWebService(IUnifiedRepository repo)
public static org.slf4j.Logger getLogger()
public List<RepositoryFileDto> getChildrenFromRequest(RepositoryRequest repositoryRequest)
getChildrenFromRequest
in interface IUnifiedRepositoryWebService
@Deprecated public List<RepositoryFileDto> getChildren(String folderId)
getChildren
in interface IUnifiedRepositoryWebService
@Deprecated public List<RepositoryFileDto> getChildrenWithFilter(String folderId, String filter)
getChildrenWithFilter
in interface IUnifiedRepositoryWebService
@Deprecated public List<RepositoryFileDto> getChildrenWithFilterAndHidden(String folderId, String filter, Boolean showHiddenFiles)
getChildrenWithFilterAndHidden
in interface IUnifiedRepositoryWebService
public NodeRepositoryFileDataDto getDataAsNodeForRead(String fileId)
getDataAsNodeForRead
in interface IUnifiedRepositoryWebService
public List<NodeRepositoryFileDataDto> getDataAsNodeForReadInBatch(List<RepositoryFileDto> files)
getDataAsNodeForReadInBatch
in interface IUnifiedRepositoryWebService
public RepositoryFileDto getFile(String path)
public RepositoryFileDto getFileById(String fileId)
public RepositoryFileDto getFile(String path, boolean loadLocaleMaps, PentahoLocale locale)
getFile
in interface IUnifiedRepositoryWebService
public RepositoryFileDto getFileById(String fileId, boolean loadLocaleMaps, PentahoLocale locale)
getFileById
in interface IUnifiedRepositoryWebService
public RepositoryFileTreeDto getTree(String path, int depth, String filter, boolean showHidden)
getTree
in interface IUnifiedRepositoryWebService
public RepositoryFileTreeDto getTreeFromRequest(RepositoryRequest repositoryRequest)
getTreeFromRequest
in interface IUnifiedRepositoryWebService
public RepositoryFileDto createFolder(String parentFolderId, RepositoryFileDto file, String versionMessage)
createFolder
in interface IUnifiedRepositoryWebService
public RepositoryFileDto createFolderWithAcl(String parentFolderId, RepositoryFileDto file, RepositoryFileAclDto acl, String versionMessage)
createFolderWithAcl
in interface IUnifiedRepositoryWebService
public void deleteFile(String fileId, String versionMessage)
deleteFile
in interface IUnifiedRepositoryWebService
public void deleteFileAtVersion(String fileId, String versionId)
deleteFileAtVersion
in interface IUnifiedRepositoryWebService
public void deleteFileWithPermanentFlag(String fileId, boolean permanent, String versionMessage)
deleteFileWithPermanentFlag
in interface IUnifiedRepositoryWebService
public List<RepositoryFileDto> getDeletedFiles()
getDeletedFiles
in interface IUnifiedRepositoryWebService
public List<RepositoryFileDto> getDeletedFilesInFolder(String folderPath)
getDeletedFilesInFolder
in interface IUnifiedRepositoryWebService
public List<RepositoryFileDto> getDeletedFilesInFolderWithFilter(String folderPath, String filter)
getDeletedFilesInFolderWithFilter
in interface IUnifiedRepositoryWebService
public void lockFile(String fileId, String message)
lockFile
in interface IUnifiedRepositoryWebService
public void moveFile(String fileId, String destAbsPath, String versionMessage)
moveFile
in interface IUnifiedRepositoryWebService
public void copyFile(String fileId, String destAbsPath, String versionMessage)
copyFile
in interface IUnifiedRepositoryWebService
public void undeleteFile(String fileId, String versionMessage)
undeleteFile
in interface IUnifiedRepositoryWebService
public void unlockFile(String fileId)
unlockFile
in interface IUnifiedRepositoryWebService
public RepositoryFileDto createFile(String parentFolderId, RepositoryFileDto file, NodeRepositoryFileDataDto data, String versionMessage)
createFile
in interface IUnifiedRepositoryWebService
public RepositoryFileDto createFileWithAcl(String parentFolderId, RepositoryFileDto file, NodeRepositoryFileDataDto data, RepositoryFileAclDto acl, String versionMessage)
createFileWithAcl
in interface IUnifiedRepositoryWebService
public RepositoryFileDto updateFile(RepositoryFileDto file, NodeRepositoryFileDataDto data, String versionMessage)
updateFile
in interface IUnifiedRepositoryWebService
public boolean canUnlockFile(String fileId)
canUnlockFile
in interface IUnifiedRepositoryWebService
public RepositoryFileAclDto getAcl(String fileId)
getAcl
in interface IUnifiedRepositoryWebService
public NodeRepositoryFileDataDto getDataAsNodeForReadAtVersion(String fileId, String versionId)
getDataAsNodeForReadAtVersion
in interface IUnifiedRepositoryWebService
public List<RepositoryFileAclAceDto> getEffectiveAces(String fileId)
getEffectiveAces
in interface IUnifiedRepositoryWebService
public List<RepositoryFileAclAceDto> getEffectiveAcesWithForceFlag(String fileId, boolean forceEntriesInheriting)
getEffectiveAcesWithForceFlag
in interface IUnifiedRepositoryWebService
public RepositoryFileDto getFileAtVersion(String fileId, String versionId)
getFileAtVersion
in interface IUnifiedRepositoryWebService
public void restoreFileAtVersion(String fileId, String versionId, String versionMessage)
restoreFileAtVersion
in interface IUnifiedRepositoryWebService
public RepositoryFileAclDto updateAcl(RepositoryFileAclDto acl)
updateAcl
in interface IUnifiedRepositoryWebService
public List<VersionSummaryDto> getVersionSummaries(String fileId)
getVersionSummaries
in interface IUnifiedRepositoryWebService
public VersionSummaryDto getVersionSummary(String fileId, String versionId)
getVersionSummary
in interface IUnifiedRepositoryWebService
public List<VersionSummaryDto> getVersionSummaryInBatch(List<RepositoryFileDto> files)
getVersionSummaryInBatch
in interface IUnifiedRepositoryWebService
public boolean hasAccess(String path, List<Integer> permissions)
hasAccess
in interface IUnifiedRepositoryWebService
public List<RepositoryFileDto> getReferrers(String fileId)
getReferrers
in interface IUnifiedRepositoryWebService
public void setFileMetadata(String fileId, List<StringKeyStringValueDto> fileMetadataMap)
setFileMetadata
in interface IUnifiedRepositoryWebService
public List<StringKeyStringValueDto> getFileMetadata(String fileId)
getFileMetadata
in interface IUnifiedRepositoryWebService
public List<Character> getReservedChars()
getReservedChars
in interface IUnifiedRepositoryWebService
protected void validateEtcWriteAccess(String parentFolderId)
protected void validateEtcReadAccess(String path)
public List<PentahoLocale> getAvailableLocalesForFileById(String fileId)
getAvailableLocalesForFileById
in interface IUnifiedRepositoryWebService
public PropertiesWrapper getLocalePropertiesForFileById(String fileId, String locale)
getLocalePropertiesForFileById
in interface IUnifiedRepositoryWebService
public void setLocalePropertiesForFileByFileId(String fileId, String locale, Properties properties)
setLocalePropertiesForFileByFileId
in interface IUnifiedRepositoryWebService
public void deleteLocalePropertiesForFile(String fileId, String locale)
deleteLocalePropertiesForFile
in interface IUnifiedRepositoryWebService
public RepositoryFileDto updateFolder(RepositoryFileDto folder, String versionMessage)
updateFolder
in interface IUnifiedRepositoryWebService
Copyright © 2017 Hitachi Vantara. All rights reserved.