Class ModelRestService


  • @Service
    @Produces({"application/xml","application/json","application/yaml"})
    public class ModelRestService
    extends Object
    Author:
    katkav, semancik
    • Field Detail

      • CLASS_DOT

        public static final String CLASS_DOT
      • OPERATION_REST_SERVICE

        public static final String OPERATION_REST_SERVICE
      • OPERATION_GET

        public static final String OPERATION_GET
      • OPERATION_SELF

        public static final String OPERATION_SELF
      • OPERATION_ADD_OBJECT

        public static final String OPERATION_ADD_OBJECT
      • OPERATION_DELETE_OBJECT

        public static final String OPERATION_DELETE_OBJECT
      • OPERATION_MODIFY_OBJECT

        public static final String OPERATION_MODIFY_OBJECT
      • OPERATION_NOTIFY_CHANGE

        public static final String OPERATION_NOTIFY_CHANGE
      • OPERATION_FIND_SHADOW_OWNER

        public static final String OPERATION_FIND_SHADOW_OWNER
      • OPERATION_SEARCH_OBJECTS

        public static final String OPERATION_SEARCH_OBJECTS
      • OPERATION_IMPORT_FROM_RESOURCE

        public static final String OPERATION_IMPORT_FROM_RESOURCE
      • OPERATION_IMPORT_SHADOW_FROM_RESOURCE

        public static final String OPERATION_IMPORT_SHADOW_FROM_RESOURCE
      • OPERATION_TEST_RESOURCE

        public static final String OPERATION_TEST_RESOURCE
      • OPERATION_SUSPEND_TASK

        public static final String OPERATION_SUSPEND_TASK
      • OPERATION_SUSPEND_AND_DELETE_TASK

        public static final String OPERATION_SUSPEND_AND_DELETE_TASK
      • OPERATION_RESUME_TASK

        public static final String OPERATION_RESUME_TASK
      • OPERATION_SCHEDULE_TASK_NOW

        public static final String OPERATION_SCHEDULE_TASK_NOW
      • OPERATION_EXECUTE_SCRIPT

        public static final String OPERATION_EXECUTE_SCRIPT
      • OPERATION_COMPARE

        public static final String OPERATION_COMPARE
      • OPERATION_GET_LOG_FILE_CONTENT

        public static final String OPERATION_GET_LOG_FILE_CONTENT
      • OPERATION_GET_LOG_FILE_SIZE

        public static final String OPERATION_GET_LOG_FILE_SIZE
      • OPERATION_VALIDATE_VALUE

        public static final String OPERATION_VALIDATE_VALUE
      • OPERATION_VALIDATE_VALUE_RPC

        public static final String OPERATION_VALIDATE_VALUE_RPC
      • OPERATION_GENERATE_VALUE

        public static final String OPERATION_GENERATE_VALUE
      • OPERATION_GENERATE_VALUE_RPC

        public static final String OPERATION_GENERATE_VALUE_RPC
      • OPERATION_EXECUTE_CREDENTIAL_RESET

        public static final String OPERATION_EXECUTE_CREDENTIAL_RESET
      • OPERATION_EXECUTE_CLUSTER_EVENT

        public static final String OPERATION_EXECUTE_CLUSTER_EVENT
      • OPERATION_GET_LOCAL_SCHEDULER_INFORMATION

        public static final String OPERATION_GET_LOCAL_SCHEDULER_INFORMATION
      • OPERATION_STOP_LOCAL_SCHEDULER

        public static final String OPERATION_STOP_LOCAL_SCHEDULER
      • OPERATION_START_LOCAL_SCHEDULER

        public static final String OPERATION_START_LOCAL_SCHEDULER
      • OPERATION_STOP_LOCAL_TASK

        public static final String OPERATION_STOP_LOCAL_TASK
      • OPERATION_GET_THREADS_DUMP

        public static final String OPERATION_GET_THREADS_DUMP
      • OPERATION_GET_RUNNING_TASKS_THREADS_DUMP

        public static final String OPERATION_GET_RUNNING_TASKS_THREADS_DUMP
      • OPERATION_GET_TASK_THREADS_DUMP

        public static final String OPERATION_GET_TASK_THREADS_DUMP
    • Constructor Detail

      • ModelRestService

        public ModelRestService()
    • Method Detail

      • generateValue

        @POST
        @Path("/{type}/{oid}/generate")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response generateValue​(@PathParam("type")
                                                       String type,
                                                       @PathParam("oid")
                                                       String oid,
                                                       PolicyItemsDefinitionType policyItemsDefinition,
                                                       @Context
                                                       org.apache.cxf.jaxrs.ext.MessageContext mc)
      • generateValue

        @POST
        @Path("/rpc/generate")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response generateValue​(PolicyItemsDefinitionType policyItemsDefinition,
                                                       @Context
                                                       org.apache.cxf.jaxrs.ext.MessageContext mc)
      • validateValue

        @POST
        @Path("/{type}/{oid}/validate")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response validateValue​(@PathParam("type")
                                                       String type,
                                                       @PathParam("oid")
                                                       String oid,
                                                       PolicyItemsDefinitionType policyItemsDefinition,
                                                       @Context
                                                       org.apache.cxf.jaxrs.ext.MessageContext mc)
      • validateValue

        @POST
        @Path("/rpc/validate")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response validateValue​(PolicyItemsDefinitionType policyItemsDefinition,
                                                       @Context
                                                       org.apache.cxf.jaxrs.ext.MessageContext mc)
      • getValuePolicyForUser

        @GET
        @Path("/users/{id}/policy")
        public javax.ws.rs.core.Response getValuePolicyForUser​(@PathParam("id")
                                                               String oid,
                                                               @Context
                                                               org.apache.cxf.jaxrs.ext.MessageContext mc)
      • getObject

        @GET
        @Path("/{type}/{id}")
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response getObject​(@PathParam("type")
                                                   String type,
                                                   @PathParam("id")
                                                   String id,
                                                   @QueryParam("options")
                                                   List<String> options,
                                                   @QueryParam("include")
                                                   List<String> include,
                                                   @QueryParam("exclude")
                                                   List<String> exclude,
                                                   @QueryParam("resolveNames")
                                                   List<String> resolveNames,
                                                   @Context
                                                   org.apache.cxf.jaxrs.ext.MessageContext mc)
      • getSelf

        @GET
        @Path("/self")
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response getSelf​(@Context
                                                 org.apache.cxf.jaxrs.ext.MessageContext mc)
      • addObject

        @POST
        @Path("/{type}")
        @Consumes({"application/xml","application/json","application/yaml"})
        public <T extends ObjectType> javax.ws.rs.core.Response addObject​(@PathParam("type")
                                                                          String type,
                                                                          PrismObject<T> object,
                                                                          @QueryParam("options")
                                                                          List<String> options,
                                                                          @Context
                                                                          javax.ws.rs.core.UriInfo uriInfo,
                                                                          @Context
                                                                          org.apache.cxf.jaxrs.ext.MessageContext mc)
      • searchObjectsByType

        @GET
        @Path("/{type}")
        @Produces({"application/xml","application/json","application/yaml"})
        public <T extends ObjectType> javax.ws.rs.core.Response searchObjectsByType​(@PathParam("type")
                                                                                    String type,
                                                                                    @QueryParam("options")
                                                                                    List<String> options,
                                                                                    @QueryParam("include")
                                                                                    List<String> include,
                                                                                    @QueryParam("exclude")
                                                                                    List<String> exclude,
                                                                                    @QueryParam("resolveNames")
                                                                                    List<String> resolveNames,
                                                                                    @Context
                                                                                    javax.ws.rs.core.UriInfo uriInfo,
                                                                                    @Context
                                                                                    org.apache.cxf.jaxrs.ext.MessageContext mc)
      • addObject

        @PUT
        @Path("/{type}/{id}")
        @Consumes({"application/xml","application/json","application/yaml"})
        public <T extends ObjectType> javax.ws.rs.core.Response addObject​(@PathParam("type")
                                                                          String type,
                                                                          @PathParam("id")
                                                                          String id,
                                                                          PrismObject<T> object,
                                                                          @QueryParam("options")
                                                                          List<String> options,
                                                                          @Context
                                                                          javax.ws.rs.core.UriInfo uriInfo,
                                                                          @Context
                                                                          javax.ws.rs.core.Request request,
                                                                          @Context
                                                                          org.apache.cxf.jaxrs.ext.MessageContext mc)
      • deleteObject

        @DELETE
        @Path("/{type}/{id}")
        public javax.ws.rs.core.Response deleteObject​(@PathParam("type")
                                                      String type,
                                                      @PathParam("id")
                                                      String id,
                                                      @QueryParam("options")
                                                      List<String> options,
                                                      @Context
                                                      org.apache.cxf.jaxrs.ext.MessageContext mc)
      • modifyObjectPost

        @POST
        @Path("/{type}/{oid}")
        @Consumes({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response modifyObjectPost​(@PathParam("type")
                                                          String type,
                                                          @PathParam("oid")
                                                          String oid,
                                                          ObjectModificationType modificationType,
                                                          @QueryParam("options")
                                                          List<String> options,
                                                          @Context
                                                          org.apache.cxf.jaxrs.ext.MessageContext mc)
      • modifyObjectPatch

        @Path("/{type}/{oid}")
        @Consumes({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response modifyObjectPatch​(@PathParam("type")
                                                           String type,
                                                           @PathParam("oid")
                                                           String oid,
                                                           ObjectModificationType modificationType,
                                                           @QueryParam("options")
                                                           List<String> options,
                                                           @Context
                                                           org.apache.cxf.jaxrs.ext.MessageContext mc)
      • notifyChange

        @POST
        @Path("/notifyChange")
        @Consumes({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response notifyChange​(ResourceObjectShadowChangeDescriptionType changeDescription,
                                                      @Context
                                                      javax.ws.rs.core.UriInfo uriInfo,
                                                      @Context
                                                      org.apache.cxf.jaxrs.ext.MessageContext mc)
      • findShadowOwner

        @GET
        @Path("/shadows/{oid}/owner")
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response findShadowOwner​(@PathParam("oid")
                                                         String shadowOid,
                                                         @Context
                                                         org.apache.cxf.jaxrs.ext.MessageContext mc)
      • importShadow

        @POST
        @Path("/shadows/{oid}/import")
        @Consumes({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response importShadow​(@PathParam("oid")
                                                      String shadowOid,
                                                      @Context
                                                      org.apache.cxf.jaxrs.ext.MessageContext mc,
                                                      @Context
                                                      javax.ws.rs.core.UriInfo uriInfo)
      • searchObjects

        @POST
        @Path("/{type}/search")
        @Produces({"application/xml","application/json","application/yaml"})
        @Consumes({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response searchObjects​(@PathParam("type")
                                                       String type,
                                                       QueryType queryType,
                                                       @QueryParam("options")
                                                       List<String> options,
                                                       @QueryParam("include")
                                                       List<String> include,
                                                       @QueryParam("exclude")
                                                       List<String> exclude,
                                                       @QueryParam("resolveNames")
                                                       List<String> resolveNames,
                                                       @Context
                                                       org.apache.cxf.jaxrs.ext.MessageContext mc)
      • importFromResource

        @POST
        @Path("/resources/{resourceOid}/import/{objectClass}")
        @Consumes({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response importFromResource​(@PathParam("resourceOid")
                                                            String resourceOid,
                                                            @PathParam("objectClass")
                                                            String objectClass,
                                                            @Context
                                                            org.apache.cxf.jaxrs.ext.MessageContext mc,
                                                            @Context
                                                            javax.ws.rs.core.UriInfo uriInfo)
      • testResource

        @POST
        @Path("/resources/{resourceOid}/test")
        public javax.ws.rs.core.Response testResource​(@PathParam("resourceOid")
                                                      String resourceOid,
                                                      @Context
                                                      org.apache.cxf.jaxrs.ext.MessageContext mc)
      • suspendTask

        @POST
        @Path("/tasks/{oid}/suspend")
        public javax.ws.rs.core.Response suspendTask​(@PathParam("oid")
                                                     String taskOid,
                                                     @Context
                                                     org.apache.cxf.jaxrs.ext.MessageContext mc)
      • resumeTask

        @POST
        @Path("/tasks/{oid}/resume")
        public javax.ws.rs.core.Response resumeTask​(@PathParam("oid")
                                                    String taskOid,
                                                    @Context
                                                    org.apache.cxf.jaxrs.ext.MessageContext mc)
      • scheduleTaskNow

        @POST
        @Path("tasks/{oid}/run")
        public javax.ws.rs.core.Response scheduleTaskNow​(@PathParam("oid")
                                                         String taskOid,
                                                         @Context
                                                         org.apache.cxf.jaxrs.ext.MessageContext mc)
      • executeScript

        @POST
        @Path("/rpc/executeScript")
        @Consumes({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response executeScript​(ExecuteScriptType command,
                                                       @QueryParam("asynchronous")
                                                       Boolean asynchronous,
                                                       @Context
                                                       javax.ws.rs.core.UriInfo uriInfo,
                                                       @Context
                                                       org.apache.cxf.jaxrs.ext.MessageContext mc)
      • compare

        @POST
        @Path("/rpc/compare")
        @Consumes("application/xml")
        public <T extends ObjectType> javax.ws.rs.core.Response compare​(PrismObject<T> clientObject,
                                                                        @QueryParam("readOptions")
                                                                        List<String> restReadOptions,
                                                                        @QueryParam("compareOptions")
                                                                        List<String> restCompareOptions,
                                                                        @QueryParam("ignoreItems")
                                                                        List<String> restIgnoreItems,
                                                                        @Context
                                                                        org.apache.cxf.jaxrs.ext.MessageContext mc)
      • getLogFileSize

        @GET
        @Path("/log/size")
        @Produces("text/plain")
        public javax.ws.rs.core.Response getLogFileSize​(@Context
                                                        org.apache.cxf.jaxrs.ext.MessageContext mc)
      • getLog

        @GET
        @Path("/log")
        @Produces("text/plain")
        public javax.ws.rs.core.Response getLog​(@QueryParam("fromPosition")
                                                Long fromPosition,
                                                @QueryParam("maxSize")
                                                Long maxSize,
                                                @Context
                                                org.apache.cxf.jaxrs.ext.MessageContext mc)
      • executeCredentialReset

        @POST
        @Path("/users/{oid}/credential")
        @Consumes({"application/xml","application/json","application/yaml"})
        @Produces({"application/xml","application/json","application/yaml"})
        public javax.ws.rs.core.Response executeCredentialReset​(@PathParam("oid")
                                                                String oid,
                                                                ExecuteCredentialResetRequestType executeCredentialResetRequest,
                                                                @Context
                                                                org.apache.cxf.jaxrs.ext.MessageContext mc)
      • getThreadsDump

        @GET
        @Path("/threads")
        @Produces("text/plain")
        public javax.ws.rs.core.Response getThreadsDump​(@Context
                                                        org.apache.cxf.jaxrs.ext.MessageContext mc)
      • getRunningTasksThreadsDump

        @GET
        @Path("/tasks/threads")
        @Produces("text/plain")
        public javax.ws.rs.core.Response getRunningTasksThreadsDump​(@Context
                                                                    org.apache.cxf.jaxrs.ext.MessageContext mc)
      • getTaskThreadsDump

        @GET
        @Path("/tasks/{oid}/threads")
        @Produces("text/plain")
        public javax.ws.rs.core.Response getTaskThreadsDump​(@PathParam("oid")
                                                            String oid,
                                                            @Context
                                                            org.apache.cxf.jaxrs.ext.MessageContext mc)