Search in sources :

Example 1 with CorrespondenceStatusHistoryRequest

use of no.altinn.services.serviceengine.correspondence._2009._10.CorrespondenceStatusHistoryRequest in project efm-integrasjonspunkt by felleslosninger.

the class CorrespondenceAgencyMessageFactory method createReceiptRequest.

public CorrespondenceStatusHistoryRequest createReceiptRequest(Set<Conversation> conversations) {
    no.altinn.services.serviceengine.correspondence._2009._10.ObjectFactory of = new no.altinn.services.serviceengine.correspondence._2009._10.ObjectFactory();
    CorrespondenceStatusHistoryRequest historyRequest = of.createCorrespondenceStatusHistoryRequest();
    com.microsoft.schemas._2003._10.serialization.arrays.ObjectFactory arrayOf = new com.microsoft.schemas._2003._10.serialization.arrays.ObjectFactory();
    ArrayOfstring arrayOfstring = arrayOf.createArrayOfstring();
    conversations.stream().map(Conversation::getMessageId).forEach(id -> arrayOfstring.getString().add(id));
    JAXBElement<ArrayOfstring> strings = of.createCorrespondenceStatusHistoryRequestCorrespondenceSendersReferences(arrayOfstring);
    historyRequest.setCorrespondenceSendersReferences(strings);
    return historyRequest;
}
Also used : CorrespondenceStatusHistoryRequest(no.altinn.services.serviceengine.correspondence._2009._10.CorrespondenceStatusHistoryRequest) ArrayOfstring(com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfstring) ObjectFactory(no.altinn.schemas.services.serviceengine.correspondence._2010._10.ObjectFactory) no.altinn.schemas.services.serviceengine.notification._2009._10(no.altinn.schemas.services.serviceengine.notification._2009._10)

Aggregations

ArrayOfstring (com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfstring)1 ObjectFactory (no.altinn.schemas.services.serviceengine.correspondence._2010._10.ObjectFactory)1 no.altinn.schemas.services.serviceengine.notification._2009._10 (no.altinn.schemas.services.serviceengine.notification._2009._10)1 CorrespondenceStatusHistoryRequest (no.altinn.services.serviceengine.correspondence._2009._10.CorrespondenceStatusHistoryRequest)1