Additional top-level class in compilation unit: ClusterTagPermissionCollection.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | ACTION_ADD
The add action mask |
| private static final int | |
| private transient int | action_mask
The actions mask. |
| pack-priv static final int | |
| private volatile String | actions
The actions in canonical form. |
| public static final String | ADD
The action string |
| private transient volatile boolean | all
If the name is "*". |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | ClusterTagPermission(String
Give permission to add this tag, use * wildcard to give
permission to add any tag. tag, String add.Defines the authority to add a tag to the NodeStatus service. |
| pack-priv | ClusterTagPermission(String
Tag name name, int action mask mask)Package private constructor used by ClusterTagPermissionCollection. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if obj is a ClusterTagPermission,
and has the same tag as this ClusterTagPermission object;
false otherwise.The object to test for equality with this
obj)ClusterTagPermission object.Implements abstract java. Determines the equality of two |
| public String | Returns: Canonical string representation of theClusterTagPermission actions.Implements abstract java. Returns the canonical string representation of the
|
| pack-priv synchronized int | |
| public int | Returns: A hash code value for this object.Implements abstract java. Returns the hash code value for this object. |
| public boolean | Returns: true if the specified ClusterTagPermission action
is implied by this object; false otherwise.The target permission to interrogate. p)Implements abstract java. Determines if the specified permission is implied by this object. |
| public PermissionCollection | Returns: A newPermissionCollection object.Overrides java. Returns a new |
| private static int | Returns: action mask.Action string. actions)Parse action string into action mask. |
| private synchronized void | readObject(ObjectInputStream s)
readObject is called to restore the state of this permission from a stream. |
| private synchronized void | |
| private synchronized void | writeObject(ObjectOutputStream s)
WriteObject is called to save the state of this permission object to a stream. |
| ACTION_ADD | back to summary |
|---|---|
| private static final int ACTION_ADD The add action mask | |
| ACTION_ALL | back to summary |
|---|---|
| private static final int ACTION_ALL | |
| action_mask | back to summary |
|---|---|
| private transient int action_mask The actions mask. | |
| ACTION_NONE | back to summary |
|---|---|
| pack-priv static final int ACTION_NONE | |
| actions | back to summary |
|---|---|
| private volatile String actions The actions in canonical form. | |
| ADD | back to summary |
|---|---|
| public static final String ADD The action string | |
| all | back to summary |
|---|---|
| private transient volatile boolean all If the name is "*". | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ClusterTagPermission | back to summary |
|---|---|
| public ClusterTagPermission(String tag, String actions) Defines the authority to add a tag to the NodeStatus service. | |
| ClusterTagPermission | back to summary |
|---|---|
| pack-priv ClusterTagPermission(String name, int mask) Package private constructor used by ClusterTagPermissionCollection.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract java. Determines the equality of two | |
| getActions | back to summary |
|---|---|
| public String getActions() Implements abstract java. Returns the canonical string representation of the
Always returns the ADD action. | |
| getActionsMask | back to summary |
|---|---|
| pack-priv synchronized int getActionsMask() Returns the current action mask. Used by the ClusterTagPermissionCollection class.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract java. Returns the hash code value for this object.
| |
| implies | back to summary |
|---|---|
| public boolean implies(Permission p) Implements abstract java. Determines if the specified permission is implied by this object. This method checks that the tag of the target is implied by the tag name of this object.
| |
| newPermissionCollection | back to summary |
|---|---|
| public PermissionCollection newPermissionCollection() Overrides java. Returns a new
| |
| parseActions | back to summary |
|---|---|
| private static int parseActions(final String actions) Parse action string into action mask.
| |
| readObject | back to summary |
|---|---|
| private synchronized void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException readObject is called to restore the state of this permission from a stream. | |
| setTransients | back to summary |
|---|---|
| private synchronized void setTransients(final int mask) Called by constructors and when deserialized.
| |
| writeObject | back to summary |
|---|---|
| private synchronized void writeObject(ObjectOutputStream s) throws IOException WriteObject is called to save the state of this permission object to a stream. The actions are serialized, and the superclass takes care of the name. | |