Search in sources :

Example 1 with NotificationWebServiceConfigurationBuilder

use of org.opensmartgridplatform.cucumber.platform.common.glue.steps.database.ws.NotificationWebServiceConfigurationBuilder in project open-smart-grid-platform by OSGP.

the class Database method notificationEndpointConfigurations.

private List<NotificationWebServiceConfiguration> notificationEndpointConfigurations() {
    final NotificationWebServiceConfigurationBuilder builder = new NotificationWebServiceConfigurationBuilder().withApplicationName(this.notificationApplicationName).withMarshallerContextPath(this.notificationMarshallerContextPath).withTargetUri(this.notificationTargetUri).withoutCircuitBreakerConfig();
    final NotificationWebServiceConfiguration testOrgConfig = builder.withOrganisationIdentification("test-org").build();
    final NotificationWebServiceConfiguration noOrganisationConfig = builder.withOrganisationIdentification("no-organisation").build();
    return Arrays.asList(testOrgConfig, noOrganisationConfig);
}
Also used : NotificationWebServiceConfiguration(org.opensmartgridplatform.adapter.ws.domain.entities.NotificationWebServiceConfiguration) NotificationWebServiceConfigurationBuilder(org.opensmartgridplatform.cucumber.platform.common.glue.steps.database.ws.NotificationWebServiceConfigurationBuilder)

Example 2 with NotificationWebServiceConfigurationBuilder

use of org.opensmartgridplatform.cucumber.platform.common.glue.steps.database.ws.NotificationWebServiceConfigurationBuilder in project open-smart-grid-platform by OSGP.

the class WsNotificationDatabase method notificationEndpointConfigurations.

private List<NotificationWebServiceConfiguration> notificationEndpointConfigurations() {
    final NotificationWebServiceConfigurationBuilder builder = new NotificationWebServiceConfigurationBuilder().withApplicationName(this.applicationName).withMarshallerContextPath(this.marshallerContextPath).withTargetUri(this.targetUri).withoutCircuitBreakerConfig();
    if (!this.useKeyStore) {
        builder.withoutKeyStoreConfig().withoutTrustStoreConfig();
    }
    final NotificationWebServiceConfiguration testOrgConfig = builder.build();
    final NotificationWebServiceConfiguration noOrganisationConfig = builder.withOrganisationIdentification("no-organisation").build();
    return Arrays.asList(testOrgConfig, noOrganisationConfig);
}
Also used : NotificationWebServiceConfiguration(org.opensmartgridplatform.adapter.ws.domain.entities.NotificationWebServiceConfiguration) NotificationWebServiceConfigurationBuilder(org.opensmartgridplatform.cucumber.platform.common.glue.steps.database.ws.NotificationWebServiceConfigurationBuilder)

Example 3 with NotificationWebServiceConfigurationBuilder

use of org.opensmartgridplatform.cucumber.platform.common.glue.steps.database.ws.NotificationWebServiceConfigurationBuilder in project open-smart-grid-platform by OSGP.

the class Database method notificationEndpointConfigurations.

private List<NotificationWebServiceConfiguration> notificationEndpointConfigurations() {
    final NotificationWebServiceConfigurationBuilder builder = new NotificationWebServiceConfigurationBuilder().withApplicationName(this.notificationApplicationName).withMarshallerContextPath(this.notificationMarshallerContextPath).withTargetUri(this.notificationTargetUri).withoutCircuitBreakerConfig().withoutKeyStoreConfig().withoutTrustStoreConfig();
    final NotificationWebServiceConfiguration testOrgConfig = builder.withOrganisationIdentification("test-org").build();
    final NotificationWebServiceConfiguration noOrganisationConfig = builder.withOrganisationIdentification("no-organisation").build();
    return Arrays.asList(testOrgConfig, noOrganisationConfig);
}
Also used : NotificationWebServiceConfiguration(org.opensmartgridplatform.adapter.ws.domain.entities.NotificationWebServiceConfiguration) NotificationWebServiceConfigurationBuilder(org.opensmartgridplatform.cucumber.platform.common.glue.steps.database.ws.NotificationWebServiceConfigurationBuilder)

Example 4 with NotificationWebServiceConfigurationBuilder

use of org.opensmartgridplatform.cucumber.platform.common.glue.steps.database.ws.NotificationWebServiceConfigurationBuilder in project open-smart-grid-platform by OSGP.

the class Database method notificationEndpointConfigurations.

private List<NotificationWebServiceConfiguration> notificationEndpointConfigurations() {
    final NotificationWebServiceConfigurationBuilder builder = new NotificationWebServiceConfigurationBuilder().withApplicationName(this.notificationApplicationName).withMarshallerContextPath(this.notificationMarshallerContextPath).withTargetUri(this.notificationTargetUri);
    final NotificationWebServiceConfiguration osgpOrganizationConfig = builder.withOrganisationIdentification("OSGP").build();
    return Arrays.asList(osgpOrganizationConfig);
}
Also used : NotificationWebServiceConfiguration(org.opensmartgridplatform.adapter.ws.domain.entities.NotificationWebServiceConfiguration) NotificationWebServiceConfigurationBuilder(org.opensmartgridplatform.cucumber.platform.common.glue.steps.database.ws.NotificationWebServiceConfigurationBuilder)

Aggregations

NotificationWebServiceConfiguration (org.opensmartgridplatform.adapter.ws.domain.entities.NotificationWebServiceConfiguration)4 NotificationWebServiceConfigurationBuilder (org.opensmartgridplatform.cucumber.platform.common.glue.steps.database.ws.NotificationWebServiceConfigurationBuilder)4