Package es.ua.dccia.negocio

Examples of es.ua.dccia.negocio.PeticionBO.firmarPeticion()


    public Response firmarPeticion(@PathParam("id") long idPeticion, FirmaTO firmaTO, @Context SecurityContext sc, @Context UriInfo uriInfo) {
        String autentificado = null;
        if (sc.getUserPrincipal()!=null)
            autentificado = sc.getUserPrincipal().getName();
        PeticionBO peticionBO = new PeticionBO();
        long idFirma = peticionBO.firmarPeticion(idPeticion, firmaTO, autentificado);
        URI uri = uriInfo.getAbsolutePathBuilder().path("{idFirma}").build(idFirma);   
        return Response.created(uri).build();
    }
   
    @Path("{idPeticion}/firmas/{idFirma}")
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.