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.MarshalException
org.exolab.castor.xml.ValidationException
void saveUser(String name, User details) throws Exception
saveUser
a
- Stringa
- UserException
boolean isUserOnDuty(String user, Calendar time) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
isUserOnDuty
a
- Stringa
- CalendarIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
Map<String,User> getUsers() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getUsers
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
OnmsUserList getOnmsUserList() throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getOnmsUserList
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
OnmsUser getOnmsUser(String username) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getOnmsUser
a
- Stringorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
boolean hasUser(String userName) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
hasUser
a
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
List<String> getUserNames() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getUserNames
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
User getUser(String name) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getUser
a
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getTuiPin(String name) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTuiPin
a
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getTuiPin(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTuiPin
a
- UserIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getMicroblogName(String name) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, FileNotFoundException, IOException
getMicroblogName
a
- Stringorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
FileNotFoundException
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 org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getContactInfo
a
- Stringa
- ContactTypeorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
String getContactInfo(String userID, String command) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getContactInfo
a
- Stringa
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getContactInfo(User user, String command) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getContactInfo
a
- Usera
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getContactServiceProvider(String userID, String command) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getContactServiceProvider
a
- Stringa
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getContactServiceProvider(User user, String command) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getContactServiceProvider
a
- Usera
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getEmail(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getEmail
a
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getEmail(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getEmail
a
- UserIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getPagerEmail(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getPagerEmail
a
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getPagerEmail(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getPagerEmail
a
- UserIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getNumericPin(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getNumericaPin
a
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getNumericPin(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getNumericPin
a
- UserIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getXMPPAddress(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getXMPPAddress
a
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getXMPPAddress(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getXMPPAddress
a
- UserIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getNumericPage(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getNumericPage
a
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getNumericPage(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getNumericPage
a
- UserIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getTextPin(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTextPin
a
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getTextPin(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTextPin
a
- UserIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getTextPage(String userID) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTextPage
a
- StringIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getTextPage(User user) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getTextPage
a
- UserIOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String getWorkPhone(String userID) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getWorkPhone
a
- Stringorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
String getWorkPhone(User user) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getWorkPhone
a
- Userorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
String getMobilePhone(String userID) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getMobilePhone
a
- Stringorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
String getMobilePhone(User user) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getMobilePhone
a
- Userorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
String getHomePhone(String userID) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getHomePhone
a
- Stringorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
String getHomePhone(User user) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getHomePhone
a
- Userorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
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, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
update
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
String[] getUsersWithRole(String roleid) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
getUsersWithRole
roleid
- IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
boolean userHasRole(User user, String roleid) throws FileNotFoundException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
userHasRole
a
- Usera
- StringFileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
boolean isUserScheduledForRole(User user, String roleid, Date time) throws FileNotFoundException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
isUserScheduledForRole
a
- Usera
- Stringa
- DateFileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
String[] getUsersScheduledForRole(String roleid, Date time) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
getUsersScheduledForRole
a
- Stringa
- Dateorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
boolean hasRole(String roleid) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
hasRole
a
- Stringorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
int countUsersWithRole(String roleid) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
countUsersWithRole
a
- Stringorg.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
Copyright © 2015. All rights reserved.