Class PermissionLimitUtils

java.lang.Object
edu.internet2.middleware.grouper.permissions.limits.PermissionLimitUtils

public class PermissionLimitUtils extends Object
utils for permission limits
  • Field Details

  • Constructor Details

    • PermissionLimitUtils

      public PermissionLimitUtils()
  • Method Details

    • limitAttributeDef

      public static AttributeDef limitAttributeDef()
      return the limit type attribute def this throws exception if cant find
      Returns:
      the attribute def
    • limitAttributeDefInt

      public static AttributeDef limitAttributeDefInt()
      return the limit type attribute def this throws exception if cant find
      Returns:
      the attribute def
    • limitAttributeDefMarker

      public static AttributeDef limitAttributeDefMarker()
      return the limit type attribute def this throws exception if cant find
      Returns:
      the attribute def
    • attributeLimitStemName

      public static String attributeLimitStemName()
      return the stem name where the limit attributes go, without colon on end
      Returns:
      stem name
    • limitElName

      public static String limitElName()
      limit el name
      Returns:
      name
    • limitElAttributeDefName

      public static AttributeDefName limitElAttributeDefName()
      regex limit
      Returns:
      the attribute def name
    • limitWeekday9to5Name

      public static String limitWeekday9to5Name()
      limit el name
      Returns:
      name
    • limitWeekday9to5AttributeDefName

      public static AttributeDefName limitWeekday9to5AttributeDefName()
      weekday 9 to 5
      Returns:
      the attribute def name
    • limitAmountLessThanName

      public static String limitAmountLessThanName()
      limit amount less than
      Returns:
      name
    • limitAmountLessThanAttributeDefName

      public static AttributeDefName limitAmountLessThanAttributeDefName()
      amount less than
      Returns:
      the attribute def name
    • limitAmountLessThanOrEqualName

      public static String limitAmountLessThanOrEqualName()
      limit amount less than or equal
      Returns:
      name
    • limitAmountLessThanOrEqualAttributeDefName

      public static AttributeDefName limitAmountLessThanOrEqualAttributeDefName()
      amount less than or equal
      Returns:
      the attribute def name
    • limitIpOnNetworksName

      public static String limitIpOnNetworksName()
      limit ip on networks
      Returns:
      name
    • limitIpOnNetworksAttributeDefName

      public static AttributeDefName limitIpOnNetworksAttributeDefName()
      amount less than or equal
      Returns:
      the attribute def name
    • limitIpOnNetworkRealmName

      public static String limitIpOnNetworkRealmName()
      limit ip on network realm
      Returns:
      name
    • limitIpOnNetworkRealmAttributeDefName

      public static AttributeDefName limitIpOnNetworkRealmAttributeDefName()
      amount less than or equal
      Returns:
      the attribute def name
    • limitLabelsContainName

      public static String limitLabelsContainName()
      limit labels contain a label
      Returns:
      name
    • limitLabelsContainAttributeDefName

      public static AttributeDefName limitLabelsContainAttributeDefName()
      amount labels contain
      Returns:
      the attribute def name
    • addStandardLimitVariablesIfNotExist

      public static void addStandardLimitVariablesIfNotExist(Map<String,Object> limitEnvVarsObject)
      add standard limit variables
      Parameters:
      limitEnvVarsObject -
    • limitRealms

      public static Set<String> limitRealms()
      get a logic instance based on attributeDefName of the limit
      Returns:
      an instance of the interface
    • clearLimitLogicMap

      public static void clearLimitLogicMap()
      for testing, clear this to put things in the api test config
    • logicInstance

      public static PermissionLimitInterface logicInstance(String limitName)
      get a logic instance based on attributeDefName of the limit
      Parameters:
      limitName - name of the attribute def name
      Returns:
      an instance of the interface
    • limitElClasses

      public static Map<String,Object> limitElClasses()
      custom el instances to add to the variable map for limit EL
      Returns:
      the map