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 Details

    • CLASS_DOT

      public static final String 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

      @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)
    • getTask

      @GetMapping("/tasks/{oid}") public org.springframework.http.ResponseEntity<?> getTask(@PathVariable("oid") String oid, @RequestParam(value="include",required=false) List<String> include)