Interface CommandService
-
- All Superinterfaces:
JAXRSService
@Path("commands") public interface CommandService extends JAXRSServiceREST operations for commands.
-
-
Field Summary
-
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.syncope.common.lib.command.CommandTOread(String key)Returns the command for the given key, if found.org.apache.syncope.common.lib.command.CommandOutputrun(org.apache.syncope.common.lib.command.CommandTO command)Runs the given command with the given arguments and returns the resulting output.org.apache.syncope.common.lib.to.PagedResult<org.apache.syncope.common.lib.command.CommandTO>search(CommandQuery query)Returns a paged list of all commands.
-
-
-
Method Detail
-
search
@GET @Produces({"application/json","application/yaml","application/xml"}) org.apache.syncope.common.lib.to.PagedResult<org.apache.syncope.common.lib.command.CommandTO> search(@BeanParam CommandQuery query)Returns a paged list of all commands.- Parameters:
query- query conditions- Returns:
- list of all commands.
-
read
@GET @Path("{key}") @Produces({"application/json","application/yaml","application/xml"}) org.apache.syncope.common.lib.command.CommandTO read(@PathParam("key") String key)Returns the command for the given key, if found.- Parameters:
key- command key- Returns:
- the command for the given key, if found
-
run
@POST @Path("{key}") @Consumes({"application/json","application/yaml","application/xml"}) @Produces({"application/json","application/yaml","application/xml"}) org.apache.syncope.common.lib.command.CommandOutput run(org.apache.syncope.common.lib.command.CommandTO command)Runs the given command with the given arguments and returns the resulting output.- Parameters:
command- command to run, with arguments- Returns:
- command output
-
-