@PUT @Path("compile") @Consumes(MediaType.APPLICATION_JSON) public JsonObject compileCustomTask(JsonObject jsonCode) { accessControl(Group.managers()); return getClassBean(jsonCode).compile(); }
@PUT @Consumes(MediaType.APPLICATION_JSON) public Response addCustomTask(JsonObject jsonCode) { accessControl(Group.managers()); getClassBean(jsonCode).run(); return ok(); }