UD - The specific type of UserDase with which this role is associatedpublic class GenericRole<UD extends UserDatabase> extends AbstractRole
Concrete implementation of Role for a
UserDatabase.
| Modifier and Type | Field and Description |
|---|---|
protected UserDatabase |
database
The
UserDatabase that owns this role. |
description, rolename| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
UserDatabase |
getUserDatabase()
Return the
UserDatabase within which this role is defined. |
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 a
UserDatabase. |
getDescription, getName, getRolenameprotected final UserDatabase database
UserDatabase that owns this role.public UserDatabase getUserDatabase()
UserDatabase within which this role is defined.getUserDatabase in interface RolegetUserDatabase in class AbstractRoleUserDatabase within which this Role is defined.public void setDescription(String description)
AbstractRolesetDescription in interface RolesetDescription in class AbstractRoledescription - The new descriptionpublic void setRolename(String rolename)
AbstractRoleUserDatabase.setRolename in interface RolesetRolename in class AbstractRolerolename - The new role namepublic boolean equals(Object obj)
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.