Additional top-level class in compilation unit: DmtAlertPermissionCollection.
AlertPermission has a target string which controls the principal
names where alerts can be sent. A wildcard is allowed at the end of the
target string, to allow sending alerts to any principal with a name matching
the given prefix. The "*" target means that alerts can be sent to
any destination.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private static final long | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | AlertPermission(String
the name of a principal, can end with target)* to match
any principal identifier with the given prefixCreates a new |
| public | AlertPermission(String
the name of the server, can end with target, String * to match any
server identifier with the given prefixno actions defined, must be "*" for forward compatibility actions)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the parameter represents the same permissions as
this instancethe object to compare to this AlertPermission instance obj)Implements abstract java. Checks whether the given object is equal to this AlertPermission instance. |
| public String | Returns: the action string "*"Implements abstract java. Returns the action list (always |
| public int | Returns: hash code for this permission objectImplements abstract java. Returns the hash code for this permission object. |
| public boolean | Returns: true if this AlertPermission instance implies the specified permissionthe permission to check for implication p)Implements abstract java. Checks if this AlertPermission object implies the specified permission. |
| pack-priv boolean | |
| public PermissionCollection | Returns: the new PermissionCollectionOverrides java. Returns a new PermissionCollection object for storing AlertPermission objects. |
| isPrefix | back to summary |
|---|---|
| private final boolean isPrefix | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| serverId | back to summary |
|---|---|
| private final String serverId | |
| AlertPermission | back to summary |
|---|---|
| public AlertPermission(String target) Creates a new
| |
| AlertPermission | back to summary |
|---|---|
| public AlertPermission(String target, String actions) Creates a new
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract java. Checks whether the given object is equal to this AlertPermission instance. Two AlertPermission instances are equal if they have the same target string. | |
| getActions | back to summary |
|---|---|
| public String getActions() Implements abstract java. Returns the action list (always | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract java. Returns the hash code for this permission object. If two AlertPermission
objects are equal according to the
| |
| implies | back to summary |
|---|---|
| public boolean implies(Permission p) Implements abstract java. Checks if this AlertPermission object implies the specified permission. Another AlertPermission instance is implied by this permission either if the target strings are identical, or if this target can be made identical to the other target by replacing a trailing "*" with any string.
| |
| impliesServer | back to summary |
|---|---|
| pack-priv boolean impliesServer(AlertPermission p) | |
| newPermissionCollection | back to summary |
|---|---|
| public PermissionCollection newPermissionCollection() Overrides java. Returns a new PermissionCollection object for storing AlertPermission objects.
| |