org.apache.catalina.users

Class MemoryRole

Implemented Interfaces:
Principal, Role

public class MemoryRole
extends AbstractRole

Concrete implementation of Role for the MemoryUserDatabase implementation of UserDatabase.

Version:
$Revision: 1.3 $ $Date: 2004/02/27 14:58:50 $

Author:
Craig R. McClanahan

Since:
4.1

Field Summary

protected MemoryUserDatabase
database
The MemoryUserDatabase that owns this role.

Fields inherited from class org.apache.catalina.users.AbstractRole

description, rolename

Method Summary

UserDatabase
getUserDatabase()
Return the UserDatabase within which this role is defined.
String
toString()
Return a String representation of this role in XML format.

Methods inherited from class org.apache.catalina.users.AbstractRole

getDescription, getName, getRolename, getUserDatabase, setDescription, setRolename

Field Details

database

protected MemoryUserDatabase database
The MemoryUserDatabase that owns this role.

Method Details

getUserDatabase

public UserDatabase getUserDatabase()
Return the UserDatabase within which this role is defined.
Specified by:
getUserDatabase in interface Role
Overrides:
getUserDatabase in interface AbstractRole


toString

public String toString()
Return a String representation of this role in XML format.


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.