public class JcrRepositoryFileDao extends Object implements IRepositoryFileDao
Constructor and Description |
---|
JcrRepositoryFileDao(org.springframework.extensions.jcr.JcrTemplate jcrTemplate,
List<ITransformer<org.pentaho.platform.api.repository2.unified.IRepositoryFileData>> transformers,
ILockHelper lockHelper,
IDeleteHelper deleteHelper,
IPathConversionHelper pathConversionHelper,
IRepositoryFileAclDao aclDao,
org.pentaho.platform.api.repository2.unified.IRepositoryDefaultAclHandler defaultAclHandler) |
JcrRepositoryFileDao(org.springframework.extensions.jcr.JcrTemplate jcrTemplate,
List<ITransformer<org.pentaho.platform.api.repository2.unified.IRepositoryFileData>> transformers,
ILockHelper lockHelper,
IDeleteHelper deleteHelper,
IPathConversionHelper pathConversionHelper,
IRepositoryFileAclDao aclDao,
org.pentaho.platform.api.repository2.unified.IRepositoryDefaultAclHandler defaultAclHandler,
org.pentaho.platform.api.repository2.unified.IRepositoryAccessVoterManager accessVoterManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
canUnlockFile(Serializable fileId) |
void |
copyFile(Serializable fileId,
String destRelPath,
String versionMessage) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
createFile(Serializable parentFolderId,
org.pentaho.platform.api.repository2.unified.RepositoryFile file,
org.pentaho.platform.api.repository2.unified.IRepositoryFileData content,
org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl,
String versionMessage) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
createFolder(Serializable parentFolderId,
org.pentaho.platform.api.repository2.unified.RepositoryFile folder,
org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl,
String versionMessage) |
void |
deleteFile(Serializable fileId,
String versionMessage) |
void |
deleteFileAtVersion(Serializable fileId,
Serializable versionId) |
void |
deleteLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile,
String locale) |
protected ITransformer<org.pentaho.platform.api.repository2.unified.IRepositoryFileData> |
findTransformerForRead(String contentType,
Class<? extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> clazz) |
protected ITransformer<org.pentaho.platform.api.repository2.unified.IRepositoryFileData> |
findTransformerForWrite(Class<? extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> clazz) |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getAllDeletedFiles() |
List<Locale> |
getAvailableLocalesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile) |
List<Locale> |
getAvailableLocalesForFileById(Serializable fileId) |
List<Locale> |
getAvailableLocalesForFileByPath(String relPath) |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getChildren(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest) |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getChildren(Serializable folderId,
String filter,
Boolean showHiddenFiles) |
<T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> |
getData(Serializable fileId,
Serializable versionId,
Class<T> contentClass) |
org.pentaho.platform.api.repository2.unified.IRepositoryDefaultAclHandler |
getDefaultAclHandler() |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getDeletedFiles() |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getDeletedFiles(String origParentFolderPath,
String filter) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFile(Serializable fileId,
Serializable versionId) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFile(String relPath) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFile(String relPath,
boolean loadMaps) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFile(String relPath,
boolean loadLocaleMaps,
org.pentaho.platform.api.locale.IPentahoLocale locale) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFile(String relPath,
org.pentaho.platform.api.locale.IPentahoLocale locale) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFileByAbsolutePath(String absPath) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFileById(Serializable fileId) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFileById(Serializable fileId,
boolean loadMaps) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFileById(Serializable fileId,
boolean loadLocaleMaps,
org.pentaho.platform.api.locale.IPentahoLocale locale) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFileById(Serializable fileId,
org.pentaho.platform.api.locale.IPentahoLocale locale) |
Map<String,Serializable> |
getFileMetadata(Serializable fileId) |
Properties |
getLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile,
String locale) |
Properties |
getLocalePropertiesForFileById(Serializable fileId,
String locale) |
Properties |
getLocalePropertiesForFileByPath(String relPath,
String locale) |
protected org.pentaho.platform.api.repository2.unified.RepositoryFile |
getReferrerFile(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
javax.jcr.Property referrerProperty) |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getReferrers(Serializable fileId) |
List<Character> |
getReservedChars() |
org.pentaho.platform.api.repository2.unified.RepositoryFileTree |
getTree(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest) |
org.pentaho.platform.api.repository2.unified.RepositoryFileTree |
getTree(String relPath,
int depth,
String filter,
boolean showHidden)
Deprecated.
|
List<org.pentaho.platform.api.repository2.unified.VersionSummary> |
getVersionSummaries(Serializable fileId) |
org.pentaho.platform.api.repository2.unified.VersionSummary |
getVersionSummary(Serializable fileId,
Serializable versionId) |
void |
lockFile(Serializable fileId,
String message) |
void |
moveFile(Serializable fileId,
String destRelPath,
String versionMessage) |
void |
permanentlyDeleteFile(Serializable fileId,
String versionMessage)
|
void |
restoreFileAtVersion(Serializable fileId,
Serializable versionId,
String versionMessage) |
void |
setDefaultAclHandler(org.pentaho.platform.api.repository2.unified.IRepositoryDefaultAclHandler defaultAclHandler) |
void |
setFileMetadata(Serializable fileId,
Map<String,Serializable> metadataMap) |
void |
setLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile,
String locale,
Properties properties) |
void |
setLocalePropertiesForFileById(Serializable fileId,
String locale,
Properties properties) |
void |
setLocalePropertiesForFileByPath(String relPath,
String locale,
Properties properties) |
void |
undeleteFile(Serializable fileId,
String versionMessage) |
void |
unlockFile(Serializable fileId) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
updateFile(org.pentaho.platform.api.repository2.unified.RepositoryFile file,
org.pentaho.platform.api.repository2.unified.IRepositoryFileData content,
String versionMessage) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
updateFolder(org.pentaho.platform.api.repository2.unified.RepositoryFile file,
String versionMessage) |
public JcrRepositoryFileDao(org.springframework.extensions.jcr.JcrTemplate jcrTemplate, List<ITransformer<org.pentaho.platform.api.repository2.unified.IRepositoryFileData>> transformers, ILockHelper lockHelper, IDeleteHelper deleteHelper, IPathConversionHelper pathConversionHelper, IRepositoryFileAclDao aclDao, org.pentaho.platform.api.repository2.unified.IRepositoryDefaultAclHandler defaultAclHandler)
public JcrRepositoryFileDao(org.springframework.extensions.jcr.JcrTemplate jcrTemplate, List<ITransformer<org.pentaho.platform.api.repository2.unified.IRepositoryFileData>> transformers, ILockHelper lockHelper, IDeleteHelper deleteHelper, IPathConversionHelper pathConversionHelper, IRepositoryFileAclDao aclDao, org.pentaho.platform.api.repository2.unified.IRepositoryDefaultAclHandler defaultAclHandler, org.pentaho.platform.api.repository2.unified.IRepositoryAccessVoterManager accessVoterManager)
protected ITransformer<org.pentaho.platform.api.repository2.unified.IRepositoryFileData> findTransformerForRead(String contentType, Class<? extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> clazz)
protected ITransformer<org.pentaho.platform.api.repository2.unified.IRepositoryFileData> findTransformerForWrite(Class<? extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> clazz)
public org.pentaho.platform.api.repository2.unified.RepositoryFile createFile(Serializable parentFolderId, org.pentaho.platform.api.repository2.unified.RepositoryFile file, org.pentaho.platform.api.repository2.unified.IRepositoryFileData content, org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl, String versionMessage)
createFile
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile createFolder(Serializable parentFolderId, org.pentaho.platform.api.repository2.unified.RepositoryFile folder, org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl, String versionMessage)
createFolder
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId)
getFileById
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId, boolean loadMaps)
getFileById
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String relPath, org.pentaho.platform.api.locale.IPentahoLocale locale)
getFile
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId, org.pentaho.platform.api.locale.IPentahoLocale locale)
getFileById
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String relPath, boolean loadLocaleMaps, org.pentaho.platform.api.locale.IPentahoLocale locale)
getFile
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId, boolean loadLocaleMaps, org.pentaho.platform.api.locale.IPentahoLocale locale)
getFileById
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String relPath)
getFile
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileByAbsolutePath(String absPath)
getFileByAbsolutePath
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String relPath, boolean loadMaps)
getFile
in interface IRepositoryFileDao
public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> T getData(Serializable fileId, Serializable versionId, Class<T> contentClass)
getData
in interface IRepositoryFileDao
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest)
getChildren
in interface IRepositoryFileDao
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(Serializable folderId, String filter, Boolean showHiddenFiles)
getChildren
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile updateFile(org.pentaho.platform.api.repository2.unified.RepositoryFile file, org.pentaho.platform.api.repository2.unified.IRepositoryFileData content, String versionMessage)
updateFile
in interface IRepositoryFileDao
public void lockFile(Serializable fileId, String message)
lockFile
in interface IRepositoryFileDao
public void unlockFile(Serializable fileId)
unlockFile
in interface IRepositoryFileDao
public List<org.pentaho.platform.api.repository2.unified.VersionSummary> getVersionSummaries(Serializable fileId)
getVersionSummaries
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(Serializable fileId, Serializable versionId)
getFile
in interface IRepositoryFileDao
public void deleteFile(Serializable fileId, String versionMessage)
deleteFile
in interface IRepositoryFileDao
public void deleteFileAtVersion(Serializable fileId, Serializable versionId)
deleteFileAtVersion
in interface IRepositoryFileDao
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles(String origParentFolderPath, String filter)
getDeletedFiles
in interface IRepositoryFileDao
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles()
getDeletedFiles
in interface IRepositoryFileDao
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getAllDeletedFiles()
getAllDeletedFiles
in interface IRepositoryFileDao
public void permanentlyDeleteFile(Serializable fileId, String versionMessage)
No checkout needed as .trash is not versioned.
permanentlyDeleteFile
in interface IRepositoryFileDao
public void undeleteFile(Serializable fileId, String versionMessage)
undeleteFile
in interface IRepositoryFileDao
public void moveFile(Serializable fileId, String destRelPath, String versionMessage)
moveFile
in interface IRepositoryFileDao
public void copyFile(Serializable fileId, String destRelPath, String versionMessage)
copyFile
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.VersionSummary getVersionSummary(Serializable fileId, Serializable versionId)
getVersionSummary
in interface IRepositoryFileDao
public void restoreFileAtVersion(Serializable fileId, Serializable versionId, String versionMessage)
restoreFileAtVersion
in interface IRepositoryFileDao
public boolean canUnlockFile(Serializable fileId)
canUnlockFile
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFileTree getTree(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest)
getTree
in interface IRepositoryFileDao
@Deprecated public org.pentaho.platform.api.repository2.unified.RepositoryFileTree getTree(String relPath, int depth, String filter, boolean showHidden)
getTree
in interface IRepositoryFileDao
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getReferrers(Serializable fileId)
getReferrers
in interface IRepositoryFileDao
protected org.pentaho.platform.api.repository2.unified.RepositoryFile getReferrerFile(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, javax.jcr.Property referrerProperty) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void setFileMetadata(Serializable fileId, Map<String,Serializable> metadataMap)
setFileMetadata
in interface IRepositoryFileDao
public Map<String,Serializable> getFileMetadata(Serializable fileId)
getFileMetadata
in interface IRepositoryFileDao
public List<Character> getReservedChars()
getReservedChars
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.IRepositoryDefaultAclHandler getDefaultAclHandler()
public void setDefaultAclHandler(org.pentaho.platform.api.repository2.unified.IRepositoryDefaultAclHandler defaultAclHandler)
public List<Locale> getAvailableLocalesForFileById(Serializable fileId)
getAvailableLocalesForFileById
in interface IRepositoryFileDao
public List<Locale> getAvailableLocalesForFileByPath(String relPath)
getAvailableLocalesForFileByPath
in interface IRepositoryFileDao
public List<Locale> getAvailableLocalesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile)
getAvailableLocalesForFile
in interface IRepositoryFileDao
public Properties getLocalePropertiesForFileById(Serializable fileId, String locale)
getLocalePropertiesForFileById
in interface IRepositoryFileDao
public Properties getLocalePropertiesForFileByPath(String relPath, String locale)
getLocalePropertiesForFileByPath
in interface IRepositoryFileDao
public Properties getLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, String locale)
getLocalePropertiesForFile
in interface IRepositoryFileDao
public void setLocalePropertiesForFileById(Serializable fileId, String locale, Properties properties)
setLocalePropertiesForFileById
in interface IRepositoryFileDao
public void setLocalePropertiesForFileByPath(String relPath, String locale, Properties properties)
setLocalePropertiesForFileByPath
in interface IRepositoryFileDao
public void setLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, String locale, Properties properties)
setLocalePropertiesForFile
in interface IRepositoryFileDao
public void deleteLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, String locale)
deleteLocalePropertiesForFile
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile updateFolder(org.pentaho.platform.api.repository2.unified.RepositoryFile file, String versionMessage)
updateFolder
in interface IRepositoryFileDao
Copyright © 2019 Hitachi Vantara. All rights reserved.