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, getRolename
protected final UserDatabase database
UserDatabase
that owns this role.public UserDatabase getUserDatabase()
UserDatabase
within which this role is defined.getUserDatabase
in interface Role
getUserDatabase
in class AbstractRole
UserDatabase
within which this Role is defined.public void setDescription(String description)
AbstractRole
setDescription
in interface Role
setDescription
in class AbstractRole
description
- The new descriptionpublic void setRolename(String rolename)
AbstractRole
UserDatabase
.setRolename
in interface Role
setRolename
in class AbstractRole
rolename
- The new role namepublic boolean equals(Object obj)
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.