public interface PasswordServiceLocal extends PasswordService
PasswordService| Modifier and Type | Method and Description |
|---|---|
void |
addValidations(org.cyclos.impl.utils.validation.Property property,
BasicUser user,
java.lang.String username,
PasswordType passwordType)
Adds all password validations according to specified password type.
|
java.lang.String |
create(BasicUser user,
PasswordType passwordType,
java.lang.String password,
PasswordStatus status)
Creates a password for the given user and password type.
|
boolean |
exists(BasicUser user,
PasswordType passwordType)
Returns whether a valid password exists for the given user / password type
|
java.util.Set<OTPSendMedium> |
getAllowedOTPSendMediums(BasicUser basicUser,
PasswordType passwordType)
Returns the allowed mediums for the given user and password type.
|
PasswordData |
getData(BasicUser user,
PasswordType passwordType)
Returns the
PasswordData for the given user and password type. |
Pair<Password,PasswordStatus> |
getPasswordAndStatus(BasicUser user,
PasswordType passwordType)
Returns the status and the password record for the given user and password type.
|
Pair<PasswordStatus,java.util.Set<PasswordAction>> |
getStatusAndActions(BasicUser user,
PasswordType passwordType)
Similar to
PasswordService.getData(org.cyclos.model.users.users.UserLocatorVO), but with fewer data and preventing
calculating the status twice |
boolean |
isUserCanChangePassword(BasicUser user,
PasswordType passwordType)
Returns if the given user can change the password for the given type
|
boolean |
remove(BasicUser user,
PasswordType passwordType)
Removes the password of the given user and type
|
activate, allowActivation, change, changeForgottenPassword, disable, enable, forgotPasswordRequest, generateNew, getChangeForgottenPasswordData, getChangePasswordData, getData, requestNewOTP, reset, resetAndSend, resetSecurityQuestion, setSecurityQuestion, unblockvoid addValidations(org.cyclos.impl.utils.validation.Property property,
BasicUser user,
java.lang.String username,
PasswordType passwordType)
throws FrameworkException,
IllegalActionException
IllegalActionException - When the given password type doesn't apply to the given userFrameworkExceptionjava.lang.String create(BasicUser user, PasswordType passwordType, java.lang.String password, PasswordStatus status) throws FrameworkException, IllegalActionException
IllegalActionException - When the given password type doesn't apply to the given user or the password
should be generatedFrameworkExceptionboolean exists(BasicUser user, PasswordType passwordType) throws FrameworkException
FrameworkExceptionjava.util.Set<OTPSendMedium> getAllowedOTPSendMediums(BasicUser basicUser, PasswordType passwordType) throws FrameworkException
FrameworkExceptionPasswordData getData(BasicUser user, PasswordType passwordType) throws FrameworkException
PasswordData for the given user and password type. Returns null if the user has no access to
the given password typeFrameworkExceptionPair<Password,PasswordStatus> getPasswordAndStatus(BasicUser user, PasswordType passwordType) throws FrameworkException
FrameworkExceptionPair<PasswordStatus,java.util.Set<PasswordAction>> getStatusAndActions(BasicUser user, PasswordType passwordType) throws FrameworkException
PasswordService.getData(org.cyclos.model.users.users.UserLocatorVO), but with fewer data and preventing
calculating the status twiceFrameworkExceptionboolean isUserCanChangePassword(BasicUser user, PasswordType passwordType) throws FrameworkException
FrameworkExceptionboolean remove(BasicUser user, PasswordType passwordType) throws FrameworkException
FrameworkException