All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.peppol.statistics.RawStatisticsGenerator Maven / Gradle / Ivy

Go to download

Holds the stuff required by external components, which may be hooked into Oxalis. Classes and resources in this module should be made available to oxalis-inbound by placing it into a shared library in the web container.

There is a newer version: 4.1.2
Show newest version
package eu.peppol.statistics;

import eu.peppol.identifier.AccessPointIdentifier;
import eu.peppol.identifier.ParticipantId;
import eu.peppol.identifier.PeppolDocumentTypeIdAcronym;
import eu.peppol.identifier.PeppolProcessTypeIdAcronym;
import eu.peppol.start.identifier.*;

/**
 * User: steinar
 * Date: 08.02.13
 * Time: 16:37
 */
public class RawStatisticsGenerator {

    public static RawStatistics sample() {
        RawStatistics rawStatistics = new RawStatistics.RawStatisticsBuilder().accessPointIdentifier(new AccessPointIdentifier("AP001"))
                .outbound()
            .sender(new ParticipantId("9908:810017902"))
            .receiver(new ParticipantId("9908:810017902"))
            .channel(new ChannelId("CH01"))
            .documentType(PeppolDocumentTypeIdAcronym.INVOICE.getDocumentTypeIdentifier())
            .profile(PeppolProcessTypeIdAcronym.INVOICE_ONLY.getPeppolProcessTypeId())
            .build();
        return rawStatistics;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy