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
- UserException
boolean isUserOnDuty(String user, Calendar time) throws IOException
isUserOnDuty
a
- Stringa
- CalendarIOException
Map<String,User> getUsers() throws IOException
getUsers
IOException
OnmsUserList getOnmsUserList() throws IOException
getOnmsUserList
IOException
OnmsUser getOnmsUser(String username) throws IOException
getOnmsUser
a
- StringIOException
boolean hasUser(String userName) throws IOException
hasUser
a
- StringIOException
List<String> getUserNames() throws IOException
getUserNames
IOException
User getUser(String name) throws IOException
getUser
a
- StringIOException
String getTuiPin(String name) throws IOException
getTuiPin
a
- StringIOException
String getTuiPin(User user) throws IOException
getTuiPin
a
- UserIOException
String getMicroblogName(String name) throws FileNotFoundException, IOException
getMicroblogName
a
- StringFileNotFoundException
IOException
void setContactInfo(String userId, UserConfig.ContactType contactType, String contactValue) throws Exception
setContactInfo
a
- Stringa
- ContactTypea
- StringException
String getContactInfo(String userId, UserConfig.ContactType contactType) throws IOException
getContactInfo
a
- Stringa
- ContactTypeIOException
String getContactInfo(String userID, String command) throws IOException
getContactInfo
a
- Stringa
- StringIOException
String getContactInfo(User user, String command) throws IOException
getContactInfo
a
- Usera
- StringIOException
String getContactServiceProvider(String userID, String command) throws IOException
getContactServiceProvider
a
- Stringa
- StringIOException
String getContactServiceProvider(User user, String command) throws IOException
getContactServiceProvider
a
- Usera
- StringIOException
String getEmail(String userID) throws IOException
getEmail
a
- StringIOException
String getEmail(User user) throws IOException
getEmail
a
- UserIOException
String getPagerEmail(String userID) throws IOException
getPagerEmail
a
- StringIOException
String getPagerEmail(User user) throws IOException
getPagerEmail
a
- UserIOException
String getNumericPin(String userID) throws IOException
getNumericaPin
a
- StringIOException
String getNumericPin(User user) throws IOException
getNumericPin
a
- UserIOException
String getXMPPAddress(String userID) throws IOException
getXMPPAddress
a
- StringIOException
String getXMPPAddress(User user) throws IOException
getXMPPAddress
a
- UserIOException
String getNumericPage(String userID) throws IOException
getNumericPage
a
- StringIOException
String getNumericPage(User user) throws IOException
getNumericPage
a
- UserIOException
String getTextPin(String userID) throws IOException
getTextPin
a
- StringIOException
String getTextPin(User user) throws IOException
getTextPin
a
- UserIOException
String getTextPage(String userID) throws IOException
getTextPage
a
- StringIOException
String getTextPage(User user) throws IOException
getTextPage
a
- UserIOException
String getWorkPhone(String userID) throws IOException
getWorkPhone
a
- StringIOException
String getWorkPhone(User user) throws IOException
getWorkPhone
a
- UserIOException
String getMobilePhone(String userID) throws IOException
getMobilePhone
a
- StringIOException
String getMobilePhone(User user) throws IOException
getMobilePhone
a
- UserIOException
String getHomePhone(String userID) throws IOException
getHomePhone
a
- StringIOException
String getHomePhone(User user) throws IOException
getHomePhone
a
- UserIOException
void saveUsers(Collection<User> usersList) throws Exception
saveUsers
a
- CollectionException
void deleteUser(String name) throws Exception
deleteUser
a
- StringException
void renameUser(String oldName, String newName) throws Exception
renameUser
a
- Stringa
- StringException
void setEncryptedPassword(String userID, String aPassword, boolean salted) throws Exception
setEncryptedPassword
a
- Stringa
- Stringa
- booleanException
void setUnencryptedPassword(String userID, String aPassword) throws Exception
setUnencryptedPassword
a
- Stringa
- StringException
String 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
IOException
FileNotFoundException
String[] getUsersWithRole(String roleid) throws IOException
getUsersWithRole
roleid
- IOException
boolean userHasRole(User user, String roleid) throws FileNotFoundException, IOException
userHasRole
a
- Usera
- StringFileNotFoundException
IOException
boolean isUserScheduledForRole(User user, String roleid, Date time) throws FileNotFoundException, IOException
isUserScheduledForRole
a
- Usera
- Stringa
- DateFileNotFoundException
IOException
String[] getUsersScheduledForRole(String roleid, Date time) throws IOException
getUsersScheduledForRole
a
- Stringa
- DateIOException
boolean hasOnCallRole(String roleid) throws IOException
hasOnCallRole
a
- StringIOException
int countUsersWithRole(String roleid) throws IOException
countUsersWithRole
a
- StringIOException
Copyright © 2021. All rights reserved.