Class CumulativePermission
- All Implemented Interfaces:
Serializable,Permission
Permission that is constructed at runtime from other
permissions.
Methods return this, in order to facilitate method chaining.
- See Also:
-
Field Summary
Fields inherited from class org.springframework.security.acls.domain.AbstractPermission
code, maskFields inherited from interface org.springframework.security.acls.model.Permission
RESERVED_OFF, RESERVED_ON, THIRTY_TWO_RESERVED_OFF -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclear()clear(Permission permission) Returns a 32-character long bit patternStringrepresenting this permission.set(Permission permission) Methods inherited from class org.springframework.security.acls.domain.AbstractPermission
equals, getMask, hashCode, toString
-
Constructor Details
-
CumulativePermission
public CumulativePermission()
-
-
Method Details
-
clear
-
clear
-
set
-
getPattern
Description copied from interface:PermissionReturns a 32-character long bit patternStringrepresenting this permission.Implementations are free to format the pattern as they see fit, although under no circumstances may
Permission.RESERVED_OFForPermission.RESERVED_ONbe used within the pattern. An exemption is in the case ofPermission.RESERVED_OFFwhich is used to denote a bit that is off (clear). Implementations may also elect to usePermission.RESERVED_ONinternally for computation purposes, although this method may not return anyStringcontainingPermission.RESERVED_ON.The returned String must be 32 characters in length.
This method is only used for user interface and logging purposes. It is not used in any permission calculations. Therefore, duplication of characters within the output is permitted.
- Specified by:
getPatternin interfacePermission- Overrides:
getPatternin classAbstractPermission- Returns:
- a 32-character bit pattern
-