Interface OrgPolicyScriptHandler
-
- All Known Implementing Classes:
OrgPolicyScriptHandlerWebServiceStub
public interface OrgPolicyScriptHandlerOrg policy script handlers are responsible for evaluating script org policies.- Author:
- Patrick Schmidt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringevaluateScript(SessionToken session, Script script)Evaluates the given script and returns the generated org policy.List<String>validateScript(Script script)Tries to validate the script as far as possible without actually evaluating it.
-
-
-
Method Detail
-
validateScript
List<String> validateScript(Script script)
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
-
-