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 Type
    Method
    Description
    Evaluates the given script and returns the generated org policy.
    Tries to validate the script as far as possible without actually evaluating it.
  • Method Details

    • 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

      Evaluates the given script and returns the generated org policy.
      Parameters:
      session - the session token
      script - 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 script
      ScriptEvaluationException - if an error occurred during the actual evaluation of the script