org.opennms.netmgt.config
Class UserFactory
java.lang.Object
org.opennms.netmgt.config.UserManager
org.opennms.netmgt.config.UserFactory
public class UserFactory
- extends UserManager
|
Constructor Summary |
UserFactory()
Initializes the factory |
| Methods inherited from class org.opennms.netmgt.config.UserManager |
comparePasswords, countUsersWithRole, deleteUser, encryptedPassword, getContactInfo, getContactInfo, getContactServiceProvider, getContactServiceProvider, getEmail, getEmail, getNumericPage, getNumericPage, getNumericPin, getNumericPin, getPagerEmail, getPagerEmail, getTextPage, getTextPage, getTextPin, getTextPin, getUser, getUserNames, getUsers, getUsersScheduledForRole, getUsersWithRole, getXMPPAddress, getXMPPAddress, hasRole, hasUser, isUserOnDuty, isUserScheduledForRole, parseXML, renameUser, saveUser, saveUsers, setEncryptedPassword, setUnencryptedPassword, userHasRole |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
usersFile
protected File usersFile
- File path of users.xml
UserFactory
public UserFactory()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
FileNotFoundException,
IOException
- Initializes the factory
- Throws:
IOException
FileNotFoundException
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
init
public static void init()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Throws:
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
getInstance
public static UserManager getInstance()
- Singleton static call to get the only instance that should exist for the
UserFactory
- Returns:
- the single user factory instance
setInstance
public static void setInstance(UserManager mgr)
reload
public void reload()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Throws:
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
saveXML
protected void saveXML(String writerString)
throws IOException
- Specified by:
saveXML in class UserManager
- Parameters:
writerString -
- Throws:
IOException
isUpdateNeeded
public boolean isUpdateNeeded()
- Specified by:
isUpdateNeeded in class UserManager
- Returns:
update
protected void update()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Specified by:
update in class UserManager
- Throws:
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
Copyright © 2009. All Rights Reserved.