Class UserMgmtStaffResource
- java.lang.Object
-
- de.adorsys.ledgers.middleware.rest.resource.UserMgmtStaffResource
-
- All Implemented Interfaces:
UserMgmtStaffResourceAPI
@RestController @MiddlewareUserResource @RequestMapping("/staff-access/users") public class UserMgmtStaffResource extends Object implements UserMgmtStaffResourceAPI
-
-
Field Summary
-
Fields inherited from interface de.adorsys.ledgers.middleware.rest.resource.UserMgmtStaffResourceAPI
BASE_PATH
-
-
Constructor Summary
Constructors Constructor Description UserMgmtStaffResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Boolean>changeStatus(String userId)org.springframework.http.ResponseEntity<UserTO>createUser(UserTO user)org.springframework.http.ResponseEntity<UserTO>getBranchUserById(String userId)org.springframework.http.ResponseEntity<List<String>>getBranchUserLogins()org.springframework.http.ResponseEntity<CustomPageImpl<UserTO>>getBranchUsersByRoles(List<UserRoleTO> roles, String queryParam, Boolean blockedParam, int page, int size)org.springframework.http.ResponseEntity<UserTO>modifyUser(String branch, UserTO user)org.springframework.http.ResponseEntity<UserTO>register(String branch, UserTO branchStaff)org.springframework.http.ResponseEntity<Void>revertDatabase(RevertRequestTO request)org.springframework.http.ResponseEntity<Void>updateAccountAccessForUser(String userId, AccountAccessTO access)org.springframework.http.ResponseEntity<Void>updateUserScaData(String userId, List<ScaUserDataTO> data)
-
-
-
Method Detail
-
register
@PreAuthorize("isNewStaffUser(#branchStaff)") public org.springframework.http.ResponseEntity<UserTO> register(String branch, UserTO branchStaff)- Specified by:
registerin interfaceUserMgmtStaffResourceAPI
-
modifyUser
@PreAuthorize("hasManagerAccessToUser(#user.id)") public org.springframework.http.ResponseEntity<UserTO> modifyUser(String branch, UserTO user)- Specified by:
modifyUserin interfaceUserMgmtStaffResourceAPI
-
createUser
@PreAuthorize("hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<UserTO> createUser(UserTO user)- Specified by:
createUserin interfaceUserMgmtStaffResourceAPI
-
getBranchUsersByRoles
@PreAuthorize("hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<CustomPageImpl<UserTO>> getBranchUsersByRoles(List<UserRoleTO> roles, String queryParam, Boolean blockedParam, int page, int size)- Specified by:
getBranchUsersByRolesin interfaceUserMgmtStaffResourceAPI
-
getBranchUserLogins
@PreAuthorize("hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<List<String>> getBranchUserLogins()- Specified by:
getBranchUserLoginsin interfaceUserMgmtStaffResourceAPI
-
getBranchUserById
@PreAuthorize("hasManagerAccessToUser(#userId)") public org.springframework.http.ResponseEntity<UserTO> getBranchUserById(String userId)- Specified by:
getBranchUserByIdin interfaceUserMgmtStaffResourceAPI
-
updateUserScaData
@PreAuthorize("hasManagerAccessToUser(#userId)") public org.springframework.http.ResponseEntity<Void> updateUserScaData(String userId, List<ScaUserDataTO> data)- Specified by:
updateUserScaDatain interfaceUserMgmtStaffResourceAPI
-
updateAccountAccessForUser
@PreAuthorize("hasAnyRole(\'STAFF\',\'SYSTEM\')") public org.springframework.http.ResponseEntity<Void> updateAccountAccessForUser(String userId, AccountAccessTO access)- Specified by:
updateAccountAccessForUserin interfaceUserMgmtStaffResourceAPI
-
changeStatus
@PreAuthorize("hasManagerAccessToUser(#userId)") public org.springframework.http.ResponseEntity<Boolean> changeStatus(String userId)- Specified by:
changeStatusin interfaceUserMgmtStaffResourceAPI
-
revertDatabase
@PreAuthorize("hasAnyRole(\'STAFF\') and isSameUser(#request.branchId)") public org.springframework.http.ResponseEntity<Void> revertDatabase(RevertRequestTO request)- Specified by:
revertDatabasein interfaceUserMgmtStaffResourceAPI
-
-