public interface UserConfig
| Modifier and Type | Interface and Description |
|---|---|
static class |
UserConfig.ContactType |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkSaltedPassword(String raw,
String encrypted)
checkSaltedPassword
|
boolean |
comparePasswords(String userID,
String aPassword)
comparePasswords
|
int |
countUsersWithRole(String roleid)
countUsersWithRole
|
void |
deleteUser(String name)
deleteUser
|
String |
encryptedPassword(String aPassword,
boolean useSalt)
encryptedPassword
|
String |
getContactInfo(String userID,
String command)
getContactInfo
|
String |
getContactInfo(String userId,
UserConfig.ContactType contactType)
getContactInfo
|
String |
getContactInfo(User user,
String command)
getContactInfo
|
String |
getContactServiceProvider(String userID,
String command)
getContactServiceProvider
|
String |
getContactServiceProvider(User user,
String command)
getContactServiceProvider
|
String |
getEmail(String userID)
getEmail
|
String |
getEmail(User user)
getEmail
|
String |
getHomePhone(String userID)
getHomePhone
|
String |
getHomePhone(User user)
getHomePhone
|
String |
getMicroblogName(String name)
getMicroblogName
|
String |
getMobilePhone(String userID)
getMobilePhone
|
String |
getMobilePhone(User user)
getMobilePhone
|
String |
getNumericPage(String userID)
getNumericPage
|
String |
getNumericPage(User user)
getNumericPage
|
String |
getNumericPin(String userID)
getNumericaPin
|
String |
getNumericPin(User user)
getNumericPin
|
OnmsUser |
getOnmsUser(String username)
getOnmsUser
|
OnmsUserList |
getOnmsUserList()
getOnmsUserList
|
String |
getPagerEmail(String userID)
getPagerEmail
|
String |
getPagerEmail(User user)
getPagerEmail
|
String |
getTextPage(String userID)
getTextPage
|
String |
getTextPage(User user)
getTextPage
|
String |
getTextPin(String userID)
getTextPin
|
String |
getTextPin(User user)
getTextPin
|
String |
getTuiPin(String name)
getTuiPin
|
String |
getTuiPin(User user)
getTuiPin
|
User |
getUser(String name)
getUser
|
List<String> |
getUserNames()
getUserNames
|
Map<String,User> |
getUsers()
getUsers
|
String[] |
getUsersScheduledForRole(String roleid,
Date time)
getUsersScheduledForRole
|
String[] |
getUsersWithRole(String roleid)
getUsersWithRole
|
String |
getWorkPhone(String userID)
getWorkPhone
|
String |
getWorkPhone(User user)
getWorkPhone
|
String |
getXMPPAddress(String userID)
getXMPPAddress
|
String |
getXMPPAddress(User user)
getXMPPAddress
|
boolean |
hasRole(String roleid)
hasRole
|
boolean |
hasUser(String userName)
hasUser
|
boolean |
isUserOnDuty(String user,
Calendar time)
isUserOnDuty
|
boolean |
isUserScheduledForRole(User user,
String roleid,
Date time)
isUserScheduledForRole
|
void |
parseXML(InputStream in)
parseXML
|
void |
renameUser(String oldName,
String newName)
renameUser
|
void |
save(OnmsUser onmsUser)
save
|
void |
saveUser(String name,
User details)
saveUser
|
void |
saveUsers(Collection<User> usersList)
saveUsers
|
void |
setContactInfo(String userId,
UserConfig.ContactType contactType,
String contactValue)
setContactInfo
|
void |
setEncryptedPassword(String userID,
String aPassword,
boolean salted)
setEncryptedPassword
|
void |
setUnencryptedPassword(String userID,
String aPassword)
setUnencryptedPassword
|
void |
update()
update
|
boolean |
userHasRole(User user,
String roleid)
userHasRole
|
void parseXML(InputStream in) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
parseXML
an - InputStreamorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionvoid saveUser(String name, User details) throws Exception
saveUser
a - Stringa - UserExceptionboolean isUserOnDuty(String user, Calendar time) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
isUserOnDuty
a - Stringa - CalendarIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionMap<String,User> getUsers() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getUsers
IOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionOnmsUserList getOnmsUserList() throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getOnmsUserList
org.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionOnmsUser getOnmsUser(String username) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getOnmsUser
a - Stringorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionboolean hasUser(String userName) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
hasUser
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionList<String> getUserNames() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getUserNames
IOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionUser getUser(String name) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getUser
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getTuiPin(String name) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTuiPin
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getTuiPin(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTuiPin
a - UserIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getMicroblogName(String name) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, FileNotFoundException, IOException
getMicroblogName
a - Stringorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionFileNotFoundExceptionIOExceptionvoid setContactInfo(String userId, UserConfig.ContactType contactType, String contactValue) throws Exception
setContactInfo
a - Stringa - ContactTypea - StringExceptionString getContactInfo(String userId, UserConfig.ContactType contactType) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getContactInfo
a - Stringa - ContactTypeorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionString getContactInfo(String userID, String command) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getContactInfo
a - Stringa - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getContactInfo(User user, String command) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getContactInfo
a - Usera - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getContactServiceProvider(String userID, String command) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getContactServiceProvider
a - Stringa - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getContactServiceProvider(User user, String command) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getContactServiceProvider
a - Usera - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getEmail(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getEmail
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getEmail(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getEmail
a - UserIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getPagerEmail(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getPagerEmail
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getPagerEmail(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getPagerEmail
a - UserIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getNumericPin(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getNumericaPin
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getNumericPin(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getNumericPin
a - UserIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getXMPPAddress(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getXMPPAddress
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getXMPPAddress(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getXMPPAddress
a - UserIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getNumericPage(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getNumericPage
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getNumericPage(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getNumericPage
a - UserIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getTextPin(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTextPin
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getTextPin(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTextPin
a - UserIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getTextPage(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTextPage
a - StringIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getTextPage(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTextPage
a - UserIOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString getWorkPhone(String userID) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getWorkPhone
a - Stringorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionString getWorkPhone(User user) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getWorkPhone
a - Userorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionString getMobilePhone(String userID) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getMobilePhone
a - Stringorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionString getMobilePhone(User user) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getMobilePhone
a - Userorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionString getHomePhone(String userID) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getHomePhone
a - Stringorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionString getHomePhone(User user) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getHomePhone
a - Userorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionvoid saveUsers(Collection<User> usersList) throws Exception
saveUsers
a - CollectionExceptionvoid deleteUser(String name) throws Exception
deleteUser
a - StringExceptionvoid renameUser(String oldName, String newName) throws Exception
renameUser
a - Stringa - StringExceptionvoid setEncryptedPassword(String userID, String aPassword, boolean salted) throws Exception
setEncryptedPassword
a - Stringa - Stringa - booleanExceptionvoid setUnencryptedPassword(String userID, String aPassword) throws Exception
setUnencryptedPassword
a - Stringa - StringExceptionString encryptedPassword(String aPassword, boolean useSalt)
encryptedPassword
a - Stringa - booleanboolean comparePasswords(String userID, String aPassword)
comparePasswords
a - Stringa - Stringboolean checkSaltedPassword(String raw, String encrypted)
checkSaltedPassword
a - Stringa - Stringvoid update()
throws IOException,
FileNotFoundException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
update
IOExceptionFileNotFoundExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionString[] getUsersWithRole(String roleid) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getUsersWithRole
roleid - IOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionboolean userHasRole(User user, String roleid) throws FileNotFoundException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
userHasRole
a - Usera - StringFileNotFoundExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionboolean isUserScheduledForRole(User user, String roleid, Date time) throws FileNotFoundException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
isUserScheduledForRole
a - Usera - Stringa - DateFileNotFoundExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionString[] getUsersScheduledForRole(String roleid, Date time) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getUsersScheduledForRole
a - Stringa - Dateorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionboolean hasRole(String roleid) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
hasRole
a - Stringorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionint countUsersWithRole(String roleid) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
countUsersWithRole
a - Stringorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionCopyright © 2015. All rights reserved.