Package org.apache.catalina.users
Class AbstractRole
java.lang.Object
org.apache.catalina.users.AbstractRole
- Direct Known Subclasses:
- GenericRole
 Convenience base class for Role implementations.
 
- Since:
- 4.1
- Author:
- Craig R. McClanahan
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetName()Make the principal name the same as the role name.voidsetDescription(String description) Set the description of this role.voidsetRolename(String rolename) Set the role name of this role, which must be unique within the scope of aUserDatabase.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.catalina.RolegetUserDatabase
- 
Field Details- 
descriptionThe description of this Role.
- 
rolenameThe role name of this Role.
 
- 
- 
Constructor Details- 
AbstractRolepublic AbstractRole()
 
- 
- 
Method Details- 
getDescription- Specified by:
- getDescriptionin interface- Role
- Returns:
- the description of this role.
 
- 
setDescriptionDescription copied from interface:RoleSet the description of this role.- Specified by:
- setDescriptionin interface- Role
- Parameters:
- description- The new description
 
- 
getRolename- Specified by:
- getRolenamein interface- Role
- Returns:
- the role name of this role, which must be unique within the scope of a UserDatabase.
 
- 
setRolenameDescription copied from interface:RoleSet the role name of this role, which must be unique within the scope of aUserDatabase.- Specified by:
- setRolenamein interface- Role
- Parameters:
- rolename- The new role name
 
- 
getNameMake the principal name the same as the role name.
 
-