Class SysConfigPayloadParser

  • All Implemented Interfaces:
    PayloadParser

    public class SysConfigPayloadParser
    extends BasePayloadParser
    Payload Parser for generating SysConfig messages according to sysconfig_schema2_0.xsd
    • Field Detail

      • NAMESPACE

        public static java.lang.String NAMESPACE
    • Constructor Detail

      • SysConfigPayloadParser

        public SysConfigPayloadParser()
    • Method Detail

      • getJAXBPackage

        public java.lang.String getJAXBPackage()
        Description copied from interface: PayloadParser
        Method that returns the JAXBPackage Name for the package name containing the JAXB classes. For multiple package names use a ':' without spaces.
        See Also:
        PayloadParser.getJAXBPackage()
      • getNameSpace

        public java.lang.String getNameSpace()
        Returns:
        the related pay load elements unique name space.
        See Also:
        PayloadParser.getNameSpace()
      • generateGetActiveConfigurationRequest

        public byte[] generateGetActiveConfigurationRequest​(java.lang.String requestId,
                                                            java.lang.String destinationId,
                                                            java.lang.String organisation,
                                                            java.lang.String application,
                                                            Credential originator,
                                                            java.util.List<java.lang.Object> assertions)
                                                     throws MessageContentException,
                                                            MessageProcessingException
        Method generate a Get Active Configuration Request.
        Parameters:
        requestId - id of request to send.
        destinationId - the destination Id to use.
        organisation - the related organisation (short name)
        application - the application name to fetch configuration for.
        originator - the credential of the original requester, null if this is the origin of the request.
        assertions - a list of related authorization assertions, or null if no authorization assertions is available.
        Returns:
        a generated and signed (if configured) message.
        Throws:
        MessageContentException - if input data contained invalid format.
        MessageProcessingException - if internal problems occurred processing the cs message.
      • generateGetActiveConfigurationResponse

        public CSMessageResponseData generateGetActiveConfigurationResponse​(java.lang.String relatedEndEntity,
                                                                            CSMessage request,
                                                                            SystemConfiguration systemConfiguration,
                                                                            java.util.List<java.lang.Object> assertions)
                                                                     throws MessageContentException,
                                                                            MessageProcessingException
        Method generate a Get Active Configuration Response.
        Parameters:
        relatedEndEntity - the name of the related end entity (such as username of the related user)
        request - the related request
        systemConfiguration - the current active system configuration.
        assertions - a list of related authorization assertions, or null if no authorization assertions is available.
        Returns:
        a generated and signed (if configured) message.
        Throws:
        MessageContentException - if input data contained invalid format.
        MessageProcessingException - if internal problems occurred processing the cs message.
      • generatePublishConfigurationRequest

        public byte[] generatePublishConfigurationRequest​(java.lang.String requestId,
                                                          java.lang.String destinationId,
                                                          java.lang.String organisation,
                                                          SystemConfiguration systemConfiguration,
                                                          Credential originator,
                                                          java.util.List<java.lang.Object> assertions)
                                                   throws MessageContentException,
                                                          MessageProcessingException
        Method generate a Publish Configuration Request
        Parameters:
        requestId - id of request to send.
        destinationId - the destination Id to use.
        organisation - the related organisation (short name)
        systemConfiguration - system configuration to publish to send.
        originator - the credential of the original requester, null if this is the origin of the request.
        assertions - a list of related authorization assertions, or null if no authorization assertions is available.
        Returns:
        a generated and signed (if configured) message.
        Throws:
        MessageContentException - if input data contained invalid format.
        MessageProcessingException - if internal problems occurred processing the cs message.
      • generatePublishConfigurationResponse

        public CSMessageResponseData generatePublishConfigurationResponse​(java.lang.String relatedEndEntity,
                                                                          CSMessage request,
                                                                          java.util.List<java.lang.Object> assertions)
                                                                   throws MessageContentException,
                                                                          MessageProcessingException
        Method generate a Publish Configuration Response
        Parameters:
        relatedEndEntity - the name of the related end entity (such as username of the related user)
        request - the related request
        assertions - a list of related authorization assertions, or null if no authorization assertions is available.
        Returns:
        as success response back to the requestor.
        Throws:
        MessageContentException
        MessageProcessingException