Package | Description |
---|---|
com.naturalprogrammer.spring.lemon | |
com.naturalprogrammer.spring.lemon.domain | |
com.naturalprogrammer.spring.lemon.security | |
com.naturalprogrammer.spring.lemon.util |
Modifier and Type | Method and Description |
---|---|
UserDto<ID> |
LemonController.changeEmail(ID userId,
java.lang.String code,
javax.servlet.http.HttpServletResponse response)
Changes the email
|
UserDto<ID> |
LemonController.resetPassword(java.lang.String code,
java.lang.String newPassword,
javax.servlet.http.HttpServletResponse response)
Resets password after it is forgotten
|
UserDto<ID> |
LemonController.signup(U user,
javax.servlet.http.HttpServletResponse response)
Signs up a user, and
returns current-user data and an Authorization token as a response header.
|
UserDto<ID> |
LemonController.updateUser(U user,
java.lang.String patch,
javax.servlet.http.HttpServletResponse response)
Updates a user
|
UserDto<ID> |
LemonService.updateUser(U user,
U updatedUser)
Updates a user with the given data.
|
protected UserDto<ID> |
LemonController.userWithToken(javax.servlet.http.HttpServletResponse response)
returns the current user and a new authorization token in the response
|
UserDto<ID> |
LemonController.verifyUser(ID id,
java.lang.String code,
javax.servlet.http.HttpServletResponse response)
Verifies current-user
|
Modifier and Type | Method and Description |
---|---|
protected void |
LemonService.updateUserFields(U user,
U updatedUser,
UserDto<ID> currentUser)
Updates the fields of the users.
|
Modifier and Type | Method and Description |
---|---|
UserDto<ID> |
AbstractUser.toUserDto()
Makes a User DTO
|
Modifier and Type | Method and Description |
---|---|
boolean |
LemonEntity.hasPermission(UserDto<?> user,
java.lang.String permission)
Whether the given user has the given permission for
this entity.
|
boolean |
AbstractUser.hasPermission(UserDto<?> currentUser,
java.lang.String permission)
Called by spring security permission evaluator
to check whether the current-user has the given permission
on this entity.
|
Modifier and Type | Method and Description |
---|---|
UserDto<ID> |
LemonPrincipal.currentUser() |
Constructor and Description |
---|
LemonPrincipal(UserDto<ID> userDto) |
Modifier and Type | Method and Description |
---|---|
static <ID extends java.io.Serializable> |
LemonUtils.currentUser()
Gets the current-user
|
static <ID extends java.io.Serializable> |
LemonUtils.currentUser(org.springframework.security.core.Authentication auth)
Extracts the current-user from authentication object
|