Examples of InsertCorrespondenceV2


Examples of no.altinn.schemas.services.serviceengine.correspondence._2010._10.InsertCorrespondenceV2

    this.settings = settings;
  }

  public int send(CorrespondenceMessage msg, String notificationEmail) {
    ICorrespondenceAgencyExternalBasic port = createClientPort();
    InsertCorrespondenceV2 request = createRequest(msg, notificationEmail);
    request.setContent(createContent(msg));
    return submitRequest(port, request, msg);
  }
View Full Code Here

Examples of no.altinn.schemas.services.serviceengine.correspondence._2010._10.InsertCorrespondenceV2

    MessageNotification messageNotification = new MessageNotification(settings, notificationEmail);
    return messageNotification.getNotifications();
  }

  private InsertCorrespondenceV2 createRequest(CorrespondenceMessage msg, String notificationEmail) {
    InsertCorrespondenceV2 insertCorrespondence = new InsertCorrespondenceV2();
    insertCorrespondence.setServiceCode(settings.getServiceCode());
    insertCorrespondence.setServiceEdition(settings.getServiceEdition());
    insertCorrespondence.setAllowForwarding(false);
    insertCorrespondence.setReportee(msg.getOrgNr());
    insertCorrespondence.setVisibleDateTime(XMLDatatypeUtil.toXMLGregorianCalendar(Calendar.getInstance()));
    insertCorrespondence.setNotifications(createMessageNotification(notificationEmail));
    return insertCorrespondence;
  }
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.