public class SessionManagerFacadeImpl extends Object implements SessionManagerFacade
| Constructor and Description |
|---|
SessionManagerFacadeImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAdmin()
Checks, if the current user is an admin.
|
void |
registerUser(rst.domotic.unit.user.UserConfigType.UserConfig user,
String plainPassword,
boolean asAdmin,
List<rst.domotic.unit.UnitConfigType.UnitConfig> groups) |
void |
verifyMailAddress(String mailAddress) |
void |
verifyPasswords(String password,
String repeatedPassword)
Validates the given password and compares it with the repeated password.
|
void |
verifyPhoneNumber(String phoneNumber) |
void |
verifyUserName(String username)
Checks, if the username is available.
|
public boolean isAdmin()
SessionManagerFacadeisAdmin in interface SessionManagerFacadepublic void registerUser(rst.domotic.unit.user.UserConfigType.UserConfig user,
String plainPassword,
boolean asAdmin,
List<rst.domotic.unit.UnitConfigType.UnitConfig> groups)
throws org.openbase.jul.exception.CouldNotPerformException
registerUser in interface SessionManagerFacadeorg.openbase.jul.exception.CouldNotPerformExceptionpublic void verifyUserName(String username) throws org.openbase.jul.exception.VerificationFailedException, InterruptedException
SessionManagerFacadeverifyUserName in interface SessionManagerFacadeusername - the username to checkorg.openbase.jul.exception.VerificationFailedException - is thrown if the username is already in use.InterruptedExceptionpublic void verifyPasswords(String password, String repeatedPassword) throws org.openbase.jul.exception.VerificationFailedException
SessionManagerFacadeverifyPasswords in interface SessionManagerFacadepassword - the password to validaterepeatedPassword - the repeated passwordorg.openbase.jul.exception.VerificationFailedException - is thrown if the password is not valid or does not matches repeatedPassword.public void verifyPhoneNumber(String phoneNumber) throws org.openbase.jul.exception.VerificationFailedException
verifyPhoneNumber in interface SessionManagerFacadeorg.openbase.jul.exception.VerificationFailedExceptionpublic void verifyMailAddress(String mailAddress) throws org.openbase.jul.exception.VerificationFailedException
verifyMailAddress in interface SessionManagerFacadeorg.openbase.jul.exception.VerificationFailedExceptionCopyright © 2015–2018 openbase.org. All rights reserved.