Package org.opennms.netmgt.config
Class UserFactory
- java.lang.Object
-
- org.opennms.netmgt.config.UserManager
-
- org.opennms.netmgt.config.UserFactory
-
- All Implemented Interfaces:
UserConfig
public class UserFactory extends UserManager
UserFactory class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opennms.netmgt.config.api.UserConfig
UserConfig.ContactType
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.config.UserManager
ALLOW_UNSALTED_PROPERTY, m_dutySchedules, m_groupManager, m_users
-
-
Constructor Summary
Constructors Constructor Description UserFactory()
Initializes the factory
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doUpdate()
updatelong
getFileSize()
static UserManager
getInstance()
Singleton static call to get the only instance that should exist for the UserFactorylong
getLastModified()
static void
init()
initboolean
isUpdateNeeded()
isUpdateNeededvoid
reload()
reloadprotected void
saveXML(java.lang.String writerString)
saveXMLstatic void
setInstance(UserManager mgr)
Setter for the fieldinstance
.-
Methods inherited from class org.opennms.netmgt.config.UserManager
checkSaltedPassword, comparePasswords, countUsersWithRole, deleteUser, encryptedPassword, getContactInfo, getContactInfo, getContactInfo, getContactServiceProvider, getContactServiceProvider, getEmail, getEmail, getHomePhone, getHomePhone, getMicroblogName, getMicroblogName, getMobilePhone, getMobilePhone, getNumericPage, getNumericPage, getNumericPin, getNumericPin, getOnmsUser, getOnmsUserList, getPagerEmail, getPagerEmail, getTextPage, getTextPage, getTextPin, getTextPin, getTuiPin, getTuiPin, getUser, getUserNames, getUsers, getUsersScheduledForRole, getUsersWithRole, getWorkPhone, getWorkPhone, getXMPPAddress, getXMPPAddress, hasOnCallRole, hasUser, isUserOnDuty, isUserScheduledForRole, parseXML, renameUser, save, saveUser, saveUsers, setContactInfo, setEncryptedPassword, setUnencryptedPassword, update, userHasRole
-
-
-
-
Method Detail
-
init
public static void init() throws java.io.IOException, java.io.FileNotFoundException
init
- Throws:
java.io.IOException
- if any.java.io.FileNotFoundException
- if any.
-
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)
Setter for the field
instance
.- Parameters:
mgr
- aUserManager
object.
-
reload
public void reload() throws java.io.IOException, java.io.FileNotFoundException
reload
- Specified by:
reload
in classUserManager
- Throws:
java.io.IOException
- if any.java.io.FileNotFoundException
- if any.
-
saveXML
protected void saveXML(java.lang.String writerString) throws java.io.IOException
saveXML
- Specified by:
saveXML
in classUserManager
- Parameters:
writerString
- aString
object.- Throws:
java.io.IOException
- if any.
-
isUpdateNeeded
public boolean isUpdateNeeded()
isUpdateNeeded
- Specified by:
isUpdateNeeded
in classUserManager
- Returns:
- a boolean.
-
doUpdate
public void doUpdate() throws java.io.IOException, java.io.FileNotFoundException
update
- Specified by:
doUpdate
in classUserManager
- Throws:
java.io.IOException
- if any.java.io.FileNotFoundException
- if any.
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in classUserManager
-
getFileSize
public long getFileSize()
- Specified by:
getFileSize
in classUserManager
-
-