|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.test.platform.SolutionRepositoryAdapter
public class SolutionRepositoryAdapter
| Field Summary |
|---|
| Fields inherited from interface org.pentaho.platform.api.repository.ISolutionRepository |
|---|
ACTION_ADMIN, ACTION_CREATE, ACTION_DELETE, ACTION_EXECUTE, ACTION_SHARE, ACTION_SUBSCRIBE, ACTION_UPDATE, FILE_ADD_FAILED, FILE_ADD_INVALID_PUBLISH_PASSWORD, FILE_ADD_INVALID_USER_CREDENTIALS, FILE_ADD_SUCCESSFUL, FILE_EXISTS, INDEX_FILENAME, REPOSITORY_SERVICE_CACHE_REGION, SEPARATOR |
| Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
|---|
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
| Constructor Summary | |
|---|---|
SolutionRepositoryAdapter()
|
|
| Method Summary | |
|---|---|
void |
addPermission(ISolutionFile file,
IPermissionRecipient recipient,
IPermissionMask permission)
Adds to the ACL associated with aFile. |
int |
addSolutionFile(String baseUrl,
String path,
String fileName,
byte[] data,
boolean overwrite)
Adds a solution to the solution repository defined by the url that is built by concatenating baseUrl, path, and fileName. |
int |
addSolutionFile(String baseUrl,
String path,
String fileName,
File f,
boolean overwrite)
Adds a solution to the solution repository defined by the url that is built by concatenating baseUrl, path, and fileName. |
ISolutionFile |
createFolder(File newFolder)
This method creates a new folder in the Repository |
void |
debug(String message)
Log a message object with the DEBUG Level. |
void |
debug(String message,
Throwable error)
Log a message with the DEBUG level including the stack
trace of the Throwable error passed as parameter. |
void |
error(String message)
Log a message object with the ERROR Level. |
void |
error(String message,
Throwable error)
Log a message with the ERROR level including the stack
trace of the Throwable error passed as parameter. |
void |
fatal(String message)
Log a message object with the FATAL Level. |
void |
fatal(String message,
Throwable error)
Log a message with the FATAL level including the stack
trace of the Throwable error passed as parameter. |
IActionSequence |
getActionSequence(String solutionName,
String actionPath,
String actionName,
int loggingLevel,
int actionOperation)
Retrieves the action sequence from the repository. |
String[] |
getAllActionSequences()
Defaults action operation to execute |
String[] |
getAllActionSequences(int actionOperation)
An array of Strings where each string is the fully qualified path of every *.xaction contained in the repository. |
ClassLoader |
getClassLoader(String path)
Returns an appropriate class loader for a specific path |
Map<IPermissionRecipient,IPermissionMask> |
getEffectivePermissions(ISolutionFile file)
Returns the ACL for the given file. |
ISolutionFile |
getFileByPath(String path)
|
org.dom4j.Document |
getFullSolutionTree(int actionOperation,
ISolutionFilter filter)
|
org.dom4j.Document |
getFullSolutionTree(int actionOperation,
ISolutionFilter filter,
ISolutionFile startFile)
|
String |
getLocalizedFileProperty(ISolutionFile resourceFile,
String key)
This method retrieves a locale aware value given a key and a file. |
String |
getLocalizedFileProperty(ISolutionFile resourceFile,
String key,
int actionOperation)
This method retrieves a locale aware value given a key and a file. |
int |
getLoggingLevel()
Return the logging level for this Logger. |
List |
getMessages()
Return the message list, if any, that all log messages generated by this Solution Repository are being appended to |
org.dom4j.Document |
getNavigationUIDocument(String solution,
String path,
int actionOperation)
Get an XML document that describes the structure of the solution repository. |
Map<IPermissionRecipient,IPermissionMask> |
getPermissions(ISolutionFile file)
Returns the ACL for the given file. |
String |
getRepositoryName()
|
byte[] |
getResourceAsBytes(IActionSequenceResource actionResource,
boolean getLocalizedResource)
See getResourceInputBytes(String solutionPath). |
byte[] |
getResourceAsBytes(IActionSequenceResource actionResource,
boolean getLocalizedResource,
int actionOperation)
See getResourceInputBytes(String solutionPath). |
byte[] |
getResourceAsBytes(String solutionPath,
boolean getLocalizedResource)
See getResourceInputBytes(String solutionPath). |
byte[] |
getResourceAsBytes(String solutionPath,
boolean getLocalizedResource,
int actionOperation)
See getResourceInputBytes(String solutionPath). |
org.dom4j.Document |
getResourceAsDocument(IActionSequenceResource actionResource)
See getResourceInputStream(IActionResource actionResource). |
org.dom4j.Document |
getResourceAsDocument(IActionSequenceResource actionResource,
int actionOperation)
See getResourceInputStream(IActionResource actionResource). |
org.dom4j.Document |
getResourceAsDocument(String solutionPath)
See getResourceInputStream(String solutionPath). |
org.dom4j.Document |
getResourceAsDocument(String solutionPath,
int actionOperation)
See getResourceInputStream(String solutionPath). |
String |
getResourceAsString(IActionSequenceResource actionResource)
See getResourceInputStream(IActionResource actionResource). |
String |
getResourceAsString(IActionSequenceResource actionResource,
int actionOperation)
See getResourceInputStream(IActionResource actionResource). |
String |
getResourceAsString(String solutionPath)
See getResourceInputStream(String solutionPath). |
String |
getResourceAsString(String solutionPath,
int actionOperation)
See getResourceInputStream(String solutionPath). |
org.pentaho.commons.connection.IPentahoStreamSource |
getResourceDataSource(IActionSequenceResource actionResource)
See getResourceInputStream(IActionResource actionResource). |
org.pentaho.commons.connection.IPentahoStreamSource |
getResourceDataSource(IActionSequenceResource actionResource,
int actionOperation)
See getResourceInputStream(IActionResource actionResource). |
org.pentaho.commons.connection.IPentahoStreamSource |
getResourceDataSource(String solutionPath)
See getResourceInputStream(String solutionPath). |
org.pentaho.commons.connection.IPentahoStreamSource |
getResourceDataSource(String solutionPath,
int actionOperation)
See getResourceInputStream(String solutionPath). |
InputStream |
getResourceInputStream(IActionSequenceResource actionResource,
boolean getLocalizedResource)
Given a IActionResource this method returns a InputStream that references the content of the actionResource. |
InputStream |
getResourceInputStream(IActionSequenceResource actionResource,
boolean getLocalizedResource,
int actionOperation)
Given a IActionResource this method returns a InputStream that references the content of the actionResource. |
InputStream |
getResourceInputStream(String solutionPath,
boolean getLocalizedResource)
Returns an InputStream that contains the data of the resource defined by the solutionPath. |
InputStream |
getResourceInputStream(String solutionPath,
boolean getLocalizedResource,
int actionOperation)
Returns an InputStream that contains the data of the resource defined by the solutionPath. |
Reader |
getResourceReader(IActionSequenceResource actionResource)
See getResourceInputStream(IActionResource actionResource). |
Reader |
getResourceReader(IActionSequenceResource actionResource,
int actionOperation)
See getResourceInputStream(IActionResource actionResource). |
Reader |
getResourceReader(String solutionPath)
See getResourceInputStream(String solutionPath). |
Reader |
getResourceReader(String solutionPath,
int actionOperation)
See getResourceInputStream(String solutionPath). |
ISolutionFile |
getRootFolder(int actionOperation)
|
ISolutionFile |
getSolutionFile(IActionSequenceResource actionResource)
Defaults action operation to execute |
ISolutionFile |
getSolutionFile(IActionSequenceResource actionResource,
int actionOperation)
|
ISolutionFile |
getSolutionFile(String path)
|
ISolutionFile |
getSolutionFile(String path,
int actionOperation)
|
long |
getSolutionFileLastModified(String path)
Returns a long that represents the last time this file was modified Defaults to Action Operation of execute |
long |
getSolutionFileLastModified(String path,
int actionOperation)
Returns a long that represents the last time this file was modified |
org.dom4j.Document |
getSolutions(int actionOperation)
Gets an XML Document representing all the solutions and all the files within all the solutions |
org.dom4j.Document |
getSolutions(String solutionName,
String pathName,
int actionOperation,
boolean visibleOnly)
Gets an XML Document representing all the files within a certain path within a solution |
org.dom4j.Document |
getSolutionStructure(int actionOperation)
Returns an XML document that represents the parent/child relationship of the current solution repository |
org.dom4j.Document |
getSolutionTree(int actionOperation)
Returns an XML document that defines the entire solution tree. |
org.dom4j.Document |
getSolutionTree(int actionOperation,
ISolutionFilter filter)
|
String |
getXSLName(org.dom4j.Document doc,
String solution,
String inputXSLName)
Interprets the XSL name coming in against the document to see if there are any repository-specific changes based on display type associated with the XSL name |
boolean |
hasAccess(ISolutionFile file,
int actionOperation)
Checks permission. |
void |
info(String message)
Log a message object with the INFO Level. |
void |
info(String message,
Throwable error)
Log a message with the INFO level including the stack trace
of the Throwable error passed as parameter. |
void |
init(IPentahoSession session)
Initializes the solution repository with the user session |
void |
localizeDoc(org.dom4j.Node document,
ISolutionFile file)
|
int |
publish(String baseUrl,
String path,
String fileName,
byte[] data,
boolean overwrite)
Put a file into the solution repo. |
int |
publish(String baseUrl,
String path,
String fileName,
File f,
boolean overwrite)
Put a file into the solution repo. |
void |
reloadSolutionRepository(IPentahoSession session,
int loggingLevel)
Loads or reloads a solution repository after a structure change. |
boolean |
removeSolutionFile(String solutionPath)
|
boolean |
removeSolutionFile(String solution,
String path,
String fileName)
Removes the file (fileName) from the path defined by the solution and path. |
void |
resetRepository()
This method resets the caches used by the solution repository. |
boolean |
resourceExists(String solutionPath)
Returns a true if the specified resource exists. |
boolean |
resourceExists(String solutionPath,
int actionOperation)
Returns a true if the specified resource exists. |
long |
resourceSize(String solutionPath)
Returns the size of the specfied resource. |
long |
resourceSize(String solutionPath,
int actionOperation)
Returns the size of the specfied resource. |
void |
setLoggingLevel(int loggingLevel)
Set the logging level for this Logger. |
void |
setMessages(List messages)
Allows the caller to provide a List that will contain all log messages generated by the Solution Repository represented by this interface |
void |
setPermissions(ISolutionFile file,
Map<IPermissionRecipient,IPermissionMask> acl)
Replaces the ACL on aFile. |
void |
share(ISolutionFile file,
List<IPermissionRecipient> shareRecipients)
Share file with recipient. |
boolean |
solutionSynchronizationSupported()
|
boolean |
supportsAccessControls()
|
boolean |
synchronizeSolutionWithSolutionSource(IPentahoSession session)
For ISolutionRepository implementations that have a source and a destination (for example, DBBasedSolutionRepository which has a file-system source and a DB destination) this is the entry point that allows synchronization. |
void |
trace(String message)
Log a message object with the TRACE Level. |
void |
trace(String message,
Throwable error)
Log a message with the TRACE level including the stack
trace of the Throwable error passed as parameter. |
void |
warn(String message)
Log a message object with the WARN Level. |
void |
warn(String message,
Throwable error)
Log a message with the WARN level including the stack trace
of the Throwable error passed as parameter. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SolutionRepositoryAdapter()
| Method Detail |
|---|
public void addPermission(ISolutionFile file,
IPermissionRecipient recipient,
IPermissionMask permission)
ISolutionRepositoryaFile.
addPermission in interface ISolutionRepositoryfile - file whose ACL is to be modifiedrecipient - recipient of the permissionpermission - right to an action on this file by this user
public int addSolutionFile(String baseUrl,
String path,
String fileName,
File f,
boolean overwrite)
ISolutionRepository
addSolutionFile in interface ISolutionRepository
public int addSolutionFile(String baseUrl,
String path,
String fileName,
byte[] data,
boolean overwrite)
ISolutionRepository
addSolutionFile in interface ISolutionRepository
public ISolutionFile createFolder(File newFolder)
throws IOException
ISolutionRepository
createFolder in interface ISolutionRepositorynewFolder - The File that points to the new folder to create
IOException
public IActionSequence getActionSequence(String solutionName,
String actionPath,
String actionName,
int loggingLevel,
int actionOperation)
ISolutionRepositorynull if the
requested action seqeuence is not found.
getActionSequence in interface ISolutionRepositorysolutionName - The name of the solution - like the root folderactionPath - The relative path (from the solution) of where the file is storedactionName - The name of the action sequenceloggingLevel - The level at which to log messagesactionOperation - Whether the action sequence is being retrieved for administration or execution
public String[] getAllActionSequences()
ISolutionRepository
getAllActionSequences in interface ISolutionRepositorypublic String[] getAllActionSequences(int actionOperation)
ISolutionRepository
getAllActionSequences in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
public ClassLoader getClassLoader(String path)
ISolutionRepository
getClassLoader in interface ISolutionRepositorypublic Map<IPermissionRecipient,IPermissionMask> getEffectivePermissions(ISolutionFile file)
ISolutionRepository
getEffectivePermissions in interface ISolutionRepositoryfile - file whose ACL is to be returned
public ISolutionFile getFileByPath(String path)
getFileByPath in interface ISolutionRepositorypath - the solution path to the desired resource
public org.dom4j.Document getFullSolutionTree(int actionOperation,
ISolutionFilter filter)
getFullSolutionTree in interface ISolutionRepository
public org.dom4j.Document getFullSolutionTree(int actionOperation,
ISolutionFilter filter,
ISolutionFile startFile)
getFullSolutionTree in interface ISolutionRepository
public String getLocalizedFileProperty(ISolutionFile resourceFile,
String key)
ISolutionRepository
getLocalizedFileProperty in interface ISolutionRepository
public String getLocalizedFileProperty(ISolutionFile resourceFile,
String key,
int actionOperation)
ISolutionRepository
getLocalizedFileProperty in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
public List getMessages()
ISolutionRepository
getMessages in interface ISolutionRepository
public org.dom4j.Document getNavigationUIDocument(String solution,
String path,
int actionOperation)
ISolutionRepository
getNavigationUIDocument in interface ISolutionRepositorysolution - String The name of the solution. If this is empty (null or ""), and path
is empty, return the root of the document. Otherwise return a document that
starts at the node specified by the solution and path in the solutionpath - String The path of the interested folder. See notes for
parameter solution.actionOperation - - Type of action operation to be performed
public Map<IPermissionRecipient,IPermissionMask> getPermissions(ISolutionFile file)
ISolutionRepository
getPermissions in interface ISolutionRepositoryfile - file whose ACL is to be returned
public String getRepositoryName()
getRepositoryName in interface ISolutionRepository
public byte[] getResourceAsBytes(String solutionPath,
boolean getLocalizedResource)
throws IOException
ISolutionRepository
getResourceAsBytes in interface ISolutionRepositoryIOException
public byte[] getResourceAsBytes(String solutionPath,
boolean getLocalizedResource,
int actionOperation)
throws IOException
ISolutionRepository
getResourceAsBytes in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
IOException
public byte[] getResourceAsBytes(IActionSequenceResource actionResource,
boolean getLocalizedResource)
throws IOException
ISolutionRepository
getResourceAsBytes in interface ISolutionRepositoryIOException
public byte[] getResourceAsBytes(IActionSequenceResource actionResource,
boolean getLocalizedResource,
int actionOperation)
throws IOException
ISolutionRepository
getResourceAsBytes in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
IOException
public org.dom4j.Document getResourceAsDocument(String solutionPath)
throws IOException
ISolutionRepository
getResourceAsDocument in interface ISolutionRepositoryIOException
public org.dom4j.Document getResourceAsDocument(String solutionPath,
int actionOperation)
throws IOException
ISolutionRepository
getResourceAsDocument in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
IOException
public org.dom4j.Document getResourceAsDocument(IActionSequenceResource actionResource)
throws IOException
ISolutionRepository
getResourceAsDocument in interface ISolutionRepositoryIOException
public org.dom4j.Document getResourceAsDocument(IActionSequenceResource actionResource,
int actionOperation)
throws IOException
ISolutionRepository
getResourceAsDocument in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
IOException
public String getResourceAsString(IActionSequenceResource actionResource)
throws IOException
ISolutionRepository
getResourceAsString in interface ISolutionRepositoryIOException
public String getResourceAsString(IActionSequenceResource actionResource,
int actionOperation)
throws IOException
ISolutionRepository
getResourceAsString in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
IOException
public String getResourceAsString(String solutionPath)
throws IOException
ISolutionRepository
getResourceAsString in interface ISolutionRepositoryIOException
public String getResourceAsString(String solutionPath,
int actionOperation)
throws IOException
ISolutionRepository
getResourceAsString in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
IOException
public org.pentaho.commons.connection.IPentahoStreamSource getResourceDataSource(String solutionPath)
throws FileNotFoundException
ISolutionRepository
getResourceDataSource in interface ISolutionRepositoryFileNotFoundException
public org.pentaho.commons.connection.IPentahoStreamSource getResourceDataSource(String solutionPath,
int actionOperation)
throws FileNotFoundException
ISolutionRepository
getResourceDataSource in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
FileNotFoundException
public org.pentaho.commons.connection.IPentahoStreamSource getResourceDataSource(IActionSequenceResource actionResource)
throws FileNotFoundException
ISolutionRepository
getResourceDataSource in interface ISolutionRepositoryFileNotFoundException
public org.pentaho.commons.connection.IPentahoStreamSource getResourceDataSource(IActionSequenceResource actionResource,
int actionOperation)
throws FileNotFoundException
ISolutionRepository
getResourceDataSource in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
FileNotFoundException
public InputStream getResourceInputStream(IActionSequenceResource actionResource,
boolean getLocalizedResource)
throws FileNotFoundException
ISolutionRepository
getResourceInputStream in interface ISolutionRepositoryactionResource - - resource to create a stream for.getLocalizedResource - - flag to use to check if we should attempt to get a localized version of the resource
FileNotFoundException
public InputStream getResourceInputStream(IActionSequenceResource actionResource,
boolean getLocalizedResource,
int actionOperation)
throws FileNotFoundException
ISolutionRepository
getResourceInputStream in interface ISolutionRepositoryactionResource - - resource to create a stream for.getLocalizedResource - - flag to use to check if we should attempt to get a localized version of the resourceactionOperation - - Type of action operation to be performed
FileNotFoundException
public InputStream getResourceInputStream(String solutionPath,
boolean getLocalizedResource)
throws FileNotFoundException
ISolutionRepository
getResourceInputStream in interface ISolutionRepositorysolutionPath - - location of a resource.
FileNotFoundException
public InputStream getResourceInputStream(String solutionPath,
boolean getLocalizedResource,
int actionOperation)
throws FileNotFoundException
ISolutionRepository
getResourceInputStream in interface ISolutionRepositorysolutionPath - - location of a resource.actionOperation - - Type of action operation to be performed
FileNotFoundException
public Reader getResourceReader(IActionSequenceResource actionResource)
throws FileNotFoundException,
IOException
ISolutionRepository
getResourceReader in interface ISolutionRepositoryFileNotFoundException
IOException
public Reader getResourceReader(IActionSequenceResource actionResource,
int actionOperation)
throws FileNotFoundException,
IOException
ISolutionRepository
getResourceReader in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
FileNotFoundException
IOException
public Reader getResourceReader(String solutionPath)
throws FileNotFoundException,
IOException
ISolutionRepository
getResourceReader in interface ISolutionRepositoryFileNotFoundException
IOException
public Reader getResourceReader(String solutionPath,
int actionOperation)
throws FileNotFoundException,
IOException
ISolutionRepository
getResourceReader in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
FileNotFoundException
IOExceptionpublic ISolutionFile getRootFolder(int actionOperation)
getRootFolder in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
public ISolutionFile getSolutionFile(String path)
getSolutionFile in interface ISolutionRepository
public ISolutionFile getSolutionFile(String path,
int actionOperation)
getSolutionFile in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
public ISolutionFile getSolutionFile(IActionSequenceResource actionResource)
ISolutionRepository
getSolutionFile in interface ISolutionRepository
public ISolutionFile getSolutionFile(IActionSequenceResource actionResource,
int actionOperation)
getSolutionFile in interface ISolutionRepositoryactionOperation - - Type of action operation to be performed
public long getSolutionFileLastModified(String path)
ISolutionRepository
getSolutionFileLastModified in interface ISolutionRepository
public long getSolutionFileLastModified(String path,
int actionOperation)
ISolutionRepository
getSolutionFileLastModified in interface ISolutionRepositoryactionOperation - - Type of action operation to be performedpublic org.dom4j.Document getSolutionStructure(int actionOperation)
ISolutionRepository
getSolutionStructure in interface ISolutionRepositorypublic org.dom4j.Document getSolutionTree(int actionOperation)
ISolutionRepository
getSolutionTree in interface ISolutionRepository
public org.dom4j.Document getSolutionTree(int actionOperation,
ISolutionFilter filter)
getSolutionTree in interface ISolutionRepositoryfilter - an implementation of a ISolutionFilter that determines which files will be returned
public org.dom4j.Document getSolutions(int actionOperation)
ISolutionRepository
getSolutions in interface ISolutionRepositoryactionOperation - Indicates what the list will be used for - execution or administration
public org.dom4j.Document getSolutions(String solutionName,
String pathName,
int actionOperation,
boolean visibleOnly)
ISolutionRepository
getSolutions in interface ISolutionRepositorysolutionName - The name of the solution to getpathName - The path from which to retrieveactionOperation - Indicates what the list will be used for - execution or administration
public String getXSLName(org.dom4j.Document doc,
String solution,
String inputXSLName)
ISolutionRepository
getXSLName in interface ISolutionRepository
public boolean hasAccess(ISolutionFile file,
int actionOperation)
ISolutionRepository
hasAccess in interface ISolutionRepositoryfile - domain instance to checkactionOperation - permission requested (A constant from ISolutionRepository.)
public void init(IPentahoSession session)
ISolutionRepository
init in interface ISolutionRepositorysession - The current user session
public void localizeDoc(org.dom4j.Node document,
ISolutionFile file)
localizeDoc in interface ISolutionRepository
public int publish(String baseUrl,
String path,
String fileName,
byte[] data,
boolean overwrite)
throws PentahoAccessControlException
ISolutionRepository
publish in interface ISolutionRepositoryPentahoAccessControlException
public int publish(String baseUrl,
String path,
String fileName,
File f,
boolean overwrite)
throws PentahoAccessControlException
ISolutionRepository
publish in interface ISolutionRepositoryPentahoAccessControlException
public void reloadSolutionRepository(IPentahoSession session,
int loggingLevel)
ISolutionRepository
reloadSolutionRepository in interface ISolutionRepositorysession - - The session associated with this solution repositoryloggingLevel - - The requested level of logging
public boolean removeSolutionFile(String solution,
String path,
String fileName)
ISolutionRepository
removeSolutionFile in interface ISolutionRepositorypublic boolean removeSolutionFile(String solutionPath)
removeSolutionFile in interface ISolutionRepositorypublic void resetRepository()
ISolutionRepository
resetRepository in interface ISolutionRepositorypublic boolean resourceExists(String solutionPath)
ISolutionRepository
resourceExists in interface ISolutionRepositorysolutionPath - - path to the resource
public boolean resourceExists(String solutionPath,
int actionOperation)
ISolutionRepository
resourceExists in interface ISolutionRepositorysolutionPath - - path to the resourceactionOperation - - Type of action operation to be performed
public long resourceSize(String solutionPath)
ISolutionRepository
resourceSize in interface ISolutionRepositorysolutionPath - - path to the resource
public long resourceSize(String solutionPath,
int actionOperation)
ISolutionRepository
resourceSize in interface ISolutionRepositorysolutionPath - - path to the resourceactionOperation - - Type of action operation to be performed
public void setMessages(List messages)
ISolutionRepository
setMessages in interface ISolutionRepositorymessages - a List that String messages will be appended to
public void setPermissions(ISolutionFile file,
Map<IPermissionRecipient,IPermissionMask> acl)
throws PentahoAccessControlException
ISolutionRepositoryaFile.
setPermissions in interface ISolutionRepositoryfile - file whose ACL is to be modifiedacl - new ACL
PentahoAccessControlException
public void share(ISolutionFile file,
List<IPermissionRecipient> shareRecipients)
ISolutionRepository
share in interface ISolutionRepositoryfile - file to shareshareRecipients - the users or roles with which to share (aka share-ees)public boolean solutionSynchronizationSupported()
solutionSynchronizationSupported in interface ISolutionRepositorypublic boolean supportsAccessControls()
supportsAccessControls in interface ISolutionRepository
public boolean synchronizeSolutionWithSolutionSource(IPentahoSession session)
throws UnsupportedOperationException
ISolutionRepository
synchronizeSolutionWithSolutionSource in interface ISolutionRepositoryUnsupportedOperationExceptionpublic void debug(String message)
ILoggerDEBUG Level.
debug in interface ILoggermessage - the message object to log.
public void debug(String message,
Throwable error)
ILoggerDEBUG level including the stack
trace of the Throwable error passed as parameter.
debug in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.public void error(String message)
ILoggerERROR Level.
error in interface ILoggermessage - the message object to log.
public void error(String message,
Throwable error)
ILoggerERROR level including the stack
trace of the Throwable error passed as parameter.
error in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.public void fatal(String message)
ILoggerFATAL Level.
fatal in interface ILoggermessage - the message object to log.
public void fatal(String message,
Throwable error)
ILoggerFATAL level including the stack
trace of the Throwable error passed as parameter.
fatal in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.public int getLoggingLevel()
ILogger
getLoggingLevel in interface ILoggerpublic void info(String message)
ILoggerINFO Level.
info in interface ILoggermessage - the message object to log.
public void info(String message,
Throwable error)
ILoggerINFO level including the stack trace
of the Throwable error passed as parameter.
info in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.public void setLoggingLevel(int loggingLevel)
ILogger
Valid logging levels are TRACE, DEBUG,
INFO, WARN, ERROR, and
FATAL.
setLoggingLevel in interface ILoggerpublic void trace(String message)
ILoggerTRACE Level.
trace in interface ILoggermessage - the message object to log.
public void trace(String message,
Throwable error)
ILoggerTRACE level including the stack
trace of the Throwable error passed as parameter.
trace in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.public void warn(String message)
ILoggerWARN Level.
warn in interface ILoggermessage - the message object to log.
public void warn(String message,
Throwable error)
ILoggerWARN level including the stack trace
of the Throwable error passed as parameter.
warn in interface ILoggermessage - the message object to log.error - the exception to log, including its stack trace.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||