|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.users.AbstractRole
public abstract class AbstractRole
Convenience base class for Role
implementations.
Field Summary | |
---|---|
protected String |
description
The description of this Role. |
protected String |
rolename
The role name of this Role. |
Constructor Summary | |
---|---|
AbstractRole()
|
Method Summary | |
---|---|
String |
getDescription()
Return the description of this role. |
String |
getName()
Make the principal name the same as the role name. |
String |
getRolename()
Return the role name of this role, which must be unique within the scope of a UserDatabase . |
abstract UserDatabase |
getUserDatabase()
Return the UserDatabase within which this Role is defined. |
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode, toString |
Field Detail |
---|
protected String description
protected String rolename
Constructor Detail |
---|
public AbstractRole()
Method Detail |
---|
public String getDescription()
getDescription
in interface Role
public void setDescription(String description)
setDescription
in interface Role
description
- The new descriptionpublic String getRolename()
UserDatabase
.
getRolename
in interface Role
public void setRolename(String rolename)
UserDatabase
.
setRolename
in interface Role
rolename
- The new role namepublic abstract UserDatabase getUserDatabase()
UserDatabase
within which this Role is defined.
getUserDatabase
in interface Role
public String getName()
getName
in interface Principal
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |