Class RestControllerUser


  • @RestController
    @RequestMapping(value="/v1/authkit",
                    produces="application/json")
    public class RestControllerUser
    extends Object
    • Constructor Detail

      • RestControllerUser

        public RestControllerUser()
    • Method Detail

      • addUser

        @Transactional(readOnly=false)
        @PostMapping("users")
        public org.springframework.http.ResponseEntity<CreatedUserDto> addUser​(@RequestBody @Validated
                                                                               AddUserDto addUser)
      • getUser

        @Transactional(readOnly=true)
        @GetMapping("users/{uuid}")
        public org.springframework.http.ResponseEntity<UserDto> getUser​(@PathVariable("uuid") @NotEmpty
                                                                        @NotEmpty String _uuid)
      • listUsers

        @Transactional(readOnly=true)
        @GetMapping("users")
        public org.springframework.http.ResponseEntity<ItemListDto<UserDto>> listUsers​(@RequestParam(defaultValue="0")
                                                                                       int pos,
                                                                                       @RequestParam(defaultValue="0")
                                                                                       int size)
      • disableUser

        @Transactional(readOnly=false)
        @PutMapping("users/{uuid}/disable")
        public org.springframework.http.ResponseEntity<Object> disableUser​(@PathVariable("uuid") @NotEmpty
                                                                           @NotEmpty String _uuid)
      • enableUser

        @Transactional(readOnly=false)
        @PutMapping("users/{uuid}/enable")
        public org.springframework.http.ResponseEntity<Object> enableUser​(@PathVariable("uuid") @NotEmpty
                                                                          @NotEmpty String _uuid)
      • switchUserMustResetPassword

        @Transactional(readOnly=false)
        @PutMapping("users/{uuid}/switchresetpassword")
        public org.springframework.http.ResponseEntity<Object> switchUserMustResetPassword​(@PathVariable("uuid") @NotEmpty
                                                                                           @NotEmpty String _uuid)
      • resetUserLogonTrials

        @Transactional(readOnly=false)
        @PutMapping("users/{uuid}/resetlogontrials")
        public org.springframework.http.ResponseEntity<Object> resetUserLogonTrials​(@PathVariable("uuid") @NotEmpty
                                                                                    @NotEmpty String _uuid)
      • removeUser

        @Transactional(readOnly=false)
        @DeleteMapping("users/{uuid}")
        public org.springframework.http.ResponseEntity<Object> removeUser​(@PathVariable("uuid") @NotEmpty
                                                                          @NotEmpty String _uuid)
      • addGroup

        @Transactional(readOnly=false)
        @PostMapping("groups")
        public org.springframework.http.ResponseEntity<Object> addGroup​(@RequestBody @Validated
                                                                        AddGroupOrRoleDto newGroup)
      • renameGroup

        @Transactional(readOnly=false)
        @PostMapping("groups/rename")
        public org.springframework.http.ResponseEntity<Object> renameGroup​(@RequestBody @Validated
                                                                           RenameGroupOrRoleDto renameGroup)
      • setGroupDescription

        @Transactional(readOnly=false)
        @PutMapping("groups/description")
        public org.springframework.http.ResponseEntity<Object> setGroupDescription​(@RequestBody @Validated
                                                                                   AddGroupOrRoleDto changeGroup)
      • addUserInGroup

        @Transactional(readOnly=false)
        @PostMapping("users/{uuid}/ingroup/{name}")
        public org.springframework.http.ResponseEntity<Object> addUserInGroup​(@PathVariable("uuid") @NotEmpty
                                                                              @NotEmpty String _userUUID,
                                                                              @PathVariable("name") @NotEmpty
                                                                              @NotEmpty String _groupName)
      • removeUserInGroup

        @Transactional(readOnly=false)
        @DeleteMapping("users/{uuid}/ingroup/{name}")
        public org.springframework.http.ResponseEntity<Object> removeUserInGroup​(@PathVariable("uuid") @NotEmpty
                                                                                 @NotEmpty String _userUUID,
                                                                                 @PathVariable("name") @NotEmpty
                                                                                 @NotEmpty String _groupName)
      • removeGroup

        @Transactional(readOnly=false)
        @DeleteMapping("groups/{name}")
        public org.springframework.http.ResponseEntity<Object> removeGroup​(@PathVariable("name") @NotEmpty
                                                                           @NotEmpty String _groupName)
      • listAllGroups

        @Transactional(readOnly=false)
        @GetMapping("groups")
        public org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>> listAllGroups()
      • listGroupsForUser

        @Transactional(readOnly=false)
        @GetMapping("users/{uuid}/groups")
        public org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>> listGroupsForUser​(@PathVariable("uuid") @NotEmpty
                                                                                                      @NotEmpty String _userUUID)
      • addRole

        @Transactional(readOnly=false)
        @PostMapping("roles")
        public org.springframework.http.ResponseEntity<Object> addRole​(@RequestBody @Validated
                                                                       AddGroupOrRoleDto newRole)
      • renameRole

        @Transactional(readOnly=false)
        @PostMapping("roles/rename")
        public org.springframework.http.ResponseEntity<Object> renameRole​(@RequestBody @Validated
                                                                          RenameGroupOrRoleDto renameRole)
      • setRoleDescription

        @Transactional(readOnly=false)
        @PutMapping("roles/description")
        public org.springframework.http.ResponseEntity<Object> setRoleDescription​(@RequestBody @Validated
                                                                                  AddGroupOrRoleDto changeRole)
      • setRoleOnlyForClient

        @Transactional(readOnly=false)
        @PutMapping("roles/{rolename}/setOnlyForClient")
        public org.springframework.http.ResponseEntity<Object> setRoleOnlyForClient​(@PathVariable("rolename") @NotEmpty
                                                                                    @NotEmpty String _roleName,
                                                                                    @RequestBody @Validated
                                                                                    ChangeIPDto setIp)
      • addGroupInRole

        @Transactional(readOnly=false)
        @PostMapping("groups/{groupname}/inrole/{rolename}")
        public org.springframework.http.ResponseEntity<Object> addGroupInRole​(@PathVariable("groupname") @NotEmpty
                                                                              @NotEmpty String _groupName,
                                                                              @PathVariable("rolename") @NotEmpty
                                                                              @NotEmpty String _roleName)
      • removeGroupInRole

        @Transactional(readOnly=false)
        @DeleteMapping("groups/{groupname}/inrole/{rolename}")
        public org.springframework.http.ResponseEntity<Object> removeGroupInRole​(@PathVariable("groupname") @NotEmpty
                                                                                 @NotEmpty String _groupName,
                                                                                 @PathVariable("rolename") @NotEmpty
                                                                                 @NotEmpty String _roleName)
      • removeRole

        @Transactional(readOnly=false)
        @DeleteMapping("roles/{rolename}")
        public org.springframework.http.ResponseEntity<Object> removeRole​(@PathVariable("rolename") @NotEmpty
                                                                          @NotEmpty String _roleName)
      • listAllRoles

        @Transactional(readOnly=false)
        @GetMapping("roles")
        public org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>> listAllRoles()
      • listRolesForGroup

        @Transactional(readOnly=false)
        @GetMapping("groups/{groupname}/roles")
        public org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>> listRolesForGroup​(@PathVariable("groupname") @NotEmpty
                                                                                                      @NotEmpty String _groupName)
      • addRightInRole

        @Transactional(readOnly=false)
        @PostMapping("roles/{rolename}/rights/{rightname}")
        public org.springframework.http.ResponseEntity<Object> addRightInRole​(@PathVariable("rolename") @NotEmpty
                                                                              @NotEmpty String _roleName,
                                                                              @PathVariable("rightname") @NotEmpty
                                                                              @NotEmpty String _rightName)
      • removeRightInRole

        @Transactional(readOnly=false)
        @DeleteMapping("roles/{rolename}/rights/{rightname}")
        public org.springframework.http.ResponseEntity<Object> removeRightInRole​(@PathVariable("rolename") @NotEmpty
                                                                                 @NotEmpty String _roleName,
                                                                                 @PathVariable("rightname") @NotEmpty
                                                                                 @NotEmpty String _rightName)
      • getAllRights

        @Transactional(readOnly=false)
        @GetMapping("rights")
        public org.springframework.http.ResponseEntity<ItemListDto<String>> getAllRights()
      • listRightsForRole

        @Transactional(readOnly=false)
        @GetMapping("roles/{rolename}/rights")
        public org.springframework.http.ResponseEntity<ItemListDto<String>> listRightsForRole​(@PathVariable("rolename") @NotEmpty
                                                                                              @NotEmpty String _roleName)
      • addContextInRight

        @Transactional(readOnly=false)
        @PostMapping("roles/{rolename}/rights/{rightname}/contexts/{context}")
        public org.springframework.http.ResponseEntity<Object> addContextInRight​(@PathVariable("rolename") @NotEmpty
                                                                                 @NotEmpty String _roleName,
                                                                                 @PathVariable("rightname") @NotEmpty
                                                                                 @NotEmpty String _rightName,
                                                                                 @PathVariable("context") @NotEmpty
                                                                                 @NotEmpty String _context)
      • removeContextInRight

        @Transactional(readOnly=false)
        @DeleteMapping("roles/{rolename}/rights/{rightname}/contexts/{context}")
        public org.springframework.http.ResponseEntity<Object> removeContextInRight​(@PathVariable("rolename") @NotEmpty
                                                                                    @NotEmpty String _roleName,
                                                                                    @PathVariable("rightname") @NotEmpty
                                                                                    @NotEmpty String _rightName,
                                                                                    @PathVariable("context") @NotEmpty
                                                                                    @NotEmpty String _context)
      • listContextsForRight

        @Transactional(readOnly=false)
        @GetMapping("roles/{rolename}/rights/{rightname}/contexts")
        public org.springframework.http.ResponseEntity<ItemListDto<String>> listContextsForRight​(@PathVariable("rolename") @NotEmpty
                                                                                                 @NotEmpty String _roleName,
                                                                                                 @PathVariable("rightname") @NotEmpty
                                                                                                 @NotEmpty String _rightName)
      • listLinkedUsersForGroup

        @Transactional(readOnly=false)
        @GetMapping("groups/{name}/users")
        public org.springframework.http.ResponseEntity<ItemListDto<UserDto>> listLinkedUsersForGroup​(@PathVariable("name") @NotEmpty
                                                                                                     @NotEmpty String _groupName)
      • listLinkedGroupsForRole

        @Transactional(readOnly=false)
        @GetMapping("roles/{name}/groups")
        public org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>> listLinkedGroupsForRole​(@PathVariable("name") @NotEmpty
                                                                                                            @NotEmpty String _roleName)
      • getUserPrivacy

        @Transactional(readOnly=true)
        @GetMapping("users/{uuid}/privacy")
        public org.springframework.http.ResponseEntity<UserPrivacyDto> getUserPrivacy​(@PathVariable("uuid") @NotEmpty
                                                                                      @NotEmpty String _uuid)
      • getUsersPrivacy

        @Transactional(readOnly=true)
        @GetMapping("users/privacy")
        public org.springframework.http.ResponseEntity<ItemListDto<UserPrivacyDto>> getUsersPrivacy​(@RequestBody @Validated
                                                                                                    ListStringDto userUUIDList)
      • setUserPrivacy

        @Transactional(readOnly=false)
        @PutMapping("users/{uuid}/privacy")
        public org.springframework.http.ResponseEntity<Object> setUserPrivacy​(@RequestBody @Validated
                                                                              UserPrivacyDto userPrivacyDto,
                                                                              @PathVariable("uuid") @NotEmpty
                                                                              @NotEmpty String _userUUID)