@Test public void testStartEnforcementJob() throws IOException, JAXBException { assert (true); }
@PUT @Path("{agreementId}/start") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) public Response startEnforcementJob(@PathParam("agreementId") String agreementId) { logger.debug("StartOf Start /enforcementJobs"); EnforcementJobHelper enforcementJobService = getHelper(); if (enforcementJobService.startEnforcementJob(agreementId)) return buildResponse(202, "The enforcement job with agreement-uuid " + agreementId + "has started"); else return buildResponse( 404, printError(404, "There has not been possible to start the enforcementJob with agreementId : " + agreementId + " in the SLA Repository Database")); }
EnforcementJobRest extends AbstractSLARest { @PUT @Path("{agreementId}/start") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) public Response startEnforcementJob(@PathParam("agreementId") String agreementId) { logger.debug("StartOf Start /enforcementJobs"); EnforcementJobHelper enforcementJobService = getHelper(); if (enforcementJobService.startEnforcementJob(agreementId)) return buildResponse(202, "The enforcement job with agreement-uuid " + agreementId + "has started"); else return buildResponse( 404, printError(404, "There has not been possible to start the enforcementJob with agreementId : " + agreementId + " in the SLA Repository Database")); } }
EnforcementJobRest extends AbstractSLARest { @PUT @Path("{agreementId}/start") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) public Response startEnforcementJob(@PathParam("agreementId") String agreementId) { logger.debug("StartOf Start /enforcementJobs"); EnforcementJobHelper enforcementJobService = getHelper(); if (enforcementJobService.startEnforcementJob(agreementId)) return buildResponse(202, "The enforcement job with agreement-uuid " + agreementId + "has started"); else return buildResponse( 404, printError(404, "There has not been possible to start the enforcementJob with agreementId : " + agreementId + " in the SLA Repository Database")); } EnforcementJobRest(); }
EnforcementJobRest extends AbstractSLARest { @PUT @Path("{agreementId}/start") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) public Response startEnforcementJob(@PathParam("agreementId") String agreementId) { logger.debug("StartOf Start /enforcementJobs"); EnforcementJobHelper enforcementJobService = getHelper(); if (enforcementJobService.startEnforcementJob(agreementId)) return buildResponse(202, "The enforcement job with agreement-uuid " + agreementId + "has started"); else return buildResponse( 404, printError(404, "There has not been possible to start the enforcementJob with agreementId : " + agreementId + " in the SLA Repository Database")); } EnforcementJobRest(); @GET @Produces(MediaType.APPLICATION_XML) Response getEnforcements(); @GET @Path("{agreementId}") @Produces(MediaType.APPLICATION_XML) Response getEnforcementJobByAgreementId(@PathParam("agreementId") String agreementId); @PUT @Path("{agreementId}/start") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response startEnforcementJob(@PathParam("agreementId") String agreementId); @PUT @Path("{agreementId}/stop") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response stopEnforcementJob(
            @PathParam("agreementId") String agreementId); @POST @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response createEnforcementJob(@Context HttpHeaders hh, String payload); }
EnforcementJobRest extends AbstractSLARest { @PUT @Path("{agreementId}/start") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) public Response startEnforcementJob(@PathParam("agreementId") String agreementId) { logger.debug("StartOf Start /enforcementJobs"); EnforcementJobHelper enforcementJobService = getHelper(); if (enforcementJobService.startEnforcementJob(agreementId)) return buildResponse(202, "The enforcement job with agreement-uuid " + agreementId + "has started"); else return buildResponse( 404, printError(404, "There has not been possible to start the enforcementJob with agreementId : " + agreementId + " in the SLA Repository Database")); } EnforcementJobRest(); @GET @Produces(MediaType.APPLICATION_XML) Response getEnforcements(); @GET @Path("{agreementId}") @Produces(MediaType.APPLICATION_XML) Response getEnforcementJobByAgreementId(@PathParam("agreementId") String agreementId); @PUT @Path("{agreementId}/start") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response startEnforcementJob(@PathParam("agreementId") String agreementId); @PUT @Path("{agreementId}/stop") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response stopEnforcementJob(
            @PathParam("agreementId") String agreementId); @POST @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response createEnforcementJob(@Context HttpHeaders hh, String payload);  }