Class ModelRestController


  • @RestController
    @RequestMapping({"/ws/rest","/rest/model","/api/model"})
    public class ModelRestController
    extends AbstractRestController
    • Constructor Detail

      • ModelRestController

        public ModelRestController()
    • Method Detail

      • generateValue

        @PostMapping("/{type}/{oid}/generate")
        public org.springframework.http.ResponseEntity<?> generateValue​(@PathVariable("type")
                                                                        String type,
                                                                        @PathVariable("oid")
                                                                        String oid,
                                                                        @RequestBody
                                                                        PolicyItemsDefinitionType policyItemsDefinition)
      • generateValueRpc

        @PostMapping("/rpc/generate")
        public org.springframework.http.ResponseEntity<?> generateValueRpc​(@RequestBody
                                                                           PolicyItemsDefinitionType policyItemsDefinition)
      • validateValue

        @PostMapping("/{type}/{oid}/validate")
        public org.springframework.http.ResponseEntity<?> validateValue​(@PathVariable("type")
                                                                        String type,
                                                                        @PathVariable("oid")
                                                                        String oid,
                                                                        @RequestBody
                                                                        PolicyItemsDefinitionType policyItemsDefinition)
      • validateValue

        @PostMapping("/rpc/validate")
        public org.springframework.http.ResponseEntity<?> validateValue​(@RequestBody
                                                                        PolicyItemsDefinitionType policyItemsDefinition)
      • getValuePolicyForUser

        @GetMapping("/users/{id}/policy")
        public org.springframework.http.ResponseEntity<?> getValuePolicyForUser​(@PathVariable("id")
                                                                                String oid)
      • getObject

        @GetMapping("/{type}/{id}")
        public org.springframework.http.ResponseEntity<?> getObject​(@PathVariable("type")
                                                                    String type,
                                                                    @PathVariable("id")
                                                                    String id,
                                                                    @RequestParam(value="options",required=false)
                                                                    List<String> options,
                                                                    @RequestParam(value="include",required=false)
                                                                    List<String> include,
                                                                    @RequestParam(value="exclude",required=false)
                                                                    List<String> exclude,
                                                                    @RequestParam(value="resolveNames",required=false)
                                                                    List<String> resolveNames)
      • getSelf

        @GetMapping("/self")
        public org.springframework.http.ResponseEntity<?> getSelf()
      • addObject

        @PostMapping("/{type}")
        public <T extends ObjectType> org.springframework.http.ResponseEntity<?> addObject​(@PathVariable("type")
                                                                                           String type,
                                                                                           @RequestParam(value="options",required=false)
                                                                                           List<String> options,
                                                                                           @RequestBody @NotNull
                                                                                           @NotNull PrismObject<T> object)
      • uriGetObject

        @NotNull
        public @NotNull URI uriGetObject​(@PathVariable("type")
                                         String type,
                                         String oid)
      • searchObjectsByType

        @GetMapping("/{type}")
        public <T extends ObjectType> org.springframework.http.ResponseEntity<?> searchObjectsByType​(@PathVariable("type")
                                                                                                     String type,
                                                                                                     @RequestParam(value="options",required=false)
                                                                                                     List<String> options,
                                                                                                     @RequestParam(value="include",required=false)
                                                                                                     List<String> include,
                                                                                                     @RequestParam(value="exclude",required=false)
                                                                                                     List<String> exclude,
                                                                                                     @RequestParam(value="resolveNames",required=false)
                                                                                                     List<String> resolveNames)
      • addObject

        @PutMapping("/{type}/{id}")
        public <T extends ObjectType> org.springframework.http.ResponseEntity<?> addObject​(@PathVariable("type")
                                                                                           String type,
                                                                                           @PathVariable("id")
                                                                                           String id,
                                                                                           @RequestParam(value="options",required=false)
                                                                                           List<String> options,
                                                                                           @RequestBody @NotNull
                                                                                           @NotNull PrismObject<T> object)
      • deleteObject

        @DeleteMapping("/{type}/{id}")
        public org.springframework.http.ResponseEntity<?> deleteObject​(@PathVariable("type")
                                                                       String type,
                                                                       @PathVariable("id")
                                                                       String id,
                                                                       @RequestParam(value="options",required=false)
                                                                       List<String> options)
      • modifyObjectPost

        @PostMapping("/{type}/{oid}")
        public org.springframework.http.ResponseEntity<?> modifyObjectPost​(@PathVariable("type")
                                                                           String type,
                                                                           @PathVariable("oid")
                                                                           String oid,
                                                                           @RequestParam(value="options",required=false)
                                                                           List<String> options,
                                                                           @RequestBody
                                                                           ObjectModificationType modificationType)
      • modifyObjectPatch

        @PatchMapping("/{type}/{oid}")
        public org.springframework.http.ResponseEntity<?> modifyObjectPatch​(@PathVariable("type")
                                                                            String type,
                                                                            @PathVariable("oid")
                                                                            String oid,
                                                                            @RequestParam(value="options",required=false)
                                                                            List<String> options,
                                                                            @RequestBody
                                                                            ObjectModificationType modificationType)
      • findShadowOwner

        @GetMapping("/shadows/{oid}/owner")
        public org.springframework.http.ResponseEntity<?> findShadowOwner​(@PathVariable("oid")
                                                                          String shadowOid)
      • importShadow

        @PostMapping("/shadows/{oid}/import")
        public org.springframework.http.ResponseEntity<?> importShadow​(@PathVariable("oid")
                                                                       String shadowOid)
      • searchObjects

        @PostMapping("/{type}/search")
        public org.springframework.http.ResponseEntity<?> searchObjects​(@PathVariable("type")
                                                                        String type,
                                                                        @RequestParam(value="options",required=false)
                                                                        List<String> options,
                                                                        @RequestParam(value="include",required=false)
                                                                        List<String> include,
                                                                        @RequestParam(value="exclude",required=false)
                                                                        List<String> exclude,
                                                                        @RequestParam(value="resolveNames",required=false)
                                                                        List<String> resolveNames,
                                                                        @RequestBody
                                                                        QueryType queryType)
      • importFromResource

        @PostMapping("/resources/{resourceOid}/import/{objectClass}")
        public org.springframework.http.ResponseEntity<?> importFromResource​(@PathVariable("resourceOid")
                                                                             String resourceOid,
                                                                             @PathVariable("objectClass")
                                                                             String objectClass)
      • testResource

        @PostMapping("/resources/{resourceOid}/test")
        public org.springframework.http.ResponseEntity<?> testResource​(@PathVariable("resourceOid")
                                                                       String resourceOid)
      • suspendTask

        @PostMapping("/tasks/{oid}/suspend")
        public org.springframework.http.ResponseEntity<?> suspendTask​(@PathVariable("oid")
                                                                      String taskOid)
      • resumeTask

        @PostMapping("/tasks/{oid}/resume")
        public org.springframework.http.ResponseEntity<?> resumeTask​(@PathVariable("oid")
                                                                     String taskOid)
      • scheduleTaskNow

        @PostMapping("tasks/{oid}/run")
        public org.springframework.http.ResponseEntity<?> scheduleTaskNow​(@PathVariable("oid")
                                                                          String taskOid)
      • executeScript

        @PostMapping("/rpc/executeScript")
        public org.springframework.http.ResponseEntity<?> executeScript​(@RequestParam(value="asynchronous",required=false)
                                                                        Boolean asynchronous,
                                                                        @RequestBody
                                                                        ExecuteScriptType command)
      • compare

        @PostMapping("/rpc/compare")
        public <T extends ObjectType> org.springframework.http.ResponseEntity<?> compare​(@RequestParam(value="readOptions",required=false)
                                                                                         List<String> restReadOptions,
                                                                                         @RequestParam(value="compareOptions",required=false)
                                                                                         List<String> restCompareOptions,
                                                                                         @RequestParam(value="ignoreItems",required=false)
                                                                                         List<String> restIgnoreItems,
                                                                                         @RequestBody
                                                                                         PrismObject<T> clientObject)
      • getLogFileSize

        @GetMapping(value="/log/size",
                    produces={"text/plain","*/*"})
        public org.springframework.http.ResponseEntity<?> getLogFileSize()
      • getLog

        @GetMapping(value="/log",
                    produces={"text/plain","*/*"})
        public org.springframework.http.ResponseEntity<?> getLog​(@RequestParam(value="fromPosition",required=false)
                                                                 Long fromPosition,
                                                                 @RequestParam(value="maxSize",required=false)
                                                                 Long maxSize)
      • executeCredentialReset

        @PostMapping("/users/{oid}/credential")
        public org.springframework.http.ResponseEntity<?> executeCredentialReset​(@PathVariable("oid")
                                                                                 String oid,
                                                                                 @RequestBody
                                                                                 ExecuteCredentialResetRequestType executeCredentialResetRequest)
      • getThreadsDump

        @GetMapping(value="/threads",
                    produces={"text/plain","*/*"})
        public org.springframework.http.ResponseEntity<?> getThreadsDump()
      • getRunningTasksThreadsDump

        @GetMapping(value="/tasks/threads",
                    produces={"text/plain","*/*"})
        public org.springframework.http.ResponseEntity<?> getRunningTasksThreadsDump()
      • getTaskThreadsDump

        @GetMapping(value="/tasks/{oid}/threads",
                    produces={"text/plain","*/*"})
        public org.springframework.http.ResponseEntity<?> getTaskThreadsDump​(@PathVariable("oid")
                                                                             String oid)