public class ExceptionLoggingDecorator extends Object implements org.pentaho.platform.api.repository2.unified.IUnifiedRepository
IUnifiedRepository
instance and logs exceptions if they occur. Also, a new non-chained
exception is thrown. (The root cause will not leave this class.)Modifier and Type | Class and Description |
---|---|
static interface |
ExceptionLoggingDecorator.ExceptionConverter
Converts an exception before throwing to callers.
|
Constructor and Description |
---|
ExceptionLoggingDecorator(org.pentaho.platform.api.repository2.unified.IUnifiedRepository delegatee,
Map<String,ExceptionLoggingDecorator.ExceptionConverter> exceptionConverterMap) |
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 |
createFile(Serializable parentFolderId,
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 |
createFolder(Serializable parentFolderId,
org.pentaho.platform.api.repository2.unified.RepositoryFile file,
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,
String versionMessage) |
void |
deleteFile(Serializable fileId,
boolean permanent,
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) |
org.pentaho.platform.api.repository2.unified.RepositoryFileAcl |
getAcl(Serializable fileId) |
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)
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> |
getDataAtVersionForExecute(Serializable fileId,
Serializable versionId,
Class<T> dataClass) |
<T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> |
getDataAtVersionForRead(Serializable fileId,
Serializable versionId,
Class<T> dataClass) |
<T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> |
getDataForExecute(Serializable fileId,
Class<T> dataClass) |
<T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> |
getDataForExecuteInBatch(List<org.pentaho.platform.api.repository2.unified.RepositoryFile> files,
Class<T> dataClass) |
<T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> |
getDataForRead(Serializable fileId,
Class<T> dataClass) |
<T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> |
getDataForReadInBatch(List<org.pentaho.platform.api.repository2.unified.RepositoryFile> files,
Class<T> dataClass) |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getDeletedFiles() |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getDeletedFiles(String origParentFolderPath) |
List<org.pentaho.platform.api.repository2.unified.RepositoryFile> |
getDeletedFiles(String origParentFolderPath,
String filter) |
List<org.pentaho.platform.api.repository2.unified.RepositoryFileAce> |
getEffectiveAces(Serializable fileId) |
List<org.pentaho.platform.api.repository2.unified.RepositoryFileAce> |
getEffectiveAces(Serializable fileId,
boolean forceEntriesInheriting) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFile(String path) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFile(String path,
boolean loadLocaleMaps) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFile(String path,
boolean loadLocaleMaps,
org.pentaho.platform.api.locale.IPentahoLocale locale) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFile(String path,
org.pentaho.platform.api.locale.IPentahoLocale locale) |
org.pentaho.platform.api.repository2.unified.RepositoryFile |
getFileAtVersion(Serializable fileId,
Serializable versionId) |
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() |
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 path,
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) |
List<org.pentaho.platform.api.repository2.unified.VersionSummary> |
getVersionSummaryInBatch(List<org.pentaho.platform.api.repository2.unified.RepositoryFile> files) |
boolean |
hasAccess(String path,
EnumSet<org.pentaho.platform.api.repository2.unified.RepositoryFilePermission> permissions) |
void |
lockFile(Serializable fileId,
String message) |
void |
moveFile(Serializable fileId,
String destAbsPath,
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 |
undeleteFile(Serializable fileId,
String versionMessage) |
void |
unlockFile(Serializable fileId) |
org.pentaho.platform.api.repository2.unified.RepositoryFileAcl |
updateAcl(org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl) |
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 folder,
String versionMessage) |
public ExceptionLoggingDecorator(org.pentaho.platform.api.repository2.unified.IUnifiedRepository delegatee, Map<String,ExceptionLoggingDecorator.ExceptionConverter> exceptionConverterMap)
public boolean canUnlockFile(Serializable fileId)
canUnlockFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
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, String versionMessage)
createFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFile createFolder(Serializable parentFolderId, org.pentaho.platform.api.repository2.unified.RepositoryFile file, String versionMessage)
createFolder
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void deleteFile(Serializable fileId, boolean permanent, String versionMessage)
deleteFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void deleteFile(Serializable fileId, String versionMessage)
deleteFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void deleteFileAtVersion(Serializable fileId, Serializable versionId)
deleteFileAtVersion
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFileAcl getAcl(Serializable fileId)
getAcl
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest)
getChildren
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
@Deprecated public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(Serializable folderId)
getChildren
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
@Deprecated public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(Serializable folderId, String filter)
getChildren
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
@Deprecated public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren(Serializable folderId, String filter, Boolean showHiddenFiles)
getChildren
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> T getDataAtVersionForExecute(Serializable fileId, Serializable versionId, Class<T> dataClass)
getDataAtVersionForExecute
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> T getDataAtVersionForRead(Serializable fileId, Serializable versionId, Class<T> dataClass)
getDataAtVersionForRead
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> T getDataForExecute(Serializable fileId, Class<T> dataClass)
getDataForExecute
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> List<T> getDataForExecuteInBatch(List<org.pentaho.platform.api.repository2.unified.RepositoryFile> files, Class<T> dataClass)
getDataForExecuteInBatch
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> T getDataForRead(Serializable fileId, Class<T> dataClass)
getDataForRead
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> List<T> getDataForReadInBatch(List<org.pentaho.platform.api.repository2.unified.RepositoryFile> files, Class<T> dataClass)
getDataForReadInBatch
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles(String origParentFolderPath)
getDeletedFiles
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles(String origParentFolderPath, String filter)
getDeletedFiles
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles()
getDeletedFiles
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getAllDeletedFiles()
getAllDeletedFiles
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<org.pentaho.platform.api.repository2.unified.RepositoryFileAce> getEffectiveAces(Serializable fileId)
getEffectiveAces
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<org.pentaho.platform.api.repository2.unified.RepositoryFileAce> getEffectiveAces(Serializable fileId, boolean forceEntriesInheriting)
getEffectiveAces
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String path)
getFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String path, boolean loadLocaleMaps)
getFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileAtVersion(Serializable fileId, Serializable versionId)
getFileAtVersion
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId)
getFileById
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId, boolean loadLocaleMaps)
getFileById
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String path, org.pentaho.platform.api.locale.IPentahoLocale locale)
getFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId, org.pentaho.platform.api.locale.IPentahoLocale locale)
getFileById
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile(String path, boolean loadLocaleMaps, org.pentaho.platform.api.locale.IPentahoLocale locale)
getFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById(Serializable fileId, boolean loadLocaleMaps, org.pentaho.platform.api.locale.IPentahoLocale locale)
getFileById
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<org.pentaho.platform.api.repository2.unified.VersionSummary> getVersionSummaries(Serializable fileId)
getVersionSummaries
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.VersionSummary getVersionSummary(Serializable fileId, Serializable versionId)
getVersionSummary
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<org.pentaho.platform.api.repository2.unified.VersionSummary> getVersionSummaryInBatch(List<org.pentaho.platform.api.repository2.unified.RepositoryFile> files)
getVersionSummaryInBatch
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public boolean hasAccess(String path, EnumSet<org.pentaho.platform.api.repository2.unified.RepositoryFilePermission> permissions)
hasAccess
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void lockFile(Serializable fileId, String message)
lockFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void moveFile(Serializable fileId, String destAbsPath, String versionMessage)
moveFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void copyFile(Serializable fileId, String destAbsPath, String versionMessage)
copyFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void restoreFileAtVersion(Serializable fileId, Serializable versionId, String versionMessage)
restoreFileAtVersion
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void undeleteFile(Serializable fileId, String versionMessage)
undeleteFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void unlockFile(Serializable fileId)
unlockFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFileAcl updateAcl(org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl)
updateAcl
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
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 org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFileTree getTree(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest)
getTree
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
@Deprecated public org.pentaho.platform.api.repository2.unified.RepositoryFileTree getTree(String path, int depth, String filter, boolean showHidden)
getTree
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
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 org.pentaho.platform.api.repository2.unified.IUnifiedRepository
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 org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getReferrers(Serializable fileId)
getReferrers
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void setFileMetadata(Serializable fileId, Map<String,Serializable> metadataMap)
setFileMetadata
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public Map<String,Serializable> getFileMetadata(Serializable fileId)
getFileMetadata
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<Character> getReservedChars()
getReservedChars
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<Locale> getAvailableLocalesForFileById(Serializable fileId)
getAvailableLocalesForFileById
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<Locale> getAvailableLocalesForFileByPath(String relPath)
getAvailableLocalesForFileByPath
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public List<Locale> getAvailableLocalesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile)
getAvailableLocalesForFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public Properties getLocalePropertiesForFileById(Serializable fileId, String locale)
getLocalePropertiesForFileById
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public Properties getLocalePropertiesForFileByPath(String relPath, String locale)
getLocalePropertiesForFileByPath
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public Properties getLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, String locale)
getLocalePropertiesForFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void setLocalePropertiesForFileById(Serializable fileId, String locale, Properties properties)
setLocalePropertiesForFileById
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void setLocalePropertiesForFileByPath(String relPath, String locale, Properties properties)
setLocalePropertiesForFileByPath
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void setLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, String locale, Properties properties)
setLocalePropertiesForFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public void deleteLocalePropertiesForFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, String locale)
deleteLocalePropertiesForFile
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
public org.pentaho.platform.api.repository2.unified.RepositoryFile updateFolder(org.pentaho.platform.api.repository2.unified.RepositoryFile folder, String versionMessage)
updateFolder
in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
Copyright © 2019 Hitachi Vantara. All rights reserved.