Interface Permission
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AbstractPermission,BasePermission,CumulativePermission
public interface Permission extends java.io.SerializableRepresents a permission granted to a Sid for a given domain object.
-
-
Field Summary
Fields Modifier and Type Field Description static charRESERVED_OFFstatic charRESERVED_ONstatic java.lang.StringTHIRTY_TWO_RESERVED_OFF
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetMask()Returns the bits that represents the permission.java.lang.StringgetPattern()Returns a 32-character long bit patternStringrepresenting this permission.
-
-
-
Field Detail
-
RESERVED_ON
static final char RESERVED_ON
- See Also:
- Constant Field Values
-
RESERVED_OFF
static final char RESERVED_OFF
- See Also:
- Constant Field Values
-
THIRTY_TWO_RESERVED_OFF
static final java.lang.String THIRTY_TWO_RESERVED_OFF
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMask
int getMask()
Returns the bits that represents the permission.- Returns:
- the bits that represent the permission
-
getPattern
java.lang.String getPattern()
Returns a 32-character long bit patternStringrepresenting this permission.Implementations are free to format the pattern as they see fit, although under no circumstances may
RESERVED_OFForRESERVED_ONbe used within the pattern. An exemption is in the case ofRESERVED_OFFwhich is used to denote a bit that is off (clear). Implementations may also elect to useRESERVED_ONinternally for computation purposes, although this method may not return anyStringcontainingRESERVED_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.
- Returns:
- a 32-character bit pattern
-
-