public abstract class AbstractActionSetPermission<This extends AbstractActionSetPermission<This>> extends AbstractActionPermission<This>
ALL, NONE
Modifier | Constructor and Description |
---|---|
protected |
AbstractActionSetPermission(String name,
int actionBits,
org.wildfly.security.util.StringEnumeration actionEnumeration)
Construct a new instance.
|
protected |
AbstractActionSetPermission(String name,
String actions,
org.wildfly.security.util.StringEnumeration actionEnumeration)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
actionsEquals(This permission)
Determine whether the actions of this permission are equal to the actions of given
permission . |
protected int |
actionsHashCode()
Get the actions hash code.
|
protected abstract This |
constructWithActionBits(int actionBits)
Construct or return a permission of this type with the same name as this one but with the given action bits.
|
int |
getActionBits()
Get the action bits of this permission.
|
String |
getActions()
Get the actions string.
|
boolean |
impliesActionBits(int actionBits)
Determine whether this permission's actions value implies the given action bits.
|
boolean |
impliesActions(String actions)
Determine whether this permission's actions value implies the given actions value.
|
boolean |
impliesActions(This permission)
Determine whether this permission's actions value implies the actions of the given
permission . |
int |
parseActions(String actionsString)
Parse the actions string into a bit set.
|
This |
withActionBits(int actionBits)
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 action bits from the given value.
|
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.
|
This |
withNewActionBits(int actionBits)
Get a permission which is identical to this one, but with new action bits as given by
actionBits . |
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 . |
This |
withoutActionBits(int actionBits)
Get a permission which is identical to this one, but with new actions which consist of the actions
from this permission without the action bits from the given value.
|
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.
|
actionsEquals, actionsEquals, equals, hashCode, implies, impliesActions
impliesName, impliesName, impliesName, nameEquals, nameEquals, nameEquals, nameHashCode, withName
equals, 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 AbstractActionSetPermission(String name, int actionBits, org.wildfly.security.util.StringEnumeration actionEnumeration)
actionsMask()
before being stored in the object
instance.name
- the permission nameactionBits
- the permission action bitsactionEnumeration
- the permission actions enumerationprotected AbstractActionSetPermission(String name, String actions, org.wildfly.security.util.StringEnumeration actionEnumeration)
name
- the permission nameactions
- the permission actions stringactionEnumeration
- the permission actions enumerationpublic final int getActionBits()
public final boolean actionsEquals(This permission)
AbstractActionPermission
permission
.actionsEquals
in class AbstractActionPermission<This extends AbstractActionSetPermission<This>>
permission
- the permission whose actions are to be comparedtrue
if the actions are equal, false
otherwisepublic final boolean impliesActions(This permission)
AbstractActionPermission
permission
.impliesActions
in class AbstractActionPermission<This extends AbstractActionSetPermission<This>>
permission
- the permission whose actions are to be comparedtrue
if this permission implies the other; false
otherwisepublic final boolean impliesActions(String actions)
AbstractActionPermission
impliesActions
in class AbstractActionPermission<This extends AbstractActionSetPermission<This>>
actions
- the actions to test (must not be null
)true
if this permission implies the other; false
otherwisepublic final boolean impliesActionBits(int actionBits)
actionBits
- the actions bits to testtrue
if this permission implies the given action bits; false
otherwiseprotected final int actionsHashCode()
AbstractActionPermission
actionsHashCode
in class AbstractActionPermission<This extends AbstractActionSetPermission<This>>
public final String getActions()
getActions
in class AbstractPermission<This extends AbstractActionSetPermission<This>>
null
)public final int parseActions(String actionsString) throws IllegalArgumentException
actionsString
- the actions stringIllegalArgumentException
- if the actions string contained an invalid name or invalid syntaxpublic final This withActions(String actionsString)
AbstractActionPermission
withActions
in class AbstractActionPermission<This extends AbstractActionSetPermission<This>>
actionsString
- the actions string (must not be null
)null
)public final This withActionsFrom(This permission)
AbstractActionPermission
withActionsFrom
in class AbstractActionPermission<This extends AbstractActionSetPermission<This>>
permission
- the other permission (must not be null
)null
)public final This withActionBits(int actionBits)
actionBits
- the action bitsnull
)public final This withoutActions(String actionsString)
AbstractActionPermission
withoutActions
in class AbstractActionPermission<This extends AbstractActionSetPermission<This>>
actionsString
- the actions string (must not be null
)null
)public final This withoutActionsFrom(This permission)
AbstractActionPermission
withoutActionsFrom
in class AbstractActionPermission<This extends AbstractActionSetPermission<This>>
permission
- the other permission (must not be null
)null
)public final This withoutActionBits(int actionBits)
actionBits
- the action bitsnull
)public final This withNewActions(String actionsString)
AbstractActionPermission
actionsString
.
The returned permission may or may not be a new instance, and may be equal to this instance.withNewActions
in class AbstractActionPermission<This extends AbstractActionSetPermission<This>>
actionsString
- the actions string (must not be null
)null
)public final This withNewActionsFrom(This permission)
AbstractActionPermission
actionsString
.
The returned permission may or may not be a new instance, and may be equal to this instance.withNewActionsFrom
in class AbstractActionPermission<This extends AbstractActionSetPermission<This>>
permission
- the other permission (must not be null
)null
)public final This withNewActionBits(int actionBits)
actionBits
.
The returned permission may or may not be a new instance, and may be equal to this instance.actionBits
- the action bitsnull
)protected abstract This constructWithActionBits(int actionBits)
actionBits
- the action bitsCopyright © 2019 JBoss by Red Hat. All rights reserved.