Class PermissionController
java.lang.Object
energy.eddie.regionconnector.es.datadis.web.PermissionController
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptPermission(Set<String> permissionIds) voidinitBinder(org.springframework.web.bind.WebDataBinder binder) Registers custom deserializers forPermissionRequestForCreationfields.rejectPermission(Set<String> permissionIds) org.springframework.http.ResponseEntity<CreatedPermissionRequest> requestPermission(@Valid PermissionRequestForCreation requestForCreation) Creates a new permission request.
-
Field Details
-
PATH_PERMISSION_ACCEPTED
- See Also:
-
PATH_PERMISSION_REJECTED
- See Also:
-
-
Constructor Details
-
PermissionController
-
-
Method Details
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder) Registers custom deserializers forPermissionRequestForCreationfields. -
requestPermission
@PostMapping(value="/permission-request", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<CreatedPermissionRequest> requestPermission(@Valid @RequestBody @Valid PermissionRequestForCreation requestForCreation) throws DataNeedNotFoundException, UnsupportedDataNeedException, EsValidationException Creates a new permission request. The included JWT token can be passed in the Authorization header, so that theJwtAuthorizationManagerwill allow further state changing requests if they include the token. -
acceptPermission
-
rejectPermission
-