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 |
hasOnCallRole(String roleid)
hasOnCallRole
|
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)
parseXML
an - InputStreamvoid saveUser(String name, User details) throws Exception
saveUser
a - Stringa - UserExceptionboolean isUserOnDuty(String user, Calendar time) throws IOException
isUserOnDuty
a - Stringa - CalendarIOExceptionMap<String,User> getUsers() throws IOException
getUsers
IOExceptionOnmsUserList getOnmsUserList() throws IOException
getOnmsUserList
IOExceptionOnmsUser getOnmsUser(String username) throws IOException
getOnmsUser
a - StringIOExceptionboolean hasUser(String userName) throws IOException
hasUser
a - StringIOExceptionList<String> getUserNames() throws IOException
getUserNames
IOExceptionUser getUser(String name) throws IOException
getUser
a - StringIOExceptionString getTuiPin(String name) throws IOException
getTuiPin
a - StringIOExceptionString getTuiPin(User user) throws IOException
getTuiPin
a - UserIOExceptionString getMicroblogName(String name) throws FileNotFoundException, IOException
getMicroblogName
a - StringFileNotFoundExceptionIOExceptionvoid setContactInfo(String userId, UserConfig.ContactType contactType, String contactValue) throws Exception
setContactInfo
a - Stringa - ContactTypea - StringExceptionString getContactInfo(String userId, UserConfig.ContactType contactType) throws IOException
getContactInfo
a - Stringa - ContactTypeIOExceptionString getContactInfo(String userID, String command) throws IOException
getContactInfo
a - Stringa - StringIOExceptionString getContactInfo(User user, String command) throws IOException
getContactInfo
a - Usera - StringIOExceptionString getContactServiceProvider(String userID, String command) throws IOException
getContactServiceProvider
a - Stringa - StringIOExceptionString getContactServiceProvider(User user, String command) throws IOException
getContactServiceProvider
a - Usera - StringIOExceptionString getEmail(String userID) throws IOException
getEmail
a - StringIOExceptionString getEmail(User user) throws IOException
getEmail
a - UserIOExceptionString getPagerEmail(String userID) throws IOException
getPagerEmail
a - StringIOExceptionString getPagerEmail(User user) throws IOException
getPagerEmail
a - UserIOExceptionString getNumericPin(String userID) throws IOException
getNumericaPin
a - StringIOExceptionString getNumericPin(User user) throws IOException
getNumericPin
a - UserIOExceptionString getXMPPAddress(String userID) throws IOException
getXMPPAddress
a - StringIOExceptionString getXMPPAddress(User user) throws IOException
getXMPPAddress
a - UserIOExceptionString getNumericPage(String userID) throws IOException
getNumericPage
a - StringIOExceptionString getNumericPage(User user) throws IOException
getNumericPage
a - UserIOExceptionString getTextPin(String userID) throws IOException
getTextPin
a - StringIOExceptionString getTextPin(User user) throws IOException
getTextPin
a - UserIOExceptionString getTextPage(String userID) throws IOException
getTextPage
a - StringIOExceptionString getTextPage(User user) throws IOException
getTextPage
a - UserIOExceptionString getWorkPhone(String userID) throws IOException
getWorkPhone
a - StringIOExceptionString getWorkPhone(User user) throws IOException
getWorkPhone
a - UserIOExceptionString getMobilePhone(String userID) throws IOException
getMobilePhone
a - StringIOExceptionString getMobilePhone(User user) throws IOException
getMobilePhone
a - UserIOExceptionString getHomePhone(String userID) throws IOException
getHomePhone
a - StringIOExceptionString getHomePhone(User user) throws IOException
getHomePhone
a - UserIOExceptionvoid 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
update
IOExceptionFileNotFoundExceptionString[] getUsersWithRole(String roleid) throws IOException
getUsersWithRole
roleid - IOExceptionboolean userHasRole(User user, String roleid) throws FileNotFoundException, IOException
userHasRole
a - Usera - StringFileNotFoundExceptionIOExceptionboolean isUserScheduledForRole(User user, String roleid, Date time) throws FileNotFoundException, IOException
isUserScheduledForRole
a - Usera - Stringa - DateFileNotFoundExceptionIOExceptionString[] getUsersScheduledForRole(String roleid, Date time) throws IOException
getUsersScheduledForRole
a - Stringa - DateIOExceptionboolean hasOnCallRole(String roleid) throws IOException
hasOnCallRole
a - StringIOExceptionint countUsersWithRole(String roleid) throws IOException
countUsersWithRole
a - StringIOExceptionCopyright © 2020. All rights reserved.