edu.nrao.sss.webapp
Class User

java.lang.Object
  extended by edu.nrao.sss.util.XmlWrapper
      extended by edu.nrao.sss.webapp.User
All Implemented Interfaces:
InvocationHandler

public class User
extends XmlWrapper

A bean wrapper for the xml document returned by the User Db.


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.nrao.sss.util.XmlWrapper
XmlWrapper.Tuple
 
Field Summary
 
Fields inherited from class edu.nrao.sss.util.XmlWrapper
ISO_8601, ISO_8601_s
 
Constructor Summary
User(String authenticationToken, String userDbUrl)
          Will throw an IOException if the xml returned by the userdb does not include a valid userId.
 
Method Summary
 String getAuthToken()
           
 String getFirstName()
           
 List<String> getGroupNames()
           
 String getLastName()
           
 String getUserId()
           
 boolean isManager()
           
 
Methods inherited from class edu.nrao.sss.util.XmlWrapper
addPropertyChangeListener, addPropertyChangeListener, commit, fillParameters, get, getBool, getDate, getInstanceOf, getInstanceOf, invoke, set, setBool, setDate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User(String authenticationToken,
            String userDbUrl)
     throws XPathExpressionException,
            SAXException,
            IOException,
            ParserConfigurationException
Will throw an IOException if the xml returned by the userdb does not include a valid userId. Valid means non-null and a length > 0.

Throws:
XPathExpressionException
SAXException
IOException
ParserConfigurationException
Method Detail

getLastName

public String getLastName()

getFirstName

public String getFirstName()

getUserId

public String getUserId()

getAuthToken

public String getAuthToken()

getGroupNames

public List<String> getGroupNames()

isManager

public boolean isManager()
Returns:
true if this user is in the Manger Group, false otherwise.


Copyright © 2009. All Rights Reserved.