Class PermissionLimitIpOnNetworkRealm
java.lang.Object
edu.internet2.middleware.grouper.permissions.limits.PermissionLimitBase
edu.internet2.middleware.grouper.permissions.limits.impl.PermissionLimitIpOnNetworkRealm
- All Implemented Interfaces:
PermissionLimitInterface
logic for the built in ip address on networks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allowPermission
(PermissionEntry permissionEntry, AttributeAssign limitAssignment, Set<AttributeAssignValue> limitAssignmentValues, Map<String, Object> limitEnvVars, Set<PermissionLimitBean> permissionLimitBeans) if the limit allowed the permission to be allowedreturn a UI key to documentation about the limit.validateLimitAssignValue
(AttributeAssign limitAssign, Set<AttributeAssignValue> limitAssignmentValues) validate a user entered value(s) on the limit assignmentMethods inherited from class edu.internet2.middleware.grouper.permissions.limits.PermissionLimitBase
cacheLimitValueResultMinutes
-
Constructor Details
-
PermissionLimitIpOnNetworkRealm
public PermissionLimitIpOnNetworkRealm()
-
-
Method Details
-
allowPermission
public boolean allowPermission(PermissionEntry permissionEntry, AttributeAssign limitAssignment, Set<AttributeAssignValue> limitAssignmentValues, Map<String, Object> limitEnvVars, Set<PermissionLimitBean> permissionLimitBeans) Description copied from interface:PermissionLimitInterface
if the limit allowed the permission to be allowed- Parameters:
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)- Returns:
- true if allowed, false if not
- See Also:
-
documentation
Description copied from interface:PermissionLimitInterface
return a UI key to documentation about the limit. for Grouper, put in nav.properties- Returns:
- a UI key
- See Also:
-
validateLimitAssignValue
public PermissionLimitDocumentation validateLimitAssignValue(AttributeAssign limitAssign, Set<AttributeAssignValue> limitAssignmentValues) Description copied from interface:PermissionLimitInterface
validate a user entered value(s) on the limit assignment- Returns:
- the UI key and args for the error code (arbitrary, in Grouper should put in nav.properties) or null for ok
- See Also:
-