public abstract class AbstractActionPermission<This extends AbstractActionPermission<This>> extends AbstractNamedPermission<This>
AbstractNamedPermission
apply.ALL, NONE
Modifier | Constructor and Description |
---|---|
protected |
AbstractActionPermission(String name)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
actionsEquals(Permission permission)
Determine whether the actions of this permission are equal to the actions of given
permission . |
abstract boolean |
actionsEquals(String actions)
Determine whether the actions of this permission are equal to the given
actions . |
abstract boolean |
actionsEquals(This permission)
Determine whether the actions of this permission are equal to the actions of given
permission . |
protected abstract int |
actionsHashCode()
Get the actions hash code.
|
boolean |
equals(This permission)
Determine whether this permission is equal to another permission.
|
int |
hashCode()
Get the hash code of this permission.
|
boolean |
implies(This permission)
Determine whether this permission implies another permission.
|
boolean |
impliesActions(Permission permission)
Determine whether this permission's actions value implies the actions of the given
permission . |
abstract boolean |
impliesActions(String actions)
Determine whether this permission's actions value implies the given actions value.
|
abstract boolean |
impliesActions(This permission)
Determine whether this permission's actions value implies the actions of the given
permission . |
abstract This |
withActions(String actionsString)
Get a permission which is identical to this one, but with new actions which consist of the union of the actions
from this permission and the actions from the given string.
|
This |
withActionsFrom(This permission)
Get a permission which is identical to this one, but with new actions which consist of the union of the actions
from this permission and the actions from the given permission.
|
abstract This |
withNewActions(String actionsString)
Get a permission which is identical to this one, but with new actions as given by
actionsString . |
This |
withNewActionsFrom(This permission)
Get a permission which is identical to this one, but with new actions as given by
actionsString . |
abstract This |
withoutActions(String actionsString)
Get a permission which is identical to this one, but with new actions which consist of the actions
from this permission without the actions from the given string.
|
This |
withoutActionsFrom(This permission)
Get a permission which is identical to this one, but with new actions which consist of the actions
from this permission without the actions from the given permission.
|
impliesName, impliesName, impliesName, nameEquals, nameEquals, nameEquals, nameHashCode, withName
equals, getActions, implies, newPermissionCollection, requireEmptyActions
checkGuard, getName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
and, checkPermission, from, from, from, from, not, or, toPermissionCollection, unless, xor
protected AbstractActionPermission(String name)
name
- the permission namepublic final boolean implies(This permission)
true
if
both impliesActions(AbstractActionPermission)
and AbstractNamedPermission.impliesName(AbstractNamedPermission)
return true
.implies
in class AbstractNamedPermission<This extends AbstractActionPermission<This>>
permission
- the other permissiontrue
if this permission implies the other; false
otherwisepublic final boolean equals(This permission)
true
if
both actionsEquals(AbstractActionPermission)
and AbstractNamedPermission.nameEquals(AbstractNamedPermission)
return true
.equals
in class AbstractNamedPermission<This extends AbstractActionPermission<This>>
permission
- the other permissiontrue
if this permission implies the other; false
otherwisepublic final int hashCode()
AbstractPermission
AbstractPermission.equals(AbstractPermission)
result.hashCode
in class AbstractNamedPermission<This extends AbstractActionPermission<This>>
public abstract boolean actionsEquals(String actions)
actions
.actions
- the actions string (must not be null
)true
if the actions are equal, false
otherwisepublic final boolean actionsEquals(Permission permission)
permission
. If
the permission is not of the same type as this permission, false
is returned.permission
- the permission whose actions are to be comparedtrue
if the actions are equal, false
otherwisepublic abstract boolean actionsEquals(This permission)
permission
.permission
- the permission whose actions are to be comparedtrue
if the actions are equal, false
otherwiseprotected abstract int actionsHashCode()
public abstract boolean impliesActions(String actions)
actions
- the actions to test (must not be null
)true
if this permission implies the other; false
otherwisepublic final boolean impliesActions(Permission permission)
permission
. If
the permission is not of the same type as this permission, false
is returned.permission
- the permission whose actions are to be comparedtrue
if this permission implies the other; false
otherwisepublic abstract boolean impliesActions(This permission)
permission
.permission
- the permission whose actions are to be comparedtrue
if this permission implies the other; false
otherwisepublic abstract This withActions(String actionsString)
actionsString
- the actions string (must not be null
)null
)public This withActionsFrom(This permission)
permission
- the other permission (must not be null
)null
)public abstract This withoutActions(String actionsString)
actionsString
- the actions string (must not be null
)null
)public This withoutActionsFrom(This permission)
permission
- the other permission (must not be null
)null
)public abstract This withNewActions(String actionsString)
actionsString
.
The returned permission may or may not be a new instance, and may be equal to this instance.actionsString
- the actions string (must not be null
)null
)public This withNewActionsFrom(This permission)
actionsString
.
The returned permission may or may not be a new instance, and may be equal to this instance.permission
- the other permission (must not be null
)null
)Copyright © 2021 JBoss by Red Hat. All rights reserved.