public abstract class AbstractRole extends java.lang.Object implements Role
Convenience base class for Role implementations.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
description
The description of this Role.
|
protected java.lang.String |
rolename
The role name of this Role.
|
| Constructor and Description |
|---|
AbstractRole() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Return the description of this role.
|
java.lang.String |
getName()
Make the principal name the same as the role name.
|
java.lang.String |
getRolename()
Return the role name of this role, which must be unique
within the scope of a
UserDatabase. |
abstract UserDatabase |
getUserDatabase()
Return the
UserDatabase within which this Role is defined. |
void |
setDescription(java.lang.String description)
Set the description of this role.
|
void |
setRolename(java.lang.String rolename)
Set the role name of this role, which must be unique
within the scope of a
UserDatabase. |
protected java.lang.String description
protected java.lang.String rolename
public java.lang.String getDescription()
getDescription in interface Rolepublic void setDescription(java.lang.String description)
setDescription in interface Roledescription - The new descriptionpublic java.lang.String getRolename()
UserDatabase.getRolename in interface Rolepublic void setRolename(java.lang.String rolename)
UserDatabase.setRolename in interface Rolerolename - The new role namepublic abstract UserDatabase getUserDatabase()
UserDatabase within which this Role is defined.getUserDatabase in interface Rolepublic java.lang.String getName()
getName in interface java.security.PrincipalCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.