edu.nrao.sss.webapp
Class User
java.lang.Object
edu.nrao.sss.util.XmlWrapper
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.
Constructor Summary |
User(String authenticationToken,
String userDbUrl)
Will throw an IOException if the xml returned by the userdb does not
include a valid userId. |
Methods inherited from class edu.nrao.sss.util.XmlWrapper |
addPropertyChangeListener, addPropertyChangeListener, commit, fillParameters, get, getBool, getDate, getInstanceOf, getInstanceOf, invoke, set, setBool, setDate, toString |
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
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.