@Test public void testDeleteAgreement() { assert (true); }
@DELETE @Path("{agreementId}") @Produces(MediaType.APPLICATION_XML) public Response deleteAgreement(@PathParam("agreementId") String agreementId){ logger.debug("DELETE /agreements/" + agreementId); AgreementHelper agreementRestService = getAgreementHelper(); boolean deleted = agreementRestService.deleteByAgreementId(agreementId); if (deleted) return buildResponse( 204, printMessage(204, "The agreement with id:" + agreementId + " was deleted successfully")); else return buildResponse( 404, printError(404, "There is no agreement with id " + agreementId + " in the SLA Repository Database")); }
AgreementRest extends AbstractSLARest { @DELETE @Path("{agreementId}") @Produces(MediaType.APPLICATION_XML) public Response deleteAgreement(@PathParam("agreementId") String agreementId){ logger.debug("DELETE /agreements/" + agreementId); AgreementHelper agreementRestService = getAgreementHelper(); boolean deleted = agreementRestService.deleteByAgreementId(agreementId); if (deleted) return buildResponse( 204, printMessage(204, "The agreement with id:" + agreementId + " was deleted successfully")); else return buildResponse( 404, printError(404, "There is no agreement with id " + agreementId + " in the SLA Repository Database")); } }
AgreementRest extends AbstractSLARest { @DELETE @Path("{agreementId}") @Produces(MediaType.APPLICATION_XML) public Response deleteAgreement(@PathParam("agreementId") String agreementId){ logger.debug("DELETE /agreements/" + agreementId); AgreementHelper agreementRestService = getAgreementHelper(); boolean deleted = agreementRestService.deleteByAgreementId(agreementId); if (deleted) return buildResponse( 204, printMessage(204, "The agreement with id:" + agreementId + " was deleted successfully")); else return buildResponse( 404, printError(404, "There is no agreement with id " + agreementId + " in the SLA Repository Database")); } AgreementRest(); }
AgreementRest extends AbstractSLARest { @DELETE @Path("{agreementId}") @Produces(MediaType.APPLICATION_XML) public Response deleteAgreement(@PathParam("agreementId") String agreementId){ logger.debug("DELETE /agreements/" + agreementId); AgreementHelper agreementRestService = getAgreementHelper(); boolean deleted = agreementRestService.deleteByAgreementId(agreementId); if (deleted) return buildResponse( 204, printMessage(204, "The agreement with id:" + agreementId + " was deleted successfully")); else return buildResponse( 404, printError(404, "There is no agreement with id " + agreementId + " in the SLA Repository Database")); } AgreementRest(); @GET @Produces(MediaType.APPLICATION_XML) Response getAgreements(
            @QueryParam("consumerId") String consumerId,
            @QueryParam("providerId") String providerId,
            @QueryParam("active") BooleanParam active); @GET @Path("{id}") @Produces(MediaType.APPLICATION_XML) Response getAgreementById(@PathParam("id") String agreement_id); @POST @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response createAgreement(@Context HttpHeaders hh,@Context UriInfo uriInfo,  String payload); @GET @Path("active") @Produces(MediaType.APPLICATION_XML) Response getActiveAgreements(); @DELETE @Path("{agreementId}") @Produces(MediaType.APPLICATION_XML) Response deleteAgreement(@PathParam("agreementId") String agreementId); @GET @Path("{id}/guaranteestatus") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response getStatusAgreementXML(@PathParam("id") String agreement_id); @GET @Path("{id}/guaranteestatus") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response getStatusAgreementJson(@PathParam("id") String agreement_id); }
AgreementRest extends AbstractSLARest { @DELETE @Path("{agreementId}") @Produces(MediaType.APPLICATION_XML) public Response deleteAgreement(@PathParam("agreementId") String agreementId){ logger.debug("DELETE /agreements/" + agreementId); AgreementHelper agreementRestService = getAgreementHelper(); boolean deleted = agreementRestService.deleteByAgreementId(agreementId); if (deleted) return buildResponse( 204, printMessage(204, "The agreement with id:" + agreementId + " was deleted successfully")); else return buildResponse( 404, printError(404, "There is no agreement with id " + agreementId + " in the SLA Repository Database")); } AgreementRest(); @GET @Produces(MediaType.APPLICATION_XML) Response getAgreements(
            @QueryParam("consumerId") String consumerId,
            @QueryParam("providerId") String providerId,
            @QueryParam("active") BooleanParam active); @GET @Path("{id}") @Produces(MediaType.APPLICATION_XML) Response getAgreementById(@PathParam("id") String agreement_id); @POST @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response createAgreement(@Context HttpHeaders hh,@Context UriInfo uriInfo,  String payload); @GET @Path("active") @Produces(MediaType.APPLICATION_XML) Response getActiveAgreements(); @DELETE @Path("{agreementId}") @Produces(MediaType.APPLICATION_XML) Response deleteAgreement(@PathParam("agreementId") String agreementId); @GET @Path("{id}/guaranteestatus") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response getStatusAgreementXML(@PathParam("id") String agreement_id); @GET @Path("{id}/guaranteestatus") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) Response getStatusAgreementJson(@PathParam("id") String agreement_id);  }