Interface UserMgmtStaffResourceAPI


  • public interface UserMgmtStaffResourceAPI
    • Method Detail

      • register

        @PostMapping("/register")
        org.springframework.http.ResponseEntity<UserTO> register​(@RequestParam("branch")
                                                                 String branch,
                                                                 @RequestBody
                                                                 UserTO branchStaff)
        Registers a new user within a given branch.
        Returns:
        user object without pin
      • modifyUser

        @PostMapping("/modify")
        org.springframework.http.ResponseEntity<UserTO> modifyUser​(@RequestParam("branch")
                                                                   String branch,
                                                                   @RequestBody
                                                                   UserTO user)
        Modify a user within a given branch.
        Returns:
        user object without pin
      • createUser

        @PostMapping
        org.springframework.http.ResponseEntity<UserTO> createUser​(@RequestBody
                                                                   UserTO user)
        Creates new user within the same branch
        Parameters:
        user - user to be created
        Returns:
        created user
      • getBranchUsersByRoles

        @GetMapping
        org.springframework.http.ResponseEntity<CustomPageImpl<UserTO>> getBranchUsersByRoles​(@RequestParam("roles")
                                                                                              List<UserRoleTO> roles,
                                                                                              @RequestParam(value="queryParam",defaultValue="",required=false)
                                                                                              String queryParam,
                                                                                              @RequestParam(value="blockedParam",required=false)
                                                                                              Boolean blockedParam,
                                                                                              @RequestParam("page")
                                                                                              int page,
                                                                                              @RequestParam("size")
                                                                                              int size)
        Lists users within the branch and roles
        Returns:
        list of users for the branch with roles
      • getBranchUserLogins

        @GetMapping("/logins")
        org.springframework.http.ResponseEntity<List<String>> getBranchUserLogins()
        Get list of user logins within the branch.
        Returns:
        list of user logins.
      • getBranchUserById

        @GetMapping("/{userId}")
        org.springframework.http.ResponseEntity<UserTO> getBranchUserById​(@PathVariable("userId")
                                                                          String userId)
        Gets user by ID if it's within the branch
        Parameters:
        userId - user ID
        Returns:
        user
      • updateUserScaData

        @PostMapping("/{userId}/sca-data")
        org.springframework.http.ResponseEntity<Void> updateUserScaData​(@PathVariable("userId")
                                                                        String userId,
                                                                        @RequestBody
                                                                        List<ScaUserDataTO> data)
        Updates SCA Data for user if it's within the branch
        Parameters:
        userId - user ID
        data - user SCA data
        Returns:
        updated user
      • updateAccountAccessForUser

        @PutMapping("/access/{userId}")
        org.springframework.http.ResponseEntity<Void> updateAccountAccessForUser​(@PathVariable("userId")
                                                                                 String userId,
                                                                                 @RequestBody
                                                                                 AccountAccessTO access)
        Grants/Updates AccountAccess for a User for a Certain account within the branch
        Returns:
        nothing
      • changeStatus

        @PostMapping("/{userId}/status")
        org.springframework.http.ResponseEntity<Boolean> changeStatus​(@PathVariable("userId")
                                                                      String userId)
      • revertDatabase

        @PostMapping("/revert")
        org.springframework.http.ResponseEntity<Void> revertDatabase​(@RequestBody
                                                                     RevertRequestTO revertRequest)