Interface ISMPServiceMetadataProvider

All Known Subinterfaces:
ISMPExtendedServiceMetadataProvider
All Known Implementing Classes:
SMPClient, SMPClientReadOnly

public interface ISMPServiceMetadataProvider
Abstract interface to retrieve a Peppol Service Metadata instance.
Since:
7.0.6
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    com.helger.xsds.peppol.smp1.SignedServiceMetadataType
    getServiceMetadata(com.helger.peppolid.IParticipantIdentifier aServiceGroupID, com.helger.peppolid.IDocumentTypeIdentifier aDocumentTypeID)
    Gets a signed service metadata object given by its service group id and its document type.
    This is a specification compliant method.
    com.helger.xsds.peppol.smp1.SignedServiceMetadataType
    getServiceMetadataOrNull(com.helger.peppolid.IParticipantIdentifier aServiceGroupID, com.helger.peppolid.IDocumentTypeIdentifier aDocumentTypeID)
    Gets a signed service metadata object given by its service group id and its document type.
    This is a specification compliant method.
  • Method Details

    • getServiceMetadata

      @Nonnull com.helger.xsds.peppol.smp1.SignedServiceMetadataType getServiceMetadata(@Nonnull com.helger.peppolid.IParticipantIdentifier aServiceGroupID, @Nonnull com.helger.peppolid.IDocumentTypeIdentifier aDocumentTypeID) throws SMPClientException
      Gets a signed service metadata object given by its service group id and its document type.
      This is a specification compliant method.
      Parameters:
      aServiceGroupID - The service group id of the service metadata to get. May not be null.
      aDocumentTypeID - The document type of the service metadata to get. May not be null.
      Returns:
      A signed service metadata object. Never null.
      Throws:
      SMPClientException - in case something goes wrong
      Since:
      9.5.1 in this interface
      See Also:
    • getServiceMetadataOrNull

      @Nullable com.helger.xsds.peppol.smp1.SignedServiceMetadataType getServiceMetadataOrNull(@Nonnull com.helger.peppolid.IParticipantIdentifier aServiceGroupID, @Nonnull com.helger.peppolid.IDocumentTypeIdentifier aDocumentTypeID) throws SMPClientException
      Gets a signed service metadata object given by its service group id and its document type.
      This is a specification compliant method.
      Parameters:
      aServiceGroupID - The ID of the service group to query. May not be null.
      aDocumentTypeID - The document type of the service metadata to retrieve. May not be null.
      Returns:
      A service metadata object or null if no such registration is present.
      Throws:
      SMPClientException - in case something goes wrong
      See Also: