public class TimePermission 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 timer. | Scheduling Risk |
create | Enables new timers to be created | Scheduling Risk |
handle | Adds a handler to the a timer. | Load Risk |
override | Change existing handlers. | Interference Risk |
system | Changes system wide timer and clock behavior. | Scheduling and Load Risk |
*
is allowed for both clock and action.
The risk classes are defined in RealtimePermission
.Constructor and Description |
---|
TimePermission(String actions)
Creates a new
TimePermission object for a given action,
i.e., the symbolic name of an action. |
TimePermission(String name,
String actions)
Creates a new
TimePermission object for a given action,
i.e., the symbolic name of an action. |
Modifier and Type | Method and Description |
---|---|
boolean |
implies(Permission permission)
Checks if the given permission's actions are "implied by" this
object's actions.
|
equals, getActions, hashCode
checkGuard, getName, newPermissionCollection, toString
public TimePermission(String name, String actions)
TimePermission
object for a given action,
i.e., the symbolic name of an action. The name
string
specifies for which clock the action applies.NullPointerException
- when actions
is null
.StaticIllegalArgumentException
- when name
or
action
is empty.name
- Specifies the domain for the action, or *
for no limit on the permission.actions
- The names of the actions to allow, or *
for all actions.public TimePermission(String actions)
TimePermission
object for a given action,
i.e., the symbolic name of an action.NullPointerException
- when actions
is null
.StaticIllegalArgumentException
- when actions
is empty.actions
- The names of the actions to allow, or *
for all actions.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-2025 aicas GmbH. All Rights Reserved.