public abstract class BaseConfig extends Object implements DynamicsGPConfig
Constructor and Description |
---|
BaseConfig(String conversionConfigFilePath,
ConnectionExceptionFactory connectionExceptionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
connect(String username,
String password)
Connect to Dynamics GP.
|
abstract DynamicsGPClient |
createClient(String username,
String password) |
void |
disconnect() |
DynamicsGPClient |
getClient() |
String |
getConnectionIdentifier() |
String |
getConversionConfigFilePath() |
String |
getEndpoint() |
Boolean |
getLazyConfiguration() |
TimeZone |
getTimeZone() |
void |
setEndpoint(String endpoint) |
void |
testConnect(String username,
String password) |
boolean |
validateConnection() |
public BaseConfig(String conversionConfigFilePath, ConnectionExceptionFactory connectionExceptionFactory)
@Connect(strategy=SINGLE_INSTANCE) public void connect(@ConnectionKey String username, @Password String password) throws org.mule.api.ConnectionException
username
- The username that identifies the user.password
- The password of the user.org.mule.api.ConnectionException
- Thrown if an error occurs while connecting to Dynamics GP.@TestConnectivity public void testConnect(@ConnectionKey String username, @Password String password) throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
@Disconnect public void disconnect()
@ConnectionIdentifier public String getConnectionIdentifier()
@ValidateConnection public boolean validateConnection()
public abstract DynamicsGPClient createClient(String username, String password) throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
public TimeZone getTimeZone()
getTimeZone
in interface DynamicsGPConfig
public Boolean getLazyConfiguration()
getLazyConfiguration
in interface DynamicsGPConfig
public String getEndpoint()
getEndpoint
in interface DynamicsGPConfig
public String getConversionConfigFilePath()
getConversionConfigFilePath
in interface DynamicsGPConfig
public DynamicsGPClient getClient()
public void setEndpoint(String endpoint)
Copyright © 2010–2016. All rights reserved.