Package org.apache.catalina.users
Class GenericRole<UD extends UserDatabase>
java.lang.Object
org.apache.catalina.users.AbstractRole
org.apache.catalina.users.GenericRole<UD>
- Type Parameters:
- UD- The specific type of UserDase with which this role is associated
- Direct Known Subclasses:
- MemoryRole
 Concrete implementation of Role for a UserDatabase.
 
- Author:
- Craig R. McClanahan
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final UserDatabaseTheUserDatabasethat owns this role.Fields inherited from class org.apache.catalina.users.AbstractRoledescription, rolename
- 
Method SummaryModifier and TypeMethodDescriptionbooleaninthashCode()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 org.apache.catalina.users.AbstractRolegetDescription, getName, getRolename
- 
Field Details- 
databaseTheUserDatabasethat owns this role.
 
- 
- 
Method Details- 
getUserDatabase- Returns:
- the UserDatabasewithin which this Role is defined.
 
- 
setDescriptionDescription copied from interface:RoleSet the description of this role.- Specified by:
- setDescriptionin interface- Role
- Overrides:
- setDescriptionin class- AbstractRole
- Parameters:
- description- The new description
 
- 
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
- Overrides:
- setRolenamein class- AbstractRole
- Parameters:
- rolename- The new role name
 
- 
equals
- 
hashCodepublic int hashCode()
 
-