Class PermissionLimitUtils
java.lang.Object
edu.internet2.middleware.grouper.permissions.limits.PermissionLimitUtils
utils for permission limits
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
name of variable in the env mapstatic final String
name of variable in the env mapstatic final String
name of variable in the env mapstatic final String
static final String
static final String
limits def extensionstatic final String
limits def extensionstatic final String
limits def extensionstatic final String
static final String
static final String
static final String
static final String
static final String
name of variable in the env mapstatic final String
name of variable in the env map -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addStandardLimitVariablesIfNotExist
(Map<String, Object> limitEnvVarsObject) add standard limit variablesstatic String
return the stem name where the limit attributes go, without colon on endstatic void
for testing, clear this to put things in the api test configstatic AttributeDefName
amount less thanstatic String
limit amount less thanstatic AttributeDefName
amount less than or equalstatic String
limit amount less than or equalstatic AttributeDef
return the limit type attribute def this throws exception if cant findstatic AttributeDef
return the limit type attribute def this throws exception if cant findstatic AttributeDef
return the limit type attribute def this throws exception if cant findstatic AttributeDefName
regex limitcustom el instances to add to the variable map for limit ELstatic String
limit el namestatic AttributeDefName
amount less than or equalstatic String
limit ip on network realmstatic AttributeDefName
amount less than or equalstatic String
limit ip on networksstatic AttributeDefName
amount labels containstatic String
limit labels contain a labelget a logic instance based on attributeDefName of the limitstatic AttributeDefName
weekday 9 to 5static String
limit el namestatic PermissionLimitInterface
logicInstance
(String limitName) get a logic instance based on attributeDefName of the limit
-
Field Details
-
MONTH_OF_YEAR
name of variable in the env map- See Also:
-
MINUTE_OF_HOUR
name of variable in the env map- See Also:
-
HOUR_OF_DAY
name of variable in the env map- See Also:
-
DAY_OF_WEEK
name of variable in the env map- See Also:
-
CALENDAR
name of variable in the env map- See Also:
-
LIMIT_DEF
limits def extension- See Also:
-
LIMIT_DEF_INT
limits def extension- See Also:
-
LIMIT_DEF_MARKER
limits def extension- See Also:
-
LIMIT_EL
- See Also:
-
LIMIT_WEEKDAY_9_TO_5
- See Also:
-
LIMIT_AMOUNT_LESS_THAN
- See Also:
-
LIMIT_AMOUNT_LESS_THAN_OR_EQUAL
- See Also:
-
LIMIT_IP_ON_NETWORKS
- See Also:
-
LIMIT_IP_ON_NETWORK_REALM
- See Also:
-
LIMIT_LABELS_CONTAIN
- See Also:
-
-
Constructor Details
-
PermissionLimitUtils
public PermissionLimitUtils()
-
-
Method Details
-
limitAttributeDef
return the limit type attribute def this throws exception if cant find- Returns:
- the attribute def
-
limitAttributeDefInt
return the limit type attribute def this throws exception if cant find- Returns:
- the attribute def
-
limitAttributeDefMarker
return the limit type attribute def this throws exception if cant find- Returns:
- the attribute def
-
attributeLimitStemName
return the stem name where the limit attributes go, without colon on end- Returns:
- stem name
-
limitElName
limit el name- Returns:
- name
-
limitElAttributeDefName
regex limit- Returns:
- the attribute def name
-
limitWeekday9to5Name
limit el name- Returns:
- name
-
limitWeekday9to5AttributeDefName
weekday 9 to 5- Returns:
- the attribute def name
-
limitAmountLessThanName
limit amount less than- Returns:
- name
-
limitAmountLessThanAttributeDefName
amount less than- Returns:
- the attribute def name
-
limitAmountLessThanOrEqualName
limit amount less than or equal- Returns:
- name
-
limitAmountLessThanOrEqualAttributeDefName
amount less than or equal- Returns:
- the attribute def name
-
limitIpOnNetworksName
limit ip on networks- Returns:
- name
-
limitIpOnNetworksAttributeDefName
amount less than or equal- Returns:
- the attribute def name
-
limitIpOnNetworkRealmName
limit ip on network realm- Returns:
- name
-
limitIpOnNetworkRealmAttributeDefName
amount less than or equal- Returns:
- the attribute def name
-
limitLabelsContainName
limit labels contain a label- Returns:
- name
-
limitLabelsContainAttributeDefName
amount labels contain- Returns:
- the attribute def name
-
addStandardLimitVariablesIfNotExist
add standard limit variables- Parameters:
limitEnvVarsObject
-
-
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
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
custom el instances to add to the variable map for limit EL- Returns:
- the map
-