public class FileSystemRepositoryFileDao extends Object implements IRepositoryFileDao
Constructor and Description |
---|
FileSystemRepositoryFileDao() |
FileSystemRepositoryFileDao(File baseDir) |
FileSystemRepositoryFileDao(String baseDir) |
Modifier and Type | Method and Description |
---|---|
boolean |
canUnlockFile(Serializable fileId) |
void |
copyFile(Serializable fileId,
String destAbsPath,
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 data,
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 file,
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) |
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)
Deprecated.
|
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getChildren(Serializable folderId,
String filter)
Deprecated.
|
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getChildren(Serializable folderId,
String filter,
Boolean showHiddenFiles)
Deprecated.
|
<T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> |
getData(Serializable fileId,
Serializable versionId,
Class<T> dataClass) |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getDeletedFiles() |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getDeletedFiles(Serializable folderId,
String filter) |
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 loadLocaleMaps) |
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 loadLocaleMaps) |
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) |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getReferrers(Serializable fileId) |
List<Character> |
getReservedChars() |
File |
getRootDir() |
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) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
internalGetFile(File f) |
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 |
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 |
setRootDir(File rootDir) |
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 data,
String versionMessage) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
updateFolder(org.pentaho.platform.api.repository2.unified.RepositoryFile file,
String versionMessage) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllDeletedFiles
public FileSystemRepositoryFileDao()
public FileSystemRepositoryFileDao(String baseDir)
public FileSystemRepositoryFileDao(File baseDir)
public boolean canUnlockFile(Serializable fileId)
canUnlockFile
in interface IRepositoryFileDao
public File getRootDir()
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 data, 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 file, org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl, String versionMessage)
createFolder
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> getChildren(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest)
getChildren
in interface IRepositoryFileDao
@Deprecated public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(Serializable folderId)
@Deprecated public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(Serializable folderId, String filter)
@Deprecated public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(Serializable folderId, String filter, Boolean showHiddenFiles)
getChildren
in interface IRepositoryFileDao
public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> T getData(Serializable fileId, Serializable versionId, Class<T> dataClass)
getData
in interface IRepositoryFileDao
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles(Serializable folderId, String filter)
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles()
getDeletedFiles
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile internalGetFile(File f)
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String relPath)
getFile
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(Serializable fileId, Serializable versionId)
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 getFileById(Serializable fileId)
getFileById
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String relPath, boolean loadLocaleMaps)
getFile
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId, boolean loadLocaleMaps)
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.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.VersionSummary> getVersionSummaries(Serializable fileId)
getVersionSummaries
in interface IRepositoryFileDao
public org.pentaho.platform.api.repository2.unified.VersionSummary getVersionSummary(Serializable fileId, Serializable versionId)
getVersionSummary
in interface IRepositoryFileDao
public void lockFile(Serializable fileId, String message)
lockFile
in interface IRepositoryFileDao
public void moveFile(Serializable fileId, String destRelPath, String versionMessage)
moveFile
in interface IRepositoryFileDao
public void permanentlyDeleteFile(Serializable fileId, String versionMessage)
permanentlyDeleteFile
in interface IRepositoryFileDao
public void restoreFileAtVersion(Serializable fileId, Serializable versionId, String versionMessage)
restoreFileAtVersion
in interface IRepositoryFileDao
public void undeleteFile(Serializable fileId, String versionMessage)
undeleteFile
in interface IRepositoryFileDao
public void unlockFile(Serializable fileId)
unlockFile
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 data, String versionMessage)
updateFile
in interface IRepositoryFileDao
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getReferrers(Serializable fileId)
getReferrers
in interface IRepositoryFileDao
public void setRootDir(File rootDir)
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 void copyFile(Serializable fileId, String destAbsPath, String versionMessage)
copyFile
in interface IRepositoryFileDao
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles(String origParentFolderPath, String filter)
getDeletedFiles
in interface IRepositoryFileDao
public List<Character> getReservedChars()
getReservedChars
in interface IRepositoryFileDao
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 © 2018 Hitachi Vantara. All rights reserved.