eu.peppol.statistics.RawStatisticsGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oxalis-api Show documentation
Show all versions of oxalis-api Show documentation
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.
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;
}
}