|
Apache Tomcat 6.0.53 | ||||||||
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 java.lang.String |
description
The description of this Role. |
protected java.lang.String |
rolename
The role name of this Role. |
Constructor Summary | |
---|---|
AbstractRole()
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Return the description of this role. |
java.lang.String |
getName()
Make the principal name the same as the role name. |
java.lang.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(java.lang.String description)
Set the description of this role. |
void |
setRolename(java.lang.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 java.lang.String description
protected java.lang.String rolename
Constructor Detail |
---|
public AbstractRole()
Method Detail |
---|
public java.lang.String getDescription()
getDescription
in interface Role
public void setDescription(java.lang.String description)
setDescription
in interface Role
description
- The new descriptionpublic java.lang.String getRolename()
UserDatabase
.
getRolename
in interface Role
public void setRolename(java.lang.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 java.lang.String getName()
getName
in interface java.security.Principal
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |