Package org.opennms.netmgt.config.mock
Class MockUserManager
- java.lang.Object
-
- org.opennms.netmgt.config.UserManager
-
- org.opennms.netmgt.config.mock.MockUserManager
-
- All Implemented Interfaces:
UserConfig
public class MockUserManager extends UserManager
-
-
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 MockUserManager(GroupManager groupManager, String xmlString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doUpdate()
updatelong
getFileSize()
long
getLastModified()
boolean
isUpdateNeeded()
void
reload()
protected void
saveXML(String writerString)
saveXML-
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
-
-
-
-
Constructor Detail
-
MockUserManager
public MockUserManager(GroupManager groupManager, String xmlString)
-
-
Method Detail
-
saveXML
protected void saveXML(String writerString) throws IOException
Description copied from class:UserManager
saveXML
- Specified by:
saveXML
in classUserManager
- Parameters:
writerString
- aString
object.- Throws:
IOException
- if any.
-
doUpdate
protected void doUpdate() throws IOException, FileNotFoundException
Description copied from class:UserManager
update
- Specified by:
doUpdate
in classUserManager
- Throws:
IOException
- if any.FileNotFoundException
- if any.
-
isUpdateNeeded
public boolean isUpdateNeeded()
- Specified by:
isUpdateNeeded
in classUserManager
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in classUserManager
-
getFileSize
public long getFileSize()
- Specified by:
getFileSize
in classUserManager
-
reload
public void reload() throws IOException, FileNotFoundException
- Specified by:
reload
in classUserManager
- Throws:
IOException
FileNotFoundException
-
-