public class PermissionLimitUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CALENDAR
name of variable in the env map
|
static String |
DAY_OF_WEEK
name of variable in the env map
|
static String |
HOUR_OF_DAY
name of variable in the env map
|
static String |
LIMIT_AMOUNT_LESS_THAN |
static String |
LIMIT_AMOUNT_LESS_THAN_OR_EQUAL |
static String |
LIMIT_DEF
limits def extension
|
static String |
LIMIT_DEF_INT
limits def extension
|
static String |
LIMIT_DEF_MARKER
limits def extension
|
static String |
LIMIT_EL |
static String |
LIMIT_IP_ON_NETWORK_REALM |
static String |
LIMIT_IP_ON_NETWORKS |
static String |
LIMIT_LABELS_CONTAIN |
static String |
LIMIT_WEEKDAY_9_TO_5 |
static String |
MINUTE_OF_HOUR
name of variable in the env map
|
static String |
MONTH_OF_YEAR
name of variable in the env map
|
Constructor and Description |
---|
PermissionLimitUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addStandardLimitVariablesIfNotExist(Map<String,Object> limitEnvVarsObject)
add standard limit variables
|
static String |
attributeLimitStemName()
return the stem name where the limit attributes go, without colon on end
|
static void |
clearLimitLogicMap()
for testing, clear this to put things in the api test config
|
static AttributeDefName |
limitAmountLessThanAttributeDefName()
amount less than
|
static String |
limitAmountLessThanName()
limit amount less than
|
static AttributeDefName |
limitAmountLessThanOrEqualAttributeDefName()
amount less than or equal
|
static String |
limitAmountLessThanOrEqualName()
limit amount less than or equal
|
static AttributeDef |
limitAttributeDef()
return the limit type attribute def
this throws exception if cant find
|
static AttributeDef |
limitAttributeDefInt()
return the limit type attribute def
this throws exception if cant find
|
static AttributeDef |
limitAttributeDefMarker()
return the limit type attribute def
this throws exception if cant find
|
static AttributeDefName |
limitElAttributeDefName()
regex limit
|
static Map<String,Object> |
limitElClasses()
custom el instances to add to the variable map for limit EL
|
static String |
limitElName()
limit el name
|
static AttributeDefName |
limitIpOnNetworkRealmAttributeDefName()
amount less than or equal
|
static String |
limitIpOnNetworkRealmName()
limit ip on network realm
|
static AttributeDefName |
limitIpOnNetworksAttributeDefName()
amount less than or equal
|
static String |
limitIpOnNetworksName()
limit ip on networks
|
static AttributeDefName |
limitLabelsContainAttributeDefName()
amount labels contain
|
static String |
limitLabelsContainName()
limit labels contain a label
|
static Set<String> |
limitRealms()
get a logic instance based on attributeDefName of the limit
|
static AttributeDefName |
limitWeekday9to5AttributeDefName()
weekday 9 to 5
|
static String |
limitWeekday9to5Name()
limit el name
|
static PermissionLimitInterface |
logicInstance(String limitName)
get a logic instance based on attributeDefName of the limit
|
public static final String MONTH_OF_YEAR
public static final String MINUTE_OF_HOUR
public static final String HOUR_OF_DAY
public static final String DAY_OF_WEEK
public static final String CALENDAR
public static final String LIMIT_DEF
public static final String LIMIT_DEF_INT
public static final String LIMIT_DEF_MARKER
public static final String LIMIT_EL
public static final String LIMIT_WEEKDAY_9_TO_5
public static final String LIMIT_AMOUNT_LESS_THAN
public static final String LIMIT_AMOUNT_LESS_THAN_OR_EQUAL
public static final String LIMIT_IP_ON_NETWORKS
public static final String LIMIT_IP_ON_NETWORK_REALM
public static final String LIMIT_LABELS_CONTAIN
public static AttributeDef limitAttributeDef()
public static AttributeDef limitAttributeDefInt()
public static AttributeDef limitAttributeDefMarker()
public static String attributeLimitStemName()
public static String limitElName()
public static AttributeDefName limitElAttributeDefName()
public static String limitWeekday9to5Name()
public static AttributeDefName limitWeekday9to5AttributeDefName()
public static String limitAmountLessThanName()
public static AttributeDefName limitAmountLessThanAttributeDefName()
public static String limitAmountLessThanOrEqualName()
public static AttributeDefName limitAmountLessThanOrEqualAttributeDefName()
public static String limitIpOnNetworksName()
public static AttributeDefName limitIpOnNetworksAttributeDefName()
public static String limitIpOnNetworkRealmName()
public static AttributeDefName limitIpOnNetworkRealmAttributeDefName()
public static String limitLabelsContainName()
public static AttributeDefName limitLabelsContainAttributeDefName()
public static void addStandardLimitVariablesIfNotExist(Map<String,Object> limitEnvVarsObject)
limitEnvVarsObject
- public static Set<String> limitRealms()
public static void clearLimitLogicMap()
public static PermissionLimitInterface logicInstance(String limitName)
limitName
- name of the attribute def nameCopyright © 2016 Internet2. All rights reserved.