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 TypeMethodDescriptionReturn the description of this role.getName()Make the principal name the same as the role name.Return the role name of this role, which must be unique within the scope of aUserDatabase.abstract UserDatabaseReturn theUserDatabasewithin which this Role is defined.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.
- 
Field Details- 
descriptionThe description of this Role.
- 
rolenameThe role name of this Role.
 
- 
- 
Constructor Details- 
AbstractRolepublic AbstractRole()
 
- 
- 
Method Details- 
getDescriptionReturn the description of this role.- Specified by:
- getDescriptionin interface- Role
- Returns:
- the description of this role.
 
- 
setDescriptionSet the description of this role.- Specified by:
- setDescriptionin interface- Role
- Parameters:
- description- The new description
 
- 
getRolenameReturn the role name of this role, which must be unique within the scope of aUserDatabase.- Specified by:
- getRolenamein interface- Role
- Returns:
- the role name of this role, which must be unique
 within the scope of a UserDatabase.
 
- 
setRolenameSet 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
 
- 
getUserDatabaseReturn theUserDatabasewithin which this Role is defined.- Specified by:
- getUserDatabasein interface- Role
- Returns:
- the UserDatabasewithin which this Role is defined.
 
- 
getNameMake the principal name the same as the role name.
 
-