public class ErpSystem extends Object implements TestSystem<ErpSystem>
Modifier and Type | Class and Description |
---|---|
static class |
ErpSystem.ErpSystemBuilder |
Constructor and Description |
---|
ErpSystem(String alias,
URI uri,
String systemId,
SapClient sapClient)
Constructs a new ERP system without a proxy using
locale
Locale.ENGLISH ,
ERP edition ErpEdition.CLOUD ,
an application server host equal to the host of parameter uri ,
and instance number "00" .
Delegates to
ErpSystem(String, URI, String, SapClient, Locale, ErpEdition, ProxyConfiguration, String, String) . |
ErpSystem(String alias,
URI uri,
String systemId,
SapClient sapClient,
Locale locale,
ErpEdition erpEdition,
ProxyConfiguration proxyConfiguration,
String applicationServer,
String instanceNumber)
Constructs a new ERP system.
|
ErpSystem(String alias,
URI uri,
String systemId,
SapClient sapClient,
ProxyConfiguration proxyConfiguration,
ErpEdition erpEdition)
Constructs a new ERP system using
locale
Locale.ENGLISH ,
an application server host equal to the host of parameter uri ,
and instance number "00" .
Delegates to
ErpSystem(String, URI, String, SapClient, Locale, ErpEdition, ProxyConfiguration, String, String) . |
ErpSystem(URI uri,
String systemId,
SapClient sapClient)
Constructs a new ERP system without a proxy using
the system
alias = systemId + "_" + sapClient
locale Locale.ENGLISH ,
ERP edition ErpEdition.CLOUD ,
an application server host equal to the host of parameter uri ,
and instance number "00" .
Delegates to ErpSystem(String, URI, String, SapClient) . |
Modifier and Type | Method and Description |
---|---|
static ErpSystem.ErpSystemBuilder |
builder()
Creates a new builder without initializing mandatory parameters.
|
static ErpSystem.ErpSystemBuilder |
builder(String alias,
URI uri)
Creates a new builder for the given mandatory parameters.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getAlias() |
String |
getApplicationServer() |
ErpEdition |
getErpEdition() |
String |
getInstanceNumber() |
Locale |
getLocale() |
Optional<ProxyConfiguration> |
getProxyConfiguration() |
SapClient |
getSapClient() |
String |
getSystemId() |
Class<ErpSystem> |
getType() |
URI |
getUri() |
int |
hashCode() |
String |
toString() |
public ErpSystem(URI uri, @Nullable String systemId, @Nullable SapClient sapClient)
alias = systemId + "_" + sapClient
Locale.ENGLISH
,ErpEdition.CLOUD
,uri
,"00"
.ErpSystem(String, URI, String, SapClient)
.uri
- The URI of the ERP.systemId
- The system identifier of the ERP.sapClient
- The SapClient
to be used.public ErpSystem(String alias, URI uri, @Nullable String systemId, @Nullable SapClient sapClient)
Locale.ENGLISH
,ErpEdition.CLOUD
,uri
,"00"
.ErpSystem(String, URI, String, SapClient, Locale, ErpEdition, ProxyConfiguration, String, String)
.alias
- The alias of the ERP.uri
- The URI of the ERP.systemId
- The system identifier of the ERP.sapClient
- The SapClient
to be used.public ErpSystem(String alias, URI uri, @Nullable String systemId, @Nullable SapClient sapClient, @Nullable ProxyConfiguration proxyConfiguration, @Nullable ErpEdition erpEdition)
Locale.ENGLISH
,uri
,"00"
.ErpSystem(String, URI, String, SapClient, Locale, ErpEdition, ProxyConfiguration, String, String)
.alias
- The alias of the ERP.uri
- The URI of the ERP.systemId
- The system identifier of the ERP.sapClient
- The SapClient
to be used.erpEdition
- The ErpEdition
of the ERP. If null
, ErpEdition.CLOUD
is used.proxyConfiguration
- The ProxyConfiguration
to be used as proxy for connecting to the ERP. If null
, no
proxy is required.public ErpSystem(@Nonnull String alias, @Nonnull URI uri, @Nullable String systemId, @Nullable SapClient sapClient, @Nullable Locale locale, @Nullable ErpEdition erpEdition, @Nullable ProxyConfiguration proxyConfiguration, @Nullable String applicationServer, @Nullable String instanceNumber)
alias
- The alias of the ERP.uri
- The URI of the ERP.systemId
- The system identifier of the ERP. If null
, an empty String is used.sapClient
- The SapClient
to be used. If null
, SapClient.DEFAULT
is used.locale
- The Locale
to be used. If null
, Locale.US
is used.erpEdition
- The ErpEdition
of the ERP. If null
, ErpEdition.CLOUD
is used.proxyConfiguration
- The ProxyConfiguration
to be used as proxy for connecting to the ERP. If null
, no
proxy is required.applicationServer
- The application server host of the ERP. If null
, the host of the uri
parameter is
used.instanceNumber
- The instance number of the ERP. If null
, "00"
is used.@Nonnull public Class<ErpSystem> getType()
getType
in interface TestSystem<ErpSystem>
@Nonnull public Optional<ProxyConfiguration> getProxyConfiguration()
getProxyConfiguration
in interface TestSystem<ErpSystem>
public static ErpSystem.ErpSystemBuilder builder()
public static ErpSystem.ErpSystemBuilder builder(String alias, URI uri)
@Nonnull public String getAlias()
getAlias
in interface TestSystem<ErpSystem>
@Nonnull public URI getUri()
getUri
in interface TestSystem<ErpSystem>
@Nonnull public ErpEdition getErpEdition()
protected boolean canEqual(Object other)
Copyright © 2019 SAP SE. All rights reserved.