Class AbstractRole
java.lang.Object
org.apache.catalina.users.AbstractRole
- Direct Known Subclasses:
GenericRole
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the description of this role.getName()Make the principal name the same as the role name.Gets the role name of this role, which must be unique within the scope of aUserDatabase.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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Role
getUserDatabase
-
Field Details
-
description
The description of this Role. -
rolename
The role name of this Role.
-
-
Constructor Details
-
AbstractRole
public AbstractRole()Constructs a new AbstractRole.
-
-
Method Details
-
getDescription
Description copied from interface:RoleGets the description of this role.- Specified by:
getDescriptionin interfaceRole- Returns:
- The description of this role
-
setDescription
Description copied from interface:RoleSets the description of this role.- Specified by:
setDescriptionin interfaceRole- Parameters:
description- The new description
-
getRolename
Description copied from interface:RoleGets the role name of this role, which must be unique within the scope of aUserDatabase.- Specified by:
getRolenamein interfaceRole- Returns:
- The role name
-
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- Parameters:
rolename- The new role name
-
getName
-