public interface UserMgmtStaffResourceAPI
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_PATH |
static String |
BRANCH |
static String |
PAGE |
static String |
QUERY_PARAM |
static String |
ROLES |
static String |
SIZE |
static String |
USER_CANNOT_REGISTER_IN_BRANCH |
static String |
USER_ID |
static String |
USER_NOT_IN_BRANCH |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<UserTO> |
createUser(UserTO user)
Creates new user within the same branch
|
org.springframework.http.ResponseEntity<UserTO> |
getBranchUserById(String userId)
Gets user by ID if it's within the branch
|
org.springframework.http.ResponseEntity<CustomPageImpl<UserTO>> |
getBranchUsersByRoles(List<UserRoleTO> roles,
String queryParam,
int page,
int size)
Lists users within the branch and roles
|
org.springframework.http.ResponseEntity<SCALoginResponseTO> |
login(UserCredentialsTO userCredentials)
Authorize returns a bearer token that can be reused by the consuming application.
|
org.springframework.http.ResponseEntity<UserTO> |
modifyUser(String branch,
UserTO user)
Modify a user within a given branch.
|
org.springframework.http.ResponseEntity<UserTO> |
register(String branch,
UserTO branchStaff)
Registers a new user within a given branch.
|
org.springframework.http.ResponseEntity<Void> |
updateAccountAccessForUser(String userId,
AccountAccessTO access)
Grants/Updates AccountAccess for a User for a Certain account within the branch
|
org.springframework.http.ResponseEntity<Void> |
updateUserScaData(String userId,
List<ScaUserDataTO> data)
Updates SCA Data for user if it's within the branch
|
static final String BASE_PATH
static final String BRANCH
static final String ROLES
static final String QUERY_PARAM
static final String PAGE
static final String SIZE
static final String USER_ID
static final String USER_NOT_IN_BRANCH
static final String USER_CANNOT_REGISTER_IN_BRANCH
@PostMapping(value="/register") org.springframework.http.ResponseEntity<UserTO> register(@RequestParam(value="branch") String branch, @RequestBody UserTO branchStaff)
@PostMapping(value="/modify") org.springframework.http.ResponseEntity<UserTO> modifyUser(@RequestParam(value="branch") String branch, @RequestBody UserTO user)
@PostMapping(value="/login") org.springframework.http.ResponseEntity<SCALoginResponseTO> login(@RequestBody UserCredentialsTO userCredentials)
userCredentials - tpp login and tpp pin@PostMapping org.springframework.http.ResponseEntity<UserTO> createUser(@RequestBody UserTO user)
user - user to be created@GetMapping org.springframework.http.ResponseEntity<CustomPageImpl<UserTO>> getBranchUsersByRoles(@RequestParam(value="roles") List<UserRoleTO> roles, @RequestParam(value="queryParam",defaultValue="",required=false) String queryParam, @RequestParam(value="page") int page, @RequestParam(value="size") int size)
@GetMapping(value="/{userId}")
org.springframework.http.ResponseEntity<UserTO> getBranchUserById(@PathVariable(value="userId")
String userId)
userId - user ID@PostMapping(value="/{userId}/sca-data")
org.springframework.http.ResponseEntity<Void> updateUserScaData(@PathVariable(value="userId")
String userId,
@RequestBody
List<ScaUserDataTO> data)
userId - user IDdata - user SCA data@PutMapping(value="/access/{userId}")
org.springframework.http.ResponseEntity<Void> updateAccountAccessForUser(@PathVariable(value="userId")
String userId,
@RequestBody
AccountAccessTO access)
Copyright © 2019. All rights reserved.