@RestController @MiddlewareUserResource @RequestMapping(value="/staff-access/users") public class UserMgmtStaffResource extends Object implements UserMgmtStaffResourceAPI
BASE_PATH, BRANCH, ROLES, USER_CANNOT_REGISTER_IN_BRANCH, USER_ID, USER_NOT_IN_BRANCH| Constructor and Description |
|---|
UserMgmtStaffResource(MiddlewareOnlineBankingService onlineBankingService,
MiddlewareUserManagementService middlewareUserService,
AccessTokenTO accessToken) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<UserTO> |
createUser(UserTO user) |
org.springframework.http.ResponseEntity<UserTO> |
getBranchUserById(String userId) |
org.springframework.http.ResponseEntity<List<UserTO>> |
getBranchUsersByRoles(List<UserRoleTO> roles) |
org.springframework.http.ResponseEntity<SCALoginResponseTO> |
login(UserCredentialsTO userCredentials) |
org.springframework.http.ResponseEntity<UserTO> |
register(String branch,
UserTO branchStaff) |
org.springframework.http.ResponseEntity<Void> |
updateUserScaData(String userId,
List<ScaUserDataTO> data) |
public UserMgmtStaffResource(MiddlewareOnlineBankingService onlineBankingService, MiddlewareUserManagementService middlewareUserService, AccessTokenTO accessToken)
public org.springframework.http.ResponseEntity<UserTO> register(String branch, UserTO branchStaff) throws ConflictRestException
register in interface UserMgmtStaffResourceAPIConflictRestExceptionpublic org.springframework.http.ResponseEntity<SCALoginResponseTO> login(UserCredentialsTO userCredentials) throws NotFoundRestException, ForbiddenRestException
login in interface UserMgmtStaffResourceAPINotFoundRestExceptionForbiddenRestException@PreAuthorize(value="hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<UserTO> createUser(UserTO user) throws NotFoundRestException, ConflictRestException
createUser in interface UserMgmtStaffResourceAPINotFoundRestExceptionConflictRestException@PreAuthorize(value="hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<List<UserTO>> getBranchUsersByRoles(List<UserRoleTO> roles) throws NotFoundRestException
getBranchUsersByRoles in interface UserMgmtStaffResourceAPINotFoundRestException@PreAuthorize(value="hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<UserTO> getBranchUserById(String userId) throws NotFoundRestException
getBranchUserById in interface UserMgmtStaffResourceAPINotFoundRestException@PreAuthorize(value="hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<Void> updateUserScaData(String userId, List<ScaUserDataTO> data)
updateUserScaData in interface UserMgmtStaffResourceAPICopyright © 2019. All rights reserved.