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 TypeMethodDescriptionbooleanReturn theUserDatabasewithin which this role is defined.inthashCode()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- 
getUserDatabaseReturn theUserDatabasewithin which this role is defined.- Specified by:
- getUserDatabasein interface- Role
- Specified by:
- getUserDatabasein class- AbstractRole
- Returns:
- the UserDatabasewithin which this Role is defined.
 
- 
setDescriptionDescription copied from class:AbstractRoleSet the description of this role.- Specified by:
- setDescriptionin interface- Role
- Overrides:
- setDescriptionin class- AbstractRole
- Parameters:
- description- The new description
 
- 
setRolenameDescription copied from class:AbstractRoleSet 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()
 
-