org.opennms.bb.eui.admin.UserGroupView.Parser
Class LoginParser

java.lang.Object
  |
  +--org.opennms.bb.common.utils.BBParser
        |
        +--org.opennms.bb.eui.admin.UserGroupView.Parser.LoginParser

public class LoginParser
extends BBParser

 LoginParser parses the 'users.xml' to get 
 users information for BlueBird

 It throws an IOException if the xml file is not found or if it does not
 conform to its DTD 

Author:
Vishwa

Inner classes inherited from class org.opennms.bb.common.utils.BBParser
BBParser.BBErrorHandler
 
Field Summary
private  Hashtable m_users
          Table of all users and passwords
private static String PASSWORD
           
private static String USER
           
private static String USERID
          XML TAGS that are relevant
private static String USERINFO
           
private static String USERS
           
 
Fields inherited from class org.opennms.bb.common.utils.BBParser
ATTRIB_VALUE_PAIR_ERR, ATTRIB_VALUE_PAIR_ERR_STR, EXCEPTION, m_curElement, m_errNum, m_exceptionMsg, m_inpSource, m_parser, NULL_VALUE_ERR, NULL_VALUE_ERR_STR
 
Constructor Summary
LoginParser()
          Parses from the filename passed in
 
Method Summary
 Hashtable getUsers()
          List of all users and corresponding passwords stored in this object that exist in 'users.xml'
protected  boolean processElement(org.w3c.dom.Element el, boolean isRoot)
          This is the method to be overridden by sub-classes to branch off and go through the DOM tree to handle elements specific to the XML they are parsing - does nothing here
protected  boolean processUser(org.w3c.dom.Element userNode)
           
 
Methods inherited from class org.opennms.bb.common.utils.BBParser
getErrorMessage, getErrorNumber, parse, parse, parse, parse, processDocument, processNode, processParmValue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

m_users

private Hashtable m_users
Table of all users and passwords

USERID

private static final String USERID
XML TAGS that are relevant

PASSWORD

private static final String PASSWORD

USERINFO

private static final String USERINFO

USERS

private static final String USERS

USER

private static final String USER
Constructor Detail

LoginParser

public LoginParser()
Parses from the filename passed in
Method Detail

processElement

protected boolean processElement(org.w3c.dom.Element el,
                                 boolean isRoot)
Description copied from class: BBParser
This is the method to be overridden by sub-classes to branch off and go through the DOM tree to handle elements specific to the XML they are parsing - does nothing here
Overrides:
processElement in class BBParser
Following copied from class: org.opennms.bb.common.utils.BBParser
Returns:
true if processed sucessfully, false otherwise

processUser

protected boolean processUser(org.w3c.dom.Element userNode)

getUsers

public Hashtable getUsers()
List of all users and corresponding passwords stored in this object that exist in 'users.xml'