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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UserDatabaseTheUserDatabasethat owns this role.Fields inherited from class AbstractRole
description, rolename -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets theUserDatabasewithin which this Role is defined.inthashCode()voidsetDescription(String description) Sets the description of this role.voidsetRolename(String rolename) Sets the role name of this role, which must be unique within the scope of aUserDatabase.Methods inherited from class AbstractRole
getDescription, getName, getRolename
-
Field Details
-
database
TheUserDatabasethat owns this role.
-
-
Method Details
-
getUserDatabase
Description copied from interface:RoleGets theUserDatabasewithin which this Role is defined.- Returns:
- The UserDatabase within which this Role is defined
-
setDescription
Description copied from interface:RoleSets the description of this role.- Specified by:
setDescriptionin interfaceRole- Overrides:
setDescriptionin classAbstractRole- Parameters:
description- The new description
-
setRolename
Description copied from interface:RoleSets 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
-