Class FileSystemRepositoryFileDao
- java.lang.Object
-
- org.pentaho.platform.repository2.unified.fs.FileSystemRepositoryFileDao
-
- All Implemented Interfaces:
IRepositoryFileDao
public class FileSystemRepositoryFileDao extends Object implements IRepositoryFileDao
-
-
Constructor Summary
Constructors Constructor Description FileSystemRepositoryFileDao()
FileSystemRepositoryFileDao(File baseDir)
FileSystemRepositoryFileDao(String baseDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(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.List<org.pentaho.platform.api.repository2.unified.RepositoryFile>
getChildren(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest)
<T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData>
TgetData(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(String relPath, int depth, String filter, boolean showHidden)
Deprecated.org.pentaho.platform.api.repository2.unified.RepositoryFileTree
getTree(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest)
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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.platform.repository2.unified.IRepositoryFileDao
getAllDeletedFiles
-
-
-
-
Method Detail
-
canUnlockFile
public boolean canUnlockFile(Serializable fileId)
- Specified by:
canUnlockFile
in interfaceIRepositoryFileDao
-
getRootDir
public File getRootDir()
-
createFile
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)
- Specified by:
createFile
in interfaceIRepositoryFileDao
-
createFolder
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)
- Specified by:
createFolder
in interfaceIRepositoryFileDao
-
deleteFile
public void deleteFile(Serializable fileId, String versionMessage)
- Specified by:
deleteFile
in interfaceIRepositoryFileDao
-
deleteFileAtVersion
public void deleteFileAtVersion(Serializable fileId, Serializable versionId)
- Specified by:
deleteFileAtVersion
in interfaceIRepositoryFileDao
-
getChildren
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest)
- Specified by:
getChildren
in interfaceIRepositoryFileDao
-
getChildren
@Deprecated public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(Serializable folderId)
Deprecated.
-
getChildren
@Deprecated public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(Serializable folderId, String filter)
Deprecated.
-
getChildren
@Deprecated public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(Serializable folderId, String filter, Boolean showHiddenFiles)
Deprecated.- Specified by:
getChildren
in interfaceIRepositoryFileDao
-
getData
public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> T getData(Serializable fileId, Serializable versionId, Class<T> dataClass)
- Specified by:
getData
in interfaceIRepositoryFileDao
-
getDeletedFiles
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles(Serializable folderId, String filter)
-
getDeletedFiles
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles()
- Specified by:
getDeletedFiles
in interfaceIRepositoryFileDao
-
internalGetFile
public org.pentaho.platform.api.repository2.unified.RepositoryFile internalGetFile(File f)
-
getFile
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String relPath)
- Specified by:
getFile
in interfaceIRepositoryFileDao
-
getFile
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(Serializable fileId, Serializable versionId)
- Specified by:
getFile
in interfaceIRepositoryFileDao
-
getFileByAbsolutePath
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileByAbsolutePath(String absPath)
- Specified by:
getFileByAbsolutePath
in interfaceIRepositoryFileDao
-
getFileById
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId)
- Specified by:
getFileById
in interfaceIRepositoryFileDao
-
getFile
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String relPath, boolean loadLocaleMaps)
- Specified by:
getFile
in interfaceIRepositoryFileDao
-
getFileById
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId, boolean loadLocaleMaps)
- Specified by:
getFileById
in interfaceIRepositoryFileDao
-
getFile
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String relPath, org.pentaho.platform.api.locale.IPentahoLocale locale)
- Specified by:
getFile
in interfaceIRepositoryFileDao
-
getFileById
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId, org.pentaho.platform.api.locale.IPentahoLocale locale)
- Specified by:
getFileById
in interfaceIRepositoryFileDao
-
getFile
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String relPath, boolean loadLocaleMaps, org.pentaho.platform.api.locale.IPentahoLocale locale)
- Specified by:
getFile
in interfaceIRepositoryFileDao
-
getFileById
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId, boolean loadLocaleMaps, org.pentaho.platform.api.locale.IPentahoLocale locale)
- Specified by:
getFileById
in interfaceIRepositoryFileDao
-
getTree
public org.pentaho.platform.api.repository2.unified.RepositoryFileTree getTree(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest)
- Specified by:
getTree
in interfaceIRepositoryFileDao
-
getTree
@Deprecated public org.pentaho.platform.api.repository2.unified.RepositoryFileTree getTree(String relPath, int depth, String filter, boolean showHidden)
Deprecated.- Specified by:
getTree
in interfaceIRepositoryFileDao
-
getVersionSummaries
public List<org.pentaho.platform.api.repository2.unified.VersionSummary> getVersionSummaries(Serializable fileId)
- Specified by:
getVersionSummaries
in interfaceIRepositoryFileDao
-
getVersionSummary
public org.pentaho.platform.api.repository2.unified.VersionSummary getVersionSummary(Serializable fileId, Serializable versionId)
- Specified by:
getVersionSummary
in interfaceIRepositoryFileDao
-
lockFile
public void lockFile(Serializable fileId, String message)
- Specified by:
lockFile
in interfaceIRepositoryFileDao
-
moveFile
public void moveFile(Serializable fileId, String destRelPath, String versionMessage)
- Specified by:
moveFile
in interfaceIRepositoryFileDao
-
permanentlyDeleteFile
public void permanentlyDeleteFile(Serializable fileId, String versionMessage)
- Specified by:
permanentlyDeleteFile
in interfaceIRepositoryFileDao
-
restoreFileAtVersion
public void restoreFileAtVersion(Serializable fileId, Serializable versionId, String versionMessage)
- Specified by:
restoreFileAtVersion
in interfaceIRepositoryFileDao
-
undeleteFile
public void undeleteFile(Serializable fileId, String versionMessage)
- Specified by:
undeleteFile
in interfaceIRepositoryFileDao
-
unlockFile
public void unlockFile(Serializable fileId)
- Specified by:
unlockFile
in interfaceIRepositoryFileDao
-
updateFile
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)
- Specified by:
updateFile
in interfaceIRepositoryFileDao
-
getReferrers
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getReferrers(Serializable fileId)
- Specified by:
getReferrers
in interfaceIRepositoryFileDao
-
setRootDir
public void setRootDir(File rootDir)
-
setFileMetadata
public void setFileMetadata(Serializable fileId, Map<String,Serializable> metadataMap)
- Specified by:
setFileMetadata
in interfaceIRepositoryFileDao
-
getFileMetadata
public Map<String,Serializable> getFileMetadata(Serializable fileId)
- Specified by:
getFileMetadata
in interfaceIRepositoryFileDao
-
copyFile
public void copyFile(Serializable fileId, String destAbsPath, String versionMessage)
- Specified by:
copyFile
in interfaceIRepositoryFileDao
-
getDeletedFiles
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles(String origParentFolderPath, String filter)
- Specified by:
getDeletedFiles
in interfaceIRepositoryFileDao
-
getReservedChars
public List<Character> getReservedChars()
- Specified by:
getReservedChars
in interfaceIRepositoryFileDao
-
getAvailableLocalesForFileById
public List<Locale> getAvailableLocalesForFileById(Serializable fileId)
- Specified by:
getAvailableLocalesForFileById
in interfaceIRepositoryFileDao
-
getAvailableLocalesForFileByPath
public List<Locale> getAvailableLocalesForFileByPath(String relPath)
- Specified by:
getAvailableLocalesForFileByPath
in interfaceIRepositoryFileDao
-
getAvailableLocalesForFile
public List<Locale> getAvailableLocalesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile)
- Specified by:
getAvailableLocalesForFile
in interfaceIRepositoryFileDao
-
getLocalePropertiesForFileById
public Properties getLocalePropertiesForFileById(Serializable fileId, String locale)
- Specified by:
getLocalePropertiesForFileById
in interfaceIRepositoryFileDao
-
getLocalePropertiesForFileByPath
public Properties getLocalePropertiesForFileByPath(String relPath, String locale)
- Specified by:
getLocalePropertiesForFileByPath
in interfaceIRepositoryFileDao
-
getLocalePropertiesForFile
public Properties getLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, String locale)
- Specified by:
getLocalePropertiesForFile
in interfaceIRepositoryFileDao
-
setLocalePropertiesForFileById
public void setLocalePropertiesForFileById(Serializable fileId, String locale, Properties properties)
- Specified by:
setLocalePropertiesForFileById
in interfaceIRepositoryFileDao
-
setLocalePropertiesForFileByPath
public void setLocalePropertiesForFileByPath(String relPath, String locale, Properties properties)
- Specified by:
setLocalePropertiesForFileByPath
in interfaceIRepositoryFileDao
-
setLocalePropertiesForFile
public void setLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, String locale, Properties properties)
- Specified by:
setLocalePropertiesForFile
in interfaceIRepositoryFileDao
-
deleteLocalePropertiesForFile
public void deleteLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, String locale)
- Specified by:
deleteLocalePropertiesForFile
in interfaceIRepositoryFileDao
-
updateFolder
public org.pentaho.platform.api.repository2.unified.RepositoryFile updateFolder(org.pentaho.platform.api.repository2.unified.RepositoryFile file, String versionMessage)
- Specified by:
updateFolder
in interfaceIRepositoryFileDao
-
-