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 -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>addContextInRight(@NotEmpty String _roleName, @NotEmpty String _rightName, @NotEmpty String _context) org.springframework.http.ResponseEntity<Object>addGroup(AddGroupOrRoleDto newGroup) org.springframework.http.ResponseEntity<Object>addGroupInRole(@NotEmpty String _groupName, @NotEmpty String _roleName) org.springframework.http.ResponseEntity<Object>addRightInRole(@NotEmpty String _roleName, @NotEmpty String _rightName) org.springframework.http.ResponseEntity<Object>addRole(AddGroupOrRoleDto newRole) org.springframework.http.ResponseEntity<CreatedUserDto>addUser(AddUserDto addUser) org.springframework.http.ResponseEntity<Object>addUserInGroup(@NotEmpty String _userUUID, @NotEmpty String _groupName) org.springframework.http.ResponseEntity<Object>disableUser(@NotEmpty String _uuid) org.springframework.http.ResponseEntity<Object>enableUser(@NotEmpty String _uuid) org.springframework.http.ResponseEntity<ItemListDto<String>>org.springframework.http.ResponseEntity<UserDto>org.springframework.http.ResponseEntity<UserPrivacyDto>getUserPrivacy(@NotEmpty String _uuid) org.springframework.http.ResponseEntity<ItemListDto<UserPrivacyDto>>getUsersPrivacy(ListStringDto userUUIDList) org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>>org.springframework.http.ResponseEntity<ItemListDto<GroupOrRoleDto>>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<Object>removeContextInRight(@NotEmpty String _roleName, @NotEmpty String _rightName, @NotEmpty String _context) org.springframework.http.ResponseEntity<Object>removeGroup(@NotEmpty String _groupName) org.springframework.http.ResponseEntity<Object>removeGroupInRole(@NotEmpty String _groupName, @NotEmpty String _roleName) org.springframework.http.ResponseEntity<Object>removeRightInRole(@NotEmpty String _roleName, @NotEmpty String _rightName) org.springframework.http.ResponseEntity<Object>removeRole(@NotEmpty String _roleName) org.springframework.http.ResponseEntity<Object>removeUser(@NotEmpty String _uuid) org.springframework.http.ResponseEntity<Object>removeUserInGroup(@NotEmpty String _userUUID, @NotEmpty String _groupName) org.springframework.http.ResponseEntity<Object>renameGroup(RenameGroupOrRoleDto renameGroup) org.springframework.http.ResponseEntity<Object>renameRole(RenameGroupOrRoleDto renameRole) org.springframework.http.ResponseEntity<Object>resetUserLogonTrials(@NotEmpty String _uuid) org.springframework.http.ResponseEntity<Object>setGroupDescription(AddGroupOrRoleDto changeGroup) org.springframework.http.ResponseEntity<Object>setRoleDescription(AddGroupOrRoleDto changeRole) org.springframework.http.ResponseEntity<Object>setRoleOnlyForClient(@NotEmpty String _roleName, ChangeIPDto setIp) org.springframework.http.ResponseEntity<Object>setUserPrivacy(UserPrivacyDto userPrivacyDto, @NotEmpty String _userUUID) org.springframework.http.ResponseEntity<Object>switchUserMustResetPassword(@NotEmpty String _uuid)
-
Constructor Details
-
RestControllerUser
public RestControllerUser()
-
-
Method Details
-
addUser
@Transactional(readOnly=false) @PostMapping("users") public org.springframework.http.ResponseEntity<CreatedUserDto> addUser(@RequestBody @Validated AddUserDto addUser) -
getUser
-
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
-
enableUser
-
switchUserMustResetPassword
-
resetUserLogonTrials
-
removeUser
-
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
-
removeUserInGroup
-
removeGroup
-
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
-
removeGroupInRole
-
removeRole
-
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
-
removeRightInRole
-
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)
-