Package tv.hd3g.authkit.mod.controller
Class RestControllerUser
- java.lang.Object
-
- tv.hd3g.authkit.mod.controller.RestControllerUser
-
@RestController @RequestMapping(value="/v1/authkit", produces="application/json") public class RestControllerUser extends Object
-
-
Constructor Summary
Constructors Constructor Description RestControllerUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<BaseRepresentationModel>addContextInRight(@NotEmpty String _roleName, @NotEmpty String _rightName, @NotEmpty String _context)org.springframework.http.ResponseEntity<BaseRepresentationModel>addGroup(AddGroupOrRoleDto newGroup)org.springframework.http.ResponseEntity<BaseRepresentationModel>addGroupInRole(@NotEmpty String _groupName, @NotEmpty String _roleName)org.springframework.http.ResponseEntity<BaseRepresentationModel>addRightInRole(@NotEmpty String _roleName, @NotEmpty String _rightName)org.springframework.http.ResponseEntity<BaseRepresentationModel>addRole(AddGroupOrRoleDto newRole)org.springframework.http.ResponseEntity<CreatedUserDto>addUser(AddUserDto addUser)org.springframework.http.ResponseEntity<BaseRepresentationModel>addUserInGroup(@NotEmpty String _userUUID, @NotEmpty String _groupName)org.springframework.http.ResponseEntity<BaseRepresentationModel>disableUser(@NotEmpty String _uuid)org.springframework.http.ResponseEntity<BaseRepresentationModel>enableUser(@NotEmpty String _uuid)org.springframework.http.ResponseEntity<ItemListDto<String>>getAllRights()org.springframework.http.ResponseEntity<UserDto>getUser(@NotEmpty String _uuid)org.springframework.http.ResponseEntity<UserPrivacyDto>getUserPrivacy(@NotEmpty String _uuid)org.springframework.http.ResponseEntity<ItemListDto<UserPrivacyDto>>getUsersPrivacy(ListStringDto userUUIDList)org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>>listAllGroups()org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>>listAllRoles()org.springframework.http.ResponseEntity<ItemListDto<String>>listContextsForRight(@NotEmpty String _roleName, @NotEmpty String _rightName)org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>>listGroupsForUser(@NotEmpty String _userUUID)org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>>listLinkedGroupsForRole(@NotEmpty String _roleName)org.springframework.http.ResponseEntity<ItemListDto<UserDto>>listLinkedUsersForGroup(@NotEmpty String _groupName)org.springframework.http.ResponseEntity<ItemListDto<String>>listRightsForRole(@NotEmpty String _roleName)org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>>listRolesForGroup(@NotEmpty String _groupName)org.springframework.http.ResponseEntity<ItemListDto<UserDto>>listUsers(int pos, int size)org.springframework.http.ResponseEntity<BaseRepresentationModel>removeContextInRight(@NotEmpty String _roleName, @NotEmpty String _rightName, @NotEmpty String _context)org.springframework.http.ResponseEntity<BaseRepresentationModel>removeGroup(@NotEmpty String _groupName)org.springframework.http.ResponseEntity<BaseRepresentationModel>removeGroupInRole(@NotEmpty String _groupName, @NotEmpty String _roleName)org.springframework.http.ResponseEntity<BaseRepresentationModel>removeRightInRole(@NotEmpty String _roleName, @NotEmpty String _rightName)org.springframework.http.ResponseEntity<BaseRepresentationModel>removeRole(@NotEmpty String _roleName)org.springframework.http.ResponseEntity<BaseRepresentationModel>removeUser(@NotEmpty String _uuid)org.springframework.http.ResponseEntity<BaseRepresentationModel>removeUserInGroup(@NotEmpty String _userUUID, @NotEmpty String _groupName)org.springframework.http.ResponseEntity<BaseRepresentationModel>renameGroup(RenameGroupOrRoleDto renameGroup)org.springframework.http.ResponseEntity<BaseRepresentationModel>renameRole(RenameGroupOrRoleDto renameRole)org.springframework.http.ResponseEntity<BaseRepresentationModel>resetUserLogonTrials(@NotEmpty String _uuid)org.springframework.http.ResponseEntity<BaseRepresentationModel>setGroupDescription(AddGroupOrRoleDto changeGroup)org.springframework.http.ResponseEntity<BaseRepresentationModel>setRoleDescription(AddGroupOrRoleDto changeRole)org.springframework.http.ResponseEntity<BaseRepresentationModel>setRoleOnlyForClient(@NotEmpty String _roleName, ChangeIPDto setIp)org.springframework.http.ResponseEntity<BaseRepresentationModel>setUserPrivacy(UserPrivacyDto userPrivacyDto, @NotEmpty String _userUUID)org.springframework.http.ResponseEntity<BaseRepresentationModel>switchUserMustResetPassword(@NotEmpty String _uuid)
-
-
-
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<BaseRepresentationModel> disableUser(@PathVariable("uuid") @NotEmpty @NotEmpty String _uuid)
-
enableUser
@Transactional(readOnly=false) @PutMapping("users/{uuid}/enable") public org.springframework.http.ResponseEntity<BaseRepresentationModel> enableUser(@PathVariable("uuid") @NotEmpty @NotEmpty String _uuid)
-
switchUserMustResetPassword
@Transactional(readOnly=false) @PutMapping("users/{uuid}/switchresetpassword") public org.springframework.http.ResponseEntity<BaseRepresentationModel> switchUserMustResetPassword(@PathVariable("uuid") @NotEmpty @NotEmpty String _uuid)
-
resetUserLogonTrials
@Transactional(readOnly=false) @PutMapping("users/{uuid}/resetlogontrials") public org.springframework.http.ResponseEntity<BaseRepresentationModel> resetUserLogonTrials(@PathVariable("uuid") @NotEmpty @NotEmpty String _uuid)
-
removeUser
@Transactional(readOnly=false) @DeleteMapping("users/{uuid}") public org.springframework.http.ResponseEntity<BaseRepresentationModel> removeUser(@PathVariable("uuid") @NotEmpty @NotEmpty String _uuid)
-
addGroup
@Transactional(readOnly=false) @PostMapping("groups") public org.springframework.http.ResponseEntity<BaseRepresentationModel> addGroup(@RequestBody @Validated AddGroupOrRoleDto newGroup)
-
renameGroup
@Transactional(readOnly=false) @PostMapping("groups/rename") public org.springframework.http.ResponseEntity<BaseRepresentationModel> renameGroup(@RequestBody @Validated RenameGroupOrRoleDto renameGroup)
-
setGroupDescription
@Transactional(readOnly=false) @PutMapping("groups/description") public org.springframework.http.ResponseEntity<BaseRepresentationModel> setGroupDescription(@RequestBody @Validated AddGroupOrRoleDto changeGroup)
-
addUserInGroup
@Transactional(readOnly=false) @PostMapping("users/{uuid}/ingroup/{name}") public org.springframework.http.ResponseEntity<BaseRepresentationModel> 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<BaseRepresentationModel> 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<BaseRepresentationModel> 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<BaseRepresentationModel> addRole(@RequestBody @Validated AddGroupOrRoleDto newRole)
-
renameRole
@Transactional(readOnly=false) @PostMapping("roles/rename") public org.springframework.http.ResponseEntity<BaseRepresentationModel> renameRole(@RequestBody @Validated RenameGroupOrRoleDto renameRole)
-
setRoleDescription
@Transactional(readOnly=false) @PutMapping("roles/description") public org.springframework.http.ResponseEntity<BaseRepresentationModel> setRoleDescription(@RequestBody @Validated AddGroupOrRoleDto changeRole)
-
setRoleOnlyForClient
@Transactional(readOnly=false) @PutMapping("roles/{rolename}/setOnlyForClient") public org.springframework.http.ResponseEntity<BaseRepresentationModel> 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<BaseRepresentationModel> 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<BaseRepresentationModel> 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<BaseRepresentationModel> 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<BaseRepresentationModel> 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<BaseRepresentationModel> 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<BaseRepresentationModel> 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<BaseRepresentationModel> 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<BaseRepresentationModel> setUserPrivacy(@RequestBody @Validated UserPrivacyDto userPrivacyDto, @PathVariable("uuid") @NotEmpty @NotEmpty String _userUUID)
-
-