Class AbstractRole
java.lang.Object
org.apache.catalina.users.AbstractRole
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Make the principal name the same as the role name.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.catalina.Role
getUserDatabase
-
Field Details
-
description
The description of this Role. -
rolename
The role name of this Role.
-
-
Constructor Details
-
AbstractRole
public AbstractRole()
-
-
Method Details
-
getDescription
- Specified by:
getDescription
in interfaceRole
- Returns:
- the description of this role.
-
setDescription
Description copied from interface:Role
Set the description of this role.- Specified by:
setDescription
in interfaceRole
- Parameters:
description
- The new description
-
getRolename
- Specified by:
getRolename
in interfaceRole
- Returns:
- the role name of this role, which must be unique within the scope of a
UserDatabase
.
-
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
- Parameters:
rolename
- The new role name
-
getName
-