public class NamePermission extends Permission implements Serializable
The name for a NamePermission is the name of the given permission (for example, "Admin", "test", ...). There's no hierarchical name property.
The action string (inherited from Permission) is unused. Thus, NamePermission is commonly used as the base class for "named" permissions (ones that contain a name but no actions list; you either have the named permission or you don't.) Subclasses may implement actions on top of NamePermission, if desired.
Permission
,
Serialized FormConstructor and Description |
---|
NamePermission(String name)
Creates a new NamePermission with the specified name.
|
NamePermission(String name,
String actions)
Creates a new NamePermission object with the specified name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Checks two NamePermission objects for equality.
|
String |
getActions()
Returns the canonical string representation of the actions, which
currently is the empty string "", since there are no actions.
|
int |
hashCode()
Returns the hash code value for this object.
|
boolean |
implies(Permission p)
Checks if the specified permission is "implied" by this object.
|
checkGuard, getName, newPermissionCollection, toString
public NamePermission(String name)
name
- the name of the NamePermission.public NamePermission(String name, String actions)
name
- the name of the NamePermission.actions
- ignored.public boolean implies(Permission p)
More specifically, this method returns true if:
implies
in class Permission
p
- the permission to check against.public boolean equals(Object obj)
equals
in class Permission
obj
- the object we are testing for equality with this object.public int hashCode()
getName().hashCode()
, where
getName
is from the Permission superclass.hashCode
in class Permission
public String getActions()
getActions
in class Permission
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] CORE-TOOLS
|
[sap.com]
|
default
|
BC-JAS
|
[sap.com] ENGFACADE
|
[sap.com] tc/je/usermanagement/api
|
api
|
BC-JAS-SEC
|
[sap.com] ENGINEAPI
|
[sap.com]
|
-
|
BC-JAS-SEC-UME
|
[sap.com] ENGINEAPI
|
[sap.com]
|
default
|
BC-JAS-SEC-UME
|
Copyright 2018 SAP AG Complete Copyright Notice