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
 - All Implemented Interfaces:
- java.security.Principal,- Role
 - Direct Known Subclasses:
- MemoryRole
 
 public class GenericRole<UD extends UserDatabase> extends AbstractRole Concrete implementation of Rolefor aUserDatabase.- Author:
- Craig R. McClanahan
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected UserDatabasedatabaseTheUserDatabasethat owns this role.- 
Fields inherited from class org.apache.catalina.users.AbstractRoledescription, rolename
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)UserDatabasegetUserDatabase()Return theUserDatabasewithin which this role is defined.inthashCode()voidsetDescription(java.lang.String description)Set the description of this role.voidsetRolename(java.lang.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 Detail- 
databaseprotected final UserDatabase database TheUserDatabasethat owns this role.
 
- 
 - 
Method Detail- 
getUserDatabasepublic UserDatabase getUserDatabase() Return theUserDatabasewithin which this role is defined.- Specified by:
- getUserDatabasein interface- Role
- Specified by:
- getUserDatabasein class- AbstractRole
- Returns:
- the UserDatabasewithin which this Role is defined.
 
 - 
setDescriptionpublic void setDescription(java.lang.String description) Description copied from class:AbstractRoleSet the description of this role.- Specified by:
- setDescriptionin interface- Role
- Overrides:
- setDescriptionin class- AbstractRole
- Parameters:
- description- The new description
 
 - 
setRolenamepublic void setRolename(java.lang.String rolename) Description 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
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Specified by:
- equalsin interface- java.security.Principal
- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein interface- java.security.Principal
- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-