@Service @Produces(value={"application/xml","application/json"}) public class ModelRestService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_DOT |
static String |
OPERATION_ADD_OBJECT |
static String |
OPERATION_COMPARE |
static String |
OPERATION_DELETE_OBJECT |
static String |
OPERATION_EXECUTE_SCRIPT |
static String |
OPERATION_FIND_SHADOW_OWNER |
static String |
OPERATION_GET |
static String |
OPERATION_GET_LOG_FILE_CONTENT |
static String |
OPERATION_GET_LOG_FILE_SIZE |
static String |
OPERATION_IMPORT_FROM_RESOURCE |
static String |
OPERATION_MODIFY_OBJECT |
static String |
OPERATION_NOTIFY_CHANGE |
static String |
OPERATION_REST_SERVICE |
static String |
OPERATION_RESUME_TASKS |
static String |
OPERATION_SCHEDULE_TASKS_NOW |
static String |
OPERATION_SEARCH_OBJECTS |
static String |
OPERATION_SUSPEND_AND_DELETE_TASKS |
static String |
OPERATION_SUSPEND_TASKS |
static String |
OPERATION_TEST_RESOURCE |
static long |
WAIT_FOR_TASK_STOP |
Constructor and Description |
---|
ModelRestService() |
Modifier and Type | Method and Description |
---|---|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addObject(String type,
PrismObject<T> object,
List<String> options,
javax.ws.rs.core.UriInfo uriInfo,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addObject(String type,
String id,
PrismObject<T> object,
List<String> options,
javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
compare(PrismObject<T> clientObject,
List<String> restReadOptions,
List<String> restCompareOptions,
List<String> restIgnoreItems,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
deleteObject(String type,
String id,
List<String> options,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
executeScript(com.evolveum.midpoint.xml.ns._public.model.scripting_3.ScriptingExpressionType scriptingExpression,
Boolean asynchronous,
javax.ws.rs.core.UriInfo uriInfo,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
findShadowOwner(String shadowOid,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
getLog(Long fromPosition,
Long maxSize,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
getLogFileSize(org.apache.cxf.jaxrs.ext.MessageContext mc) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getObject(String type,
String id,
List<String> options,
List<String> include,
List<String> exclude,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
getValuePolicyForUser(String oid,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
importFromResource(String resourceOid,
String objectClass,
org.apache.cxf.jaxrs.ext.MessageContext mc,
javax.ws.rs.core.UriInfo uriInfo) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
modifyObjectPatch(String type,
String oid,
com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectModificationType modificationType,
List<String> options,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
modifyObjectPost(String type,
String oid,
com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectModificationType modificationType,
List<String> options,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
notifyChange(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectShadowChangeDescriptionType changeDescription,
javax.ws.rs.core.UriInfo uriInfo,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
resumeTasks(String taskOid,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
scheduleTasksNow(String taskOid,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
searchObjects(String type,
QueryType queryType,
List<String> options,
List<String> include,
List<String> exclude,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
suspendAndDeleteTasks(String taskOid,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
suspendTasks(String taskOid,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
javax.ws.rs.core.Response |
testResource(String resourceOid,
org.apache.cxf.jaxrs.ext.MessageContext mc) |
public static final String CLASS_DOT
public static final String OPERATION_REST_SERVICE
public static final String OPERATION_GET
public static final String OPERATION_ADD_OBJECT
public static final String OPERATION_DELETE_OBJECT
public static final String OPERATION_MODIFY_OBJECT
public static final String OPERATION_NOTIFY_CHANGE
public static final String OPERATION_FIND_SHADOW_OWNER
public static final String OPERATION_SEARCH_OBJECTS
public static final String OPERATION_IMPORT_FROM_RESOURCE
public static final String OPERATION_TEST_RESOURCE
public static final String OPERATION_SUSPEND_TASKS
public static final String OPERATION_SUSPEND_AND_DELETE_TASKS
public static final String OPERATION_RESUME_TASKS
public static final String OPERATION_SCHEDULE_TASKS_NOW
public static final String OPERATION_EXECUTE_SCRIPT
public static final String OPERATION_COMPARE
public static final String OPERATION_GET_LOG_FILE_CONTENT
public static final String OPERATION_GET_LOG_FILE_SIZE
public static final long WAIT_FOR_TASK_STOP
@GET @Path(value="/users/{id}/policy") public javax.ws.rs.core.Response getValuePolicyForUser(@PathParam(value="id") String oid, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@GET @Path(value="/{type}/{id}") public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> javax.ws.rs.core.Response getObject(@PathParam(value="type") String type, @PathParam(value="id") String id, @QueryParam(value="options") List<String> options, @QueryParam(value="include") List<String> include, @QueryParam(value="exclude") List<String> exclude, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@POST @Path(value="/{type}") @Consumes(value={"application/xml","application/json"}) public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> javax.ws.rs.core.Response addObject(@PathParam(value="type") String type, PrismObject<T> object, @QueryParam(value="options") List<String> options, @Context javax.ws.rs.core.UriInfo uriInfo, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@PUT @Path(value="/{type}/{id}") public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> javax.ws.rs.core.Response addObject(@PathParam(value="type") String type, @PathParam(value="id") String id, PrismObject<T> object, @QueryParam(value="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)
@DELETE @Path(value="/{type}/{id}") public javax.ws.rs.core.Response deleteObject(@PathParam(value="type") String type, @PathParam(value="id") String id, @QueryParam(value="options") List<String> options, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@POST @Path(value="/{type}/{oid}") public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> javax.ws.rs.core.Response modifyObjectPost(@PathParam(value="type") String type, @PathParam(value="oid") String oid, com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectModificationType modificationType, @QueryParam(value="options") List<String> options, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@Path(value="/{type}/{oid}") public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> javax.ws.rs.core.Response modifyObjectPatch(@PathParam(value="type") String type, @PathParam(value="oid") String oid, com.evolveum.midpoint.xml.ns._public.common.api_types_3.ObjectModificationType modificationType, @QueryParam(value="options") List<String> options, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@POST @Path(value="/notifyChange") public javax.ws.rs.core.Response notifyChange(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectShadowChangeDescriptionType changeDescription, @Context javax.ws.rs.core.UriInfo uriInfo, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@GET @Path(value="/shadows/{oid}/owner") public javax.ws.rs.core.Response findShadowOwner(@PathParam(value="oid") String shadowOid, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@POST @Path(value="/{type}/search") public javax.ws.rs.core.Response searchObjects(@PathParam(value="type") String type, QueryType queryType, @QueryParam(value="options") List<String> options, @QueryParam(value="include") List<String> include, @QueryParam(value="exclude") List<String> exclude, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@POST @Path(value="/resources/{resourceOid}/import/{objectClass}") public javax.ws.rs.core.Response importFromResource(@PathParam(value="resourceOid") String resourceOid, @PathParam(value="objectClass") String objectClass, @Context org.apache.cxf.jaxrs.ext.MessageContext mc, @Context javax.ws.rs.core.UriInfo uriInfo)
@POST @Path(value="/resources/{resourceOid}/test") public javax.ws.rs.core.Response testResource(@PathParam(value="resourceOid") String resourceOid, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@POST @Path(value="/tasks/{oid}/suspend") public javax.ws.rs.core.Response suspendTasks(@PathParam(value="oid") String taskOid, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
public javax.ws.rs.core.Response suspendAndDeleteTasks(@PathParam(value="oid") String taskOid, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@POST @Path(value="/tasks/{oid}/resume") public javax.ws.rs.core.Response resumeTasks(@PathParam(value="oid") String taskOid, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@POST @Path(value="tasks/{oid}/run") public javax.ws.rs.core.Response scheduleTasksNow(@PathParam(value="oid") String taskOid, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@POST @Path(value="/rpc/executeScript") @Consumes(value="application/xml") public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> javax.ws.rs.core.Response executeScript(com.evolveum.midpoint.xml.ns._public.model.scripting_3.ScriptingExpressionType scriptingExpression, @QueryParam(value="asynchronous") Boolean asynchronous, @Context javax.ws.rs.core.UriInfo uriInfo, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@POST @Path(value="/rpc/compare") @Consumes(value="application/xml") public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> javax.ws.rs.core.Response compare(PrismObject<T> clientObject, @QueryParam(value="readOptions") List<String> restReadOptions, @QueryParam(value="compareOptions") List<String> restCompareOptions, @QueryParam(value="ignoreItems") List<String> restIgnoreItems, @Context org.apache.cxf.jaxrs.ext.MessageContext mc)
@GET @Path(value="/log/size") @Produces(value="text/plain") public javax.ws.rs.core.Response getLogFileSize(@Context org.apache.cxf.jaxrs.ext.MessageContext mc)
Copyright © 2016 evolveum. All rights reserved.