java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.introspection.Sandbox.Names
Direct Known Subclasses:
Sandbox.BlackSet, Sandbox.WhiteSet
Enclosing class:
Sandbox

public abstract static class Sandbox.Names extends Object
A base set of names.
  • Constructor Details

    • Names

      public Names()
  • Method Details

    • add

      public abstract boolean add(String name)
      Adds a name to this set.
      Parameters:
      name - the name to add
      Returns:
      true if the name was really added, false if not
    • alias

      public boolean alias(String name, String alias)
      Adds an alias to a name to this set.

      This only has an effect on white lists.

      Parameters:
      name - the name to alias
      alias - the alias
      Returns:
      true if the alias was added, false if it was already present
    • get

      public String get(String name)
      Whether a given name is allowed or not.
      Parameters:
      name - the method/property name to check
      Returns:
      null if not allowed, the actual name to use otherwise