Package com.evolveum.midpoint.rest.impl
Class ClusterRestController
java.lang.Object
com.evolveum.midpoint.rest.impl.AbstractRestController
com.evolveum.midpoint.rest.impl.ClusterRestController
@RestController
@RequestMapping({"/ws/cluster","/rest/cluster","/api/cluster"})
public class ClusterRestController
extends AbstractRestController
REST service used for inter-cluster communication.
These methods are NOT to be called generally by clients.
They are to be called internally by midPoint running on other cluster nodes.
So the usual form of authentication will be CLUSTER (a.k.a. node authentication).
This is also the reason why these do not need to be protected by special REST authorization action URIs.
(See
RestAuthorizationAction
.)
However, for diagnostic purposes we might allow also administrator access sometimes in the future.-
Field Summary
Fields inherited from class com.evolveum.midpoint.rest.impl.AbstractRestController
auditService, logger, prismContext, securityHelper, taskManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
deleteReportFile
(String fileName) org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
executeClusterCacheInvalidationEvent
(String type, String oid) org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
getReportFile
(String fileName) org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
stopLocalTask
(String oid) Methods inherited from class com.evolveum.midpoint.rest.impl.AbstractRestController
controllerBasePath, createBody, createErrorResponseBuilder, createErrorResponseBuilder, createResponse, createResponse, createResponse, createResponseWithLocation, createSubresult, finishRequest, handleException, handleException, handleExceptionNoLog, initRequest
-
Field Details
-
CLASS_DOT
-
-
Constructor Details
-
ClusterRestController
public ClusterRestController()
-
-
Method Details
-
executeClusterCacheInvalidationEvent
@PostMapping("/event/invalidation/") public org.springframework.http.ResponseEntity<?> executeClusterCacheInvalidationEvent() -
executeClusterCacheInvalidationEvent
@PostMapping("/event/invalidation/{type}") public org.springframework.http.ResponseEntity<?> executeClusterCacheInvalidationEvent(@PathVariable("type") String type) -
executeClusterCacheInvalidationEvent
-
executeClusterTerminateSessionEvent
@PostMapping("/event/terminateSession/") public org.springframework.http.ResponseEntity<?> executeClusterTerminateSessionEvent(@RequestBody TerminateSessionEventType event) -
listUserSession
@GetMapping("/event/listUserSession") public org.springframework.http.ResponseEntity<?> listUserSession() -
getLocalSchedulerInformation
@GetMapping("/scheduler/information") public org.springframework.http.ResponseEntity<?> getLocalSchedulerInformation() -
stopLocalScheduler
@PostMapping("/scheduler/stop") public org.springframework.http.ResponseEntity<?> stopLocalScheduler() -
startLocalScheduler
@PostMapping("/scheduler/start") public org.springframework.http.ResponseEntity<?> startLocalScheduler() -
stopLocalTask
@PostMapping("/tasks/{oid}/stop") public org.springframework.http.ResponseEntity<?> stopLocalTask(@PathVariable("oid") String oid) -
getReportFile
@GetMapping(value="/reportFiles", produces={"application/octet-stream","*/*"}) public org.springframework.http.ResponseEntity<?> getReportFile(@RequestParam("filename") String fileName) -
deleteReportFile
@DeleteMapping("/reportFiles") public org.springframework.http.ResponseEntity<?> deleteReportFile(@RequestParam("filename") String fileName) -
getTask
-