Class CommunicationEngineTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.communication.CommunicationEngineTemplate

public class CommunicationEngineTemplate extends AbstractReportingTemplate
This class may be used to quickly initialize a model.
Since:
9.0
Author:
Jon van Leuven, Arjan Pragt
  • Constructor Details

    • CommunicationEngineTemplate

      public CommunicationEngineTemplate(com.aquima.interactions.foundation.report.IInitializationReport report)
    • CommunicationEngineTemplate

      public CommunicationEngineTemplate()
  • Method Details

    • addDefaultSoapService

      public SoapServiceTemplate addDefaultSoapService(String serviceName)
      Use this method to add a soapservice.
      Parameters:
      serviceName - The name of the soapservice.
      Returns:
      Returns the created template.
    • addDefaultSoapService

      public SoapServiceTemplate addDefaultSoapService(String serviceName, String targetNamespace)
      Use this method to add a soapservice.
      Parameters:
      serviceName - The name of the soapservice.
      Returns:
      Returns the created template.
    • addDefaultSoapService

      public SoapServiceTemplate addDefaultSoapService(String serviceName, String targetNamespace, String schemaSet)
    • addRestService

      public RestServiceTemplate addRestService(String serviceName)
      Adds a Rest service with no schemaset to the engine (using schemasets).
      Parameters:
      serviceName - The name of the rest service
      Returns:
      Returns the created template
    • addRestService

      public RestServiceTemplate addRestService(String serviceName, String schemaSet)
      Adds a Rest service to the engine (using schemasets).
      Parameters:
      serviceName - The name of the service
      schemaSet - The name of the schemaset
      Returns:
      Returns the created template
    • addDomainSchemaRestService

      public RestServiceTemplate addDomainSchemaRestService(String serviceName)
      Adds a Rest service to the engine (using domain schemas).
      Parameters:
      serviceName - The name of the service
      Returns:
      Returns the created template
    • addSoapService

      public SoapServiceTemplate addSoapService(String serviceName, String schemaSet)
    • addSchemaSet

      public SchemaSetTemplate addSchemaSet(String schemaSetName)
    • getSoapContract

      public SoapContractTemplate getSoapContract(String name)
    • addSoapContract

      public SoapContractTemplate addSoapContract(String name)
    • addSoapContract

      public SoapContractTemplate addSoapContract(String name, String schemaContractName)
    • addDomainSchema

      public DomainSchemaTemplate addDomainSchema(String name, String rootEntity)
      Adds a data contract to the engine.
      Parameters:
      name - The name of the data contract, not null.
      rootEntity - The singleton entity name, not null.
      Returns:
      The template to modify the contract.
    • addDomainSchema

      public DomainSchemaTemplate addDomainSchema(String name, String rootEntity, String rootName)
      Adds a data contract to the engine.
      Parameters:
      name - The name of the data contract, not null.
      rootEntity - The singleton entity name, not null. *
      rootName - The optional name of the root object, may be null.
      Returns:
      The template to modify the contract.
    • addDomainSchema

      public DomainSchemaTemplate addDomainSchema(String name, String rootEntity, String rootName, Boolean isRootEntityHidden)
      Adds a data contract to the engine.
      Parameters:
      name - The name of the data contract, not null.
      rootEntity - The singleton entity name, not null.
      rootName - The optional name of the root object, may be null.
      isRootEntityHidden - The boolean indicating if the root entity should be hidden
      Returns:
      The template to modify the contract.
    • getSchemaContract

      public SchemaContractTemplate getSchemaContract(String name)
    • addSchemaContract

      public SchemaContractTemplate addSchemaContract(String name)
    • toDataSource

      public com.aquima.interactions.communication.ds.ICommunicationEngineDS toDataSource()
      This method converts the template to a data source that can be used to initialize a model.
      Returns:
      a data source that can be used to initialize a model.
    • getSoapServices

      protected Iterator<SoapServiceTemplate> getSoapServices()
    • getSchemaSets

      protected Iterator<SchemaSetTemplate> getSchemaSets()
    • getRestServices

      protected Iterator<RestServiceTemplate> getRestServices()
    • getSoapContracts

      protected Iterator<SoapContractTemplate> getSoapContracts()
    • getXmlContracts

      protected Iterator<SchemaContractTemplate> getXmlContracts()
    • getDomainSchemas

      protected Iterator<DomainSchemaTemplate> getDomainSchemas()