public class TaskPermission extends RealtimePermission
create
, which takes no target, either the
permission is limited to the current ThreadGroup
by
specifying the target group
, or it can apply to all with no
target or the target *
.
Action Name | Description | Risks of grant |
---|---|---|
control | Enables controlling the activity of a task. | Scheduling Risk |
create | Enables new thread, timers, and tasks to be created. | Scheduling Risk |
handle | Adds handler to an asynchronous event. | Load Risk |
override | Interference Risk. | |
system | Changes system wide tasking behavior. | Load and Scheduling Risk |
RealtimePermission
.Constructor and Description |
---|
TaskPermission(String actions)
Creates a new
TaskPermission object for a given action,
i.e., the symbolic name of an action. |
TaskPermission(String target,
String actions)
Creates a new
TaskPermission object for a given action,
i.e., the symbolic name of an action. |
TaskPermission(ThreadGroup group,
String actions)
Creates a new
TaskPermission object for a given action,
i.e., the symbolic name of an action. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Compare two Permission objects for equality.
|
String |
getActions()
Obtain the actions as a String in canonical form.
|
int |
hashCode()
Obtain the hash code value for this object.
|
boolean |
implies(Permission permission)
Checks if the given permission's actions are "implied by" this
object's actions.
|
checkGuard, getName, newPermissionCollection, toString
public TaskPermission(String target, String actions)
TaskPermission
object for a given action,
i.e., the symbolic name of an action. The target
string
specifies additional limitations on the action.NullPointerException
- when action
is null
.StaticIllegalArgumentException
- when target
or action
is empty.target
- Specifies the domain for the action, or *
or null
for no limit on the permission.actions
- The names of the actions to allow, or *
for all actions.public TaskPermission(ThreadGroup group, String actions)
TaskPermission
object for a given action,
i.e., the symbolic name of an action. The group
parameter
specifies the thread group that will be compared to the current
thread group when implies
is called.NullPointerException
- when action
is null
.StaticIllegalArgumentException
- when group
is null
or action
is empty.group
- Specifies the thread group that will be compared
to the current thread group when implies
is called.actions
- The names of the actions to allow, or *
for all actions.public TaskPermission(String actions)
TaskPermission
object for a given action,
i.e., the symbolic name of an action.NullPointerException
- when action
is null
.StaticIllegalArgumentException
- when action
is empty.actions
- The names of the actions to allow, or *
for all actions.public boolean equals(Object other)
RealtimePermission
equals
in class RealtimePermission
other
- is the object with which to compare.true
when yes and false
otherwise.Object.hashCode()
,
HashMap
public String getActions()
RealtimePermission
getActions
in class RealtimePermission
public int hashCode()
RealtimePermission
hashCode
in class RealtimePermission
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public boolean implies(Permission permission)
RealtimePermission
implies
in class RealtimePermission
permission
- is the permission to check.true
when yes and false
otherwise.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2022 aicas GmbH. All Rights Reserved.