Package org.openwms.core.uaa
Class RoleController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.core.uaa.RoleController
@Validated
@MeasuredRestController
public class RoleController
extends org.openwms.core.http.AbstractWebController
A RoleController.
- Author:
- Heiko Scherrer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addSelfLink
(RoleVO result) org.springframework.http.ResponseEntity
<RoleVO> assignUserToRole
(String pKey, String userPKey) org.springframework.http.ResponseEntity
<RoleVO> org.springframework.http.ResponseEntity
<Void> org.springframework.http.ResponseEntity
<RoleVO> findByPKey
(String pKey) org.springframework.http.ResponseEntity
<List<SecurityObjectVO>> findGrantsOfRole
(String pKey) findUsersOfRole
(String pKey) org.springframework.http.ResponseEntity
<org.openwms.core.http.Index> index()
private void
replaceUsers
(RoleVO role) org.springframework.http.ResponseEntity
<RoleVO> org.springframework.http.ResponseEntity
<RoleVO> unassignUser
(String pKey, String userPKey) Methods inherited from class org.openwms.core.http.AbstractWebController
buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleRemovalNotAllowedException, handleTechnicalRuntimeException, handleValidationException, illegalArgumentException, translate
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
roleService
-
-
Constructor Details
-
RoleController
-
-
Method Details
-
index
@GetMapping("/roles/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index() -
findByPKey
-
findAllRoles
-
findUsersOfRole
-
findGrantsOfRole
@GetMapping("/roles/{pKey}/grants") public org.springframework.http.ResponseEntity<List<SecurityObjectVO>> findGrantsOfRole(@PathVariable("pKey") String pKey) -
create
@PostMapping("/roles") @Validated(Create.class) public org.springframework.http.ResponseEntity<RoleVO> create(@RequestBody @Valid @NotNull @Valid @NotNull RoleVO role, jakarta.servlet.http.HttpServletRequest req) -
save
@PutMapping("/roles/{pKey}") @Validated(Modify.class) public org.springframework.http.ResponseEntity<RoleVO> save(@PathVariable("pKey") String pKey, @RequestBody @Valid @NotNull @Valid @NotNull RoleVO role) -
delete
-
assignUserToRole
-
unassignUser
-
replaceUsers
-
addSelfLink
-