public abstract class AbstractNamingPermission<This extends AbstractNamingPermission<This>> extends AbstractActionSetPermission<This>
SimpleName
and which support separate
actions for each naming operation.NONE
Modifier | Constructor and Description |
---|---|
protected |
AbstractNamingPermission(SimpleName simpleName,
int actionBits) |
protected |
AbstractNamingPermission(SimpleName simpleName,
String actions) |
protected |
AbstractNamingPermission(String name,
int actionBits) |
protected |
AbstractNamingPermission(String name,
String actions) |
Modifier and Type | Method and Description |
---|---|
protected abstract This |
constructNew(SimpleName simpleName,
int actionBits) |
protected 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.
|
protected SimpleName |
getSimpleName() |
boolean |
impliesName(SimpleName otherName) |
boolean |
impliesName(String name)
Determine whether this permission implies the given name.
|
boolean |
impliesName(This permission)
Determine whether this permission implies the name of the given permission.
|
boolean |
nameEquals(SimpleName name) |
boolean |
nameEquals(String name)
Determine whether this permission has a name equal to the given name.
|
AbstractPermissionCollection |
newPermissionCollection()
Get an empty permission collection which is capable of holding instances of this permission type.
|
actionsEquals, actionsHashCode, getActionBits, getActions, impliesActionBits, impliesActions, impliesActions, parseActions, withActionBits, withActions, withActionsFrom, withNewActionBits, withNewActions, withNewActionsFrom, withoutActionBits, withoutActions, withoutActionsFrom
actionsEquals, actionsEquals, equals, hashCode, implies, impliesActions
impliesName, nameEquals, nameEquals, nameHashCode, withName
equals, implies, requireEmptyActions
checkGuard, getName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
and, checkPermission, from, from, from, from, not, or, toPermissionCollection, unless, xor
protected AbstractNamingPermission(String name, String actions) throws InvalidNameException
InvalidNameException
protected AbstractNamingPermission(SimpleName simpleName, String actions)
protected AbstractNamingPermission(String name, int actionBits) throws InvalidNameException
InvalidNameException
protected AbstractNamingPermission(SimpleName simpleName, int actionBits)
public boolean impliesName(This permission)
AbstractNamedPermission
impliesName
in class AbstractNamedPermission<This extends AbstractNamingPermission<This>>
permission
- the permission whose name is to be checkedtrue
if this permission's name implies the given name, false
otherwisepublic boolean impliesName(String name)
AbstractNamedPermission
impliesName
in class AbstractNamedPermission<This extends AbstractNamingPermission<This>>
name
- the name to checktrue
if this permission's name implies the given name, false
otherwisepublic boolean impliesName(SimpleName otherName)
public boolean nameEquals(String name)
AbstractNamedPermission
nameEquals
in class AbstractNamedPermission<This extends AbstractNamingPermission<This>>
name
- the name to checktrue
if this permission's name is equal to the given name, false
otherwisepublic boolean nameEquals(SimpleName name)
protected SimpleName getSimpleName()
protected This constructWithActionBits(int actionBits)
AbstractActionSetPermission
constructWithActionBits
in class AbstractActionSetPermission<This extends AbstractNamingPermission<This>>
actionBits
- the action bitsprotected abstract This constructNew(SimpleName simpleName, int actionBits)
public AbstractPermissionCollection newPermissionCollection()
AbstractPermission
The default implementation returns a SimplePermissionCollection
.
newPermissionCollection
in class AbstractPermission<This extends AbstractNamingPermission<This>>
Copyright © 2017 JBoss by Red Hat. All rights reserved.