edu.internet2.middleware.grouper.permissions.limits.impl
Class PermissionLimitAmountLessThanEquals
java.lang.Object
edu.internet2.middleware.grouper.permissions.limits.PermissionLimitBase
edu.internet2.middleware.grouper.permissions.limits.impl.PermissionLimitAmountLessThanEquals
- All Implemented Interfaces:
- PermissionLimitInterface
public class PermissionLimitAmountLessThanEquals
- extends PermissionLimitBase
logic for the built in amount less than some number
- Author:
- mchyzer
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermissionLimitAmountLessThanEquals
public PermissionLimitAmountLessThanEquals()
allowPermission
public boolean allowPermission(PermissionEntry permissionEntry,
AttributeAssign limitAssignment,
java.util.Set<AttributeAssignValue> limitAssignmentValues,
java.util.Map<java.lang.String,java.lang.Object> limitEnvVars,
java.util.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:
PermissionLimitInterface.allowPermission(PermissionEntry, AttributeAssign, Set, Map, Set)
documentation
public PermissionLimitDocumentation 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:
PermissionLimitInterface.documentation()
validateLimitAssignValue
public PermissionLimitDocumentation validateLimitAssignValue(AttributeAssign limitAssign,
java.util.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:
PermissionLimitInterface.validateLimitAssignValue(AttributeAssign, Set)