public interface UserService<U extends User,R extends ResetPassword.ResetPasswordResponse> extends ChangePassword, ResetPassword<R>
ResetPassword.ResetPasswordResponse
Modifier and Type | Method and Description |
---|---|
<E> Supplier<E> |
getEnvironmentSupplier(Object... userEnvRelatedObjects)
|
UserDao<U> |
getUserDao() |
U |
notifyChange(String eventName,
U user)
Any change in User object, notify the change using the changed object
|
U |
save(U user) |
<E> void |
updateShell(Shell<E> shell,
E environment,
U user)
Once we have a User object, update the
Shell with it with any environment or contextual details. |
void |
updateShell(Shell shell,
U user)
updateShell(Shell, Object, User) where the environment does not need to be specified and is assumed
self-dervied from the user |
changePassword, changePasswordRestrictedAccess, save
onResetFail, onResetSuccess, resetPassword
U notifyChange(String eventName, U user)
<E> Supplier<E> getEnvironmentSupplier(Object... userEnvRelatedObjects)
User.getEnvironmentSupplier()
and Role.getEnvironmentSupplier()
.
In case of multiple Role
s or names of Roles; merge and decide the final Supplier of the environment context.<E> void updateShell(Shell<E> shell, E environment, U user)
Shell
with it with any environment or contextual details.shell
- as Shell
environment
- as Object (supplied by caller who has access to the raw environment). See example UserShell.getEnvironment()
.
An environment may also be derived from user or role. See getEnvironmentSupplier(Object...)
user
- as User
void updateShell(Shell shell, U user)
updateShell(Shell, Object, User)
where the environment does not need to be specified and is assumed
self-dervied from the userCopyright © 2018. All rights reserved.