@RestController @MiddlewareUserResource @RequestMapping(value="/staff-access/users") public class UserMgmtStaffResource extends Object implements UserMgmtStaffResourceAPI
BASE_PATH, BLOCKED, BRANCH, PAGE, QUERY_PARAM, ROLES, SIZE, USER_CANNOT_REGISTER_IN_BRANCH, USER_ID, USER_NOT_IN_BRANCH| Constructor and Description |
|---|
UserMgmtStaffResource() |
| Modifier and Type | Method and 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) |
@PreAuthorize(value="isNewStaffUser(#branchStaff)") public org.springframework.http.ResponseEntity<UserTO> register(String branch, UserTO branchStaff)
register in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasManagerAccessToUser(#user.id)") public org.springframework.http.ResponseEntity<UserTO> modifyUser(String branch, UserTO user)
modifyUser in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<UserTO> createUser(UserTO user)
createUser in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<CustomPageImpl<UserTO>> getBranchUsersByRoles(List<UserRoleTO> roles, String queryParam, Boolean blockedParam, int page, int size)
getBranchUsersByRoles in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<List<String>> getBranchUserLogins()
getBranchUserLogins in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasManagerAccessToUser(#userId)") public org.springframework.http.ResponseEntity<UserTO> getBranchUserById(String userId)
getBranchUserById in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasManagerAccessToUser(#userId)") public org.springframework.http.ResponseEntity<Void> updateUserScaData(String userId, List<ScaUserDataTO> data)
updateUserScaData in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasAnyRole(\'STAFF\',\'SYSTEM\')") public org.springframework.http.ResponseEntity<Void> updateAccountAccessForUser(String userId, AccountAccessTO access)
updateAccountAccessForUser in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasManagerAccessToUser(#userId)") public org.springframework.http.ResponseEntity<Boolean> changeStatus(String userId)
changeStatus in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasAnyRole(\'STAFF\') and isSameUser(#request.branchId)") public org.springframework.http.ResponseEntity<Void> revertDatabase(RevertRequestTO request)
revertDatabase in interface UserMgmtStaffResourceAPICopyright © 2020. All rights reserved.