Class SecurityConfiguration

java.lang.Object
ch.tocco.nice2.scripting.impl.groovy.security.SecurityConfiguration

public abstract class SecurityConfiguration extends Object
This class is passed to the ch.tocco.nice2.scripting.groovy.TypeCheckingExtension (via a ThreadLocal) and used to configure its behaviour.
  • Constructor Details

    • SecurityConfiguration

      protected SecurityConfiguration(String scriptName)
  • Method Details

    • addBindingType

      public void addBindingType(String name, Class clazz)
    • getBindingTypes

      public Map<String,org.codehaus.groovy.ast.ClassNode> getBindingTypes()
      Provides the type of all binding variables so that static compilation is possible.
    • checkMethodAccess

      public abstract boolean checkMethodAccess(Class<?> clazz, String methodName)
      Is called for every method invocation of the script
    • getScriptName

      public String getScriptName()