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 Summary
FieldsModifier and TypeFieldDescriptionprotected final UserDatabaseTheUserDatabasethat owns this role.Fields inherited from class org.apache.catalina.users.AbstractRole
description, rolename -
Method Summary
Modifier 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.AbstractRole
getDescription, getName, getRolename
-
Field Details
-
database
TheUserDatabasethat owns this role.
-
-
Method Details
-
getUserDatabase
- Returns:
- the
UserDatabasewithin which this Role is defined.
-
setDescription
Description copied from interface:RoleSet the description of this role.- Specified by:
setDescriptionin interfaceRole- Overrides:
setDescriptionin classAbstractRole- Parameters:
description- The new description
-
setRolename
Description copied from interface:RoleSet the role name of this role, which must be unique within the scope of aUserDatabase.- Specified by:
setRolenamein interfaceRole- Overrides:
setRolenamein classAbstractRole- Parameters:
rolename- The new role name
-
equals
-
hashCode
public int hashCode()
-