Advertisement
Guest User

Untitled

a guest
Jul 4th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 1.46 KB | None | 0 0
  1. @POST
  2. @Path("solicitudDerechoRectificacion")
  3. @Consumes(MediaType.APPLICATION_JSON)
  4. public GDPR58ReplyBeanOut solicitudDerechoRectificacion(@Context HttpServletRequest request,
  5.         GDPR58RequestBeanOut gdpr58Request) throws WebApplicationException {
  6.     try {
  7.  
  8.         GDPR58ReplyBeanOut response = new GDPR58ReplyBeanOut();
  9.  
  10.         if (gdpr58Request.getDatosRectificar() != null) {
  11.             data.put(ConsGDPR.DATOSRECTIFICAR, String.valueOf(gdpr58Request.getDatosRectificar()));
  12.  
  13.         } else {
  14.             data.put(ConsGDPR.DATOSRECTIFICAR, "");
  15.         }
  16.        
  17.         Class<GDPR58Reply>[] types = new Class[1];
  18.  
  19.         Map<String, String> data = new HashMap();
  20.         for (int i = 0; i <  gdpr58Request.getListDragAndDrop().size(); i++)
  21.        
  22.         {
  23.             data.put(ConsGDPR.getDocumentNumber(i), listaDocumentos.get(i).getTicketDocLOE());                    
  24.            
  25.         }
  26.  
  27.         GDPR58Reply gdpr58Reply = (GDPR58Reply) CanalXMLClient.call("GDPR-58", data, types,
  28.                 getCanalXMLContext(request));
  29.         refreshCanalXMLContext(request, gdpr58Reply);
  30.  
  31.         if (gdpr58Reply.getBean().getDatosPeticionRefVal() != null)
  32.             response.setDatosPeticionRefVal(gdpr58Reply.getBean().getDatosPeticionRefVal());
  33.  
  34.         if (gdpr58Reply.getBean().getResultado() != null)
  35.             response.setResultado(gdpr58Reply.getBean().getResultado());
  36.  
  37.         if (gdpr58Reply.getBean().getIdSolicitud() != null)
  38.             response.setIdSolicitud(gdpr58Reply.getBean().getIdSolicitud());
  39.  
  40.         return response;
  41.  
  42.     } catch (Exception e) {
  43.         throw buildWebApplicationException(e);
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement