Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.clra.xml.security
Class DBAuthenticatedUser  view DBAuthenticatedUser download DBAuthenticatedUser.java

java.lang.Object
  extended bycom.clra.xml.security.DBAuthenticatedUser
All Implemented Interfaces:
org.apache.axis.security.AuthenticatedUser

public class DBAuthenticatedUser
extends java.lang.Object
implements org.apache.axis.security.AuthenticatedUser

An implementation of AuthenticatedUser that caches a accountId as well as account roles.

Version:
$Revision: 1.2 $ ($Date: 2003/03/05 02:59:31 $)

Field Summary
private  java.lang.Integer accountId
           
private  java.lang.String accountName
           
private  com.clra.member.MemberRole[] accountRoles
           
 
Constructor Summary
DBAuthenticatedUser(java.lang.Integer accountId, java.lang.String accountName, com.clra.member.MemberRole[] accountRoles)
           
 
Method Summary
 java.lang.Integer getAccountId()
          Return the user's account id.
 java.lang.String getAccountName()
          Same result as getName().
 com.clra.member.MemberRole[] getAccountRoles()
          Return the user's roles.
 java.lang.String getName()
          Return the user's name.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

accountId

private final java.lang.Integer accountId

accountName

private final java.lang.String accountName

accountRoles

private final com.clra.member.MemberRole[] accountRoles
Constructor Detail

DBAuthenticatedUser

public DBAuthenticatedUser(java.lang.Integer accountId,
                           java.lang.String accountName,
                           com.clra.member.MemberRole[] accountRoles)
Method Detail

getName

public java.lang.String getName()
Return the user's name.

Specified by:
getName in interface org.apache.axis.security.AuthenticatedUser

getAccountId

public java.lang.Integer getAccountId()
Return the user's account id.


getAccountName

public java.lang.String getAccountName()
Same result as getName(). Provided for consistency with JavaBean spec.


getAccountRoles

public com.clra.member.MemberRole[] getAccountRoles()
Return the user's roles.


toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).