public class PermissionLimitElLogic extends PermissionLimitBase
Modifier and Type | Field and Description |
---|---|
static Integer |
testingCacheMinutesInt
if you are testing this, set it, otherwise, it will default
|
static int |
testingTimesCalledLogic
count how many times called logic for testing the cache
|
Constructor and Description |
---|
PermissionLimitElLogic() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowPermission(PermissionEntry permissionEntry,
AttributeAssign limitAssignment,
Set<AttributeAssignValue> limitAssignmentValues,
Map<String,Object> limitEnvVars,
Set<PermissionLimitBean> permissionLimitBeans)
if the limit allowed the permission to be allowed
|
int |
cacheLimitValueResultMinutes()
if we can cache the result for a some minutes.
|
PermissionLimitDocumentation |
documentation()
return a UI key to documentation about the limit.
|
PermissionLimitDocumentation |
validateLimitAssignValue(AttributeAssign limitAssign,
Set<AttributeAssignValue> limitAssignmentValues)
validate a user entered value(s) on the limit assignment
|
public static Integer testingCacheMinutesInt
public static int testingTimesCalledLogic
public int cacheLimitValueResultMinutes()
PermissionLimitInterface
cacheLimitValueResultMinutes
in interface PermissionLimitInterface
cacheLimitValueResultMinutes
in class PermissionLimitBase
PermissionLimitInterface.cacheLimitValueResultMinutes()
public boolean allowPermission(PermissionEntry permissionEntry, AttributeAssign limitAssignment, Set<AttributeAssignValue> limitAssignmentValues, Map<String,Object> limitEnvVars, Set<PermissionLimitBean> permissionLimitBeans)
PermissionLimitInterface
permissionEntry
- to checklimitAssignment
- the assignment of the limit (e.g. to the permission
assignment a parent assignment, or the role, etc)limitEnvVars
- value could be String, Long, or DoublepermissionLimitBeans
- all limits for this permission (in case the limit logic needs it...
note, dont use built in caching if this is the case)PermissionLimitInterface.allowPermission(PermissionEntry, AttributeAssign, Set, Map, Set)
public PermissionLimitDocumentation documentation()
PermissionLimitInterface
PermissionLimitInterface.documentation()
public PermissionLimitDocumentation validateLimitAssignValue(AttributeAssign limitAssign, Set<AttributeAssignValue> limitAssignmentValues)
PermissionLimitInterface
PermissionLimitInterface.validateLimitAssignValue(AttributeAssign, Set)
Copyright © 2016 Internet2. All rights reserved.