Interface CommandService

  • All Superinterfaces:
    JAXRSService

    @Path("commands")
    public interface CommandService
    extends JAXRSService
    REST operations for 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