Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @POST
- @Path("solicitudDerechoRectificacion")
- @Consumes(MediaType.APPLICATION_JSON)
- public GDPR58ReplyBeanOut solicitudDerechoRectificacion(@Context HttpServletRequest request,
- GDPR58RequestBeanOut gdpr58Request) throws WebApplicationException {
- try {
- GDPR58ReplyBeanOut response = new GDPR58ReplyBeanOut();
- if (gdpr58Request.getDatosRectificar() != null) {
- data.put(ConsGDPR.DATOSRECTIFICAR, String.valueOf(gdpr58Request.getDatosRectificar()));
- } else {
- data.put(ConsGDPR.DATOSRECTIFICAR, "");
- }
- Class<GDPR58Reply>[] types = new Class[1];
- Map<String, String> data = new HashMap();
- for (int i = 0; i < gdpr58Request.getListDragAndDrop().size(); i++)
- {
- data.put(ConsGDPR.getDocumentNumber(i), listaDocumentos.get(i).getTicketDocLOE());
- }
- GDPR58Reply gdpr58Reply = (GDPR58Reply) CanalXMLClient.call("GDPR-58", data, types,
- getCanalXMLContext(request));
- refreshCanalXMLContext(request, gdpr58Reply);
- if (gdpr58Reply.getBean().getDatosPeticionRefVal() != null)
- response.setDatosPeticionRefVal(gdpr58Reply.getBean().getDatosPeticionRefVal());
- if (gdpr58Reply.getBean().getResultado() != null)
- response.setResultado(gdpr58Reply.getBean().getResultado());
- if (gdpr58Reply.getBean().getIdSolicitud() != null)
- response.setIdSolicitud(gdpr58Reply.getBean().getIdSolicitud());
- return response;
- } catch (Exception e) {
- throw buildWebApplicationException(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement