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
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 java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
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
LoginParser
public LoginParser()
- Parses from the filename passed in
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'