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
Concrete implementation of Role
for a UserDatabase
.
- Author:
- Craig R. McClanahan
-
Field Summary
Modifier and TypeFieldDescriptionprotected final UserDatabase
TheUserDatabase
that owns this role.Fields inherited from class org.apache.catalina.users.AbstractRole
description, rolename
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
setDescription
(String description) Set the description of this role.void
setRolename
(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
TheUserDatabase
that owns this role.
-
-
Method Details
-
getUserDatabase
- Returns:
- the
UserDatabase
within which this Role is defined.
-
setDescription
Description copied from interface:Role
Set the description of this role.- Specified by:
setDescription
in interfaceRole
- Overrides:
setDescription
in classAbstractRole
- Parameters:
description
- The new description
-
setRolename
Description copied from interface:Role
Set the role name of this role, which must be unique within the scope of aUserDatabase
.- Specified by:
setRolename
in interfaceRole
- Overrides:
setRolename
in classAbstractRole
- Parameters:
rolename
- The new role name
-
equals
-
hashCode
-