@RestController @MiddlewareUserResource @RequestMapping(value="/staff-access/users") public class UserMgmtStaffResource extends Object implements UserMgmtStaffResourceAPI
BASE_PATH, 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<UserTO> |
createUser(UserTO user) |
org.springframework.http.ResponseEntity<UserTO> |
getBranchUserById(String userId) |
org.springframework.http.ResponseEntity<CustomPageImpl<UserTO>> |
getBranchUsersByRoles(List<UserRoleTO> roles,
String queryParam,
int page,
int size) |
org.springframework.http.ResponseEntity<SCALoginResponseTO> |
login(UserCredentialsTO userCredentials) |
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> |
updateAccountAccessForUser(String userId,
AccountAccessTO access) |
org.springframework.http.ResponseEntity<Void> |
updateUserScaData(String userId,
List<ScaUserDataTO> data) |
public org.springframework.http.ResponseEntity<UserTO> register(String branch, UserTO branchStaff)
register in interface UserMgmtStaffResourceAPIpublic org.springframework.http.ResponseEntity<UserTO> modifyUser(String branch, UserTO user)
modifyUser in interface UserMgmtStaffResourceAPIpublic org.springframework.http.ResponseEntity<SCALoginResponseTO> login(UserCredentialsTO userCredentials)
login 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, int page, int size)
getBranchUsersByRoles in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<UserTO> getBranchUserById(String userId)
getBranchUserById in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<Void> updateUserScaData(String userId, List<ScaUserDataTO> data)
updateUserScaData in interface UserMgmtStaffResourceAPI@PreAuthorize(value="hasRole(\'STAFF\')") public org.springframework.http.ResponseEntity<Void> updateAccountAccessForUser(String userId, AccountAccessTO access)
updateAccountAccessForUser in interface UserMgmtStaffResourceAPICopyright © 2020. All rights reserved.