public abstract class AbstractSimpleNamePermission<This extends AbstractSimpleNamePermission<This>> extends AbstractNamedPermission<This>
SimpleName
-based names with a simple root.ALL, NONE
Modifier | Constructor and Description |
---|---|
protected |
AbstractSimpleNamePermission(SimpleName simpleName) |
protected |
AbstractSimpleNamePermission(String name) |
Modifier and Type | Method and Description |
---|---|
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.
|
equals, hashCode, implies, impliesName, 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 AbstractSimpleNamePermission(String name)
protected AbstractSimpleNamePermission(SimpleName simpleName)
public boolean impliesName(This permission)
AbstractNamedPermission
impliesName
in class AbstractNamedPermission<This extends AbstractSimpleNamePermission<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 AbstractSimpleNamePermission<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 AbstractSimpleNamePermission<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()
Copyright © 2021 JBoss by Red Hat. All rights reserved.