Interface OrgPolicyScriptHandler
- All Known Implementing Classes:
OrgPolicyScriptHandlerWebServiceStub
public interface OrgPolicyScriptHandler
Org policy script handlers are responsible for evaluating script org
policies.
- Author:
- Patrick Schmidt
-
Method Summary
Modifier and TypeMethodDescriptionevaluateScript(SessionToken session, Script script) Evaluates the given script and returns the generated org policy.validateScript(Script script) Tries to validate the script as far as possible without actually evaluating it.
-
Method Details
-
validateScript
Tries to validate the script as far as possible without actually evaluating it.- Parameters:
script- the script to be validated- Returns:
- a list of messages describing all found problems in the script
-
evaluateScript
String evaluateScript(SessionToken session, Script script) throws ScriptEnvironmentException, ScriptEvaluationException Evaluates the given script and returns the generated org policy.- Parameters:
session- the session tokenscript- the script to be evaluated- Returns:
- the generated org policy
- Throws:
ScriptEnvironmentException- if an error occurred during the preparation of the script environment that is not directly caused by the executed scriptScriptEvaluationException- if an error occurred during the actual evaluation of the script
-