Class PeppolStandardBusinessHeader


  • public class PeppolStandardBusinessHeader
    extends Object
    Our representation of the SBDH (Standard Business Document Header), which makes us independent of the StandardBusinessDocumentHeader generated by JAXB. Furthermore the UN/CEFACT SBDH is kind of awkward to use as some of the elements of interest to us, are split into several fields.
    Author:
    steinar, thore
    • Constructor Detail

      • PeppolStandardBusinessHeader

        public PeppolStandardBusinessHeader()
        Empty constructor, no defaults - all must be supplied by user
      • PeppolStandardBusinessHeader

        public PeppolStandardBusinessHeader​(network.oxalis.vefa.peppol.common.model.Header header)
      • PeppolStandardBusinessHeader

        public PeppolStandardBusinessHeader​(PeppolStandardBusinessHeader peppolStandardBusinessHeader)
        Copy constructor
    • Method Detail

      • createPeppolStandardBusinessHeaderWithNewDate

        public static PeppolStandardBusinessHeader createPeppolStandardBusinessHeaderWithNewDate()
        Set the time to current and makes a random TransmissionIdentifier as default
      • isComplete

        public boolean isComplete()
        Do we have enough transport details to send the message?
        Returns:
        true if transport details are complete.
      • listMissingProperties

        public List<String> listMissingProperties()
        Returns a list of property names that are still missing.
        Returns:
        empty list if headers are complete
      • setRecipientId

        public void setRecipientId​(network.oxalis.vefa.peppol.common.model.ParticipantIdentifier recipientId)
      • getRecipientId

        public network.oxalis.vefa.peppol.common.model.ParticipantIdentifier getRecipientId()
      • setSenderId

        public void setSenderId​(network.oxalis.vefa.peppol.common.model.ParticipantIdentifier senderId)
      • getSenderId

        public network.oxalis.vefa.peppol.common.model.ParticipantIdentifier getSenderId()
      • setInstanceId

        public void setInstanceId​(InstanceId instanceId)
      • getInstanceId

        public InstanceId getInstanceId()
      • setCreationDateAndTime

        public void setCreationDateAndTime​(Date creationDateAndTime)
      • getCreationDateAndTime

        public Date getCreationDateAndTime()
      • setDocumentTypeIdentifier

        public void setDocumentTypeIdentifier​(network.oxalis.vefa.peppol.common.model.DocumentTypeIdentifier documentTypeIdentifier)
      • getDocumentTypeIdentifier

        public network.oxalis.vefa.peppol.common.model.DocumentTypeIdentifier getDocumentTypeIdentifier()
      • setProfileTypeIdentifier

        public void setProfileTypeIdentifier​(network.oxalis.vefa.peppol.common.model.ProcessIdentifier processIdentifier)
      • getProfileTypeIdentifier

        public network.oxalis.vefa.peppol.common.model.ProcessIdentifier getProfileTypeIdentifier()
      • getC1CountryIdentifier

        public network.oxalis.vefa.peppol.common.model.C1CountryIdentifier getC1CountryIdentifier()
      • setC1CountryIdentifier

        public void setC1CountryIdentifier​(network.oxalis.vefa.peppol.common.model.C1CountryIdentifier c1CountryIdentifier)
      • getMlsToIdentifier

        public network.oxalis.vefa.peppol.common.model.MlsToIdentifier getMlsToIdentifier()
      • setMlsToIdentifier

        public void setMlsToIdentifier​(network.oxalis.vefa.peppol.common.model.MlsToIdentifier mlsToIdentifier)
      • getMlsTypeIdentifier

        public network.oxalis.vefa.peppol.common.model.MlsTypeIdentifier getMlsTypeIdentifier()
      • setMlsTypeIdentifier

        public void setMlsTypeIdentifier​(network.oxalis.vefa.peppol.common.model.MlsTypeIdentifier mlsTypeIdentifier)
      • toVefa

        public network.oxalis.vefa.peppol.common.model.Header toVefa()