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). However, for diagnostic purposes we might allow also administrator access sometimes in the future.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASS_DOT
-
Fields inherited from class com.evolveum.midpoint.rest.impl.AbstractRestController
auditService, logger, prismContext, securityHelper, taskManager
-
-
Constructor Summary
Constructors Constructor Description ClusterRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<?>
deleteReportFile(String fileName)
org.springframework.http.ResponseEntity<?>
executeClusterCacheInvalidationEvent()
org.springframework.http.ResponseEntity<?>
executeClusterCacheInvalidationEvent(String type)
org.springframework.http.ResponseEntity<?>
executeClusterCacheInvalidationEvent(String type, String oid)
org.springframework.http.ResponseEntity<?>
executeClusterTerminateSessionEvent(TerminateSessionEventType event)
org.springframework.http.ResponseEntity<?>
getLocalSchedulerInformation()
org.springframework.http.ResponseEntity<?>
getReportFile(String fileName)
org.springframework.http.ResponseEntity<?>
getTask(String oid, List<String> include)
org.springframework.http.ResponseEntity<?>
listUserSession()
org.springframework.http.ResponseEntity<?>
startLocalScheduler()
org.springframework.http.ResponseEntity<?>
stopLocalScheduler()
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, handleExceptionNoLog, initRequest
-
-
-
-
Field Detail
-
CLASS_DOT
public static final String CLASS_DOT
-
-
Method Detail
-
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
@PostMapping("/event/invalidation/{type}/{oid}") public org.springframework.http.ResponseEntity<?> executeClusterCacheInvalidationEvent(@PathVariable("type") String type, @PathVariable("oid") String oid)
-
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)
-
-