public class

CMISCloudConnectorConnectionManager

extends Object
implements MuleContextAware Initialisable Testable Capabilities MetadataAware ConnectionManager<K, C extends Connection> ProcessAdapter<O>
java.lang.Object
   ↳ org.mule.module.cmis.connectivity.CMISCloudConnectorConnectionManager

Class Overview

A CMISCloudConnectorConnectionManager is a wrapper around CMISCloudConnector that adds connection management capabilities to the pojo.

Summary

Constants
String DEVKIT_BUILD
String DEVKIT_VERSION
String MODULE_NAME
String MODULE_VERSION
[Expand]
Inherited Constants
From interface org.mule.api.lifecycle.Initialisable
Fields
private String baseUrl
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
private String connectionTimeout
private String cxfPortProvider
private String endpoint
protected FlowConstruct flowConstruct Flow Construct
protected MuleContext muleContext Mule Context
private String password
private String repositoryId
protected RetryPolicyTemplate retryPolicyTemplate
private String useAlfrescoExtension
private String username
Public Constructors
CMISCloudConnectorConnectionManager()
Public Methods
CMISCloudConnectorConnectionIdentifierAdapter acquireConnection(CMISCloudConnectorConnectionKey key)
DefaultResult buildFailureTestResult(Exception exception)
void destroyConnection(CMISCloudConnectorConnectionKey key, CMISCloudConnectorConnectionIdentifierAdapter connection)
String getBaseUrl()
Retrieves baseUrl
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
String getConnectionTimeout()
Retrieves connectionTimeout
String getCxfPortProvider()
Retrieves cxfPortProvider
CMISCloudConnectorConnectionKey getDefaultConnectionKey()
Retrieve the default connection key
String getDevkitBuild()
Returns the build of the DevKit used to create this module
String getDevkitVersion()
Returns the version of the DevKit used to create this module
String getEndpoint()
Retrieves endpoint
FlowConstruct getFlowConstruct()
Retrieves flowConstruct
String getModuleName()
Returns the user-friendly name of this module
String getModuleVersion()
Returns the version of this module
MuleContext getMuleContext()
Retrieves muleContext
String getPassword()
Retrieves password
<P> ProcessTemplate<P, CMISCloudConnectorConnectionIdentifierAdapter> getProcessTemplate()
String getRepositoryId()
Retrieves repositoryId
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
String getUseAlfrescoExtension()
Retrieves useAlfrescoExtension
String getUsername()
Retrieves username
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(CMISCloudConnectorConnectionKey key, CMISCloudConnectorConnectionIdentifierAdapter connection)
void setBaseUrl(String value)
Sets baseUrl
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setConnectionTimeout(String value)
Sets connectionTimeout
void setCxfPortProvider(String value)
Sets cxfPortProvider
void setEndpoint(String value)
Sets endpoint
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setMuleContext(MuleContext value)
Sets muleContext
void setPassword(String value)
Sets password
void setRepositoryId(String value)
Sets repositoryId
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setUseAlfrescoExtension(String value)
Sets useAlfrescoExtension
void setUsername(String value)
Sets username
TestResult test()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.common.Testable
From interface org.mule.module.cmis.basic.Capabilities
From interface org.mule.module.cmis.basic.MetadataAware
From interface org.mule.module.cmis.connection.ConnectionManager
From interface org.mule.module.cmis.process.ProcessAdapter

Constants

private static final String DEVKIT_BUILD

Constant Value: "3.4.0.1555.8df15c1"

private static final String DEVKIT_VERSION

Constant Value: "3.4.0"

private static final String MODULE_NAME

Constant Value: "CMIS"

private static final String MODULE_VERSION

Constant Value: "1.13"

Fields

private String baseUrl

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

private String connectionTimeout

private String cxfPortProvider

private String endpoint

protected FlowConstruct flowConstruct

Flow Construct

protected MuleContext muleContext

Mule Context

private String password

private String repositoryId

protected RetryPolicyTemplate retryPolicyTemplate

private String useAlfrescoExtension

private String username

Public Constructors

public CMISCloudConnectorConnectionManager ()

Public Methods

public CMISCloudConnectorConnectionIdentifierAdapter acquireConnection (CMISCloudConnectorConnectionKey key)

Parameters
key
Throws
Exception

public DefaultResult buildFailureTestResult (Exception exception)

Parameters
exception

public void destroyConnection (CMISCloudConnectorConnectionKey key, CMISCloudConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public String getBaseUrl ()

Retrieves baseUrl

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

Returns
  • PoolingProfile representing the pooling parameters

public String getConnectionTimeout ()

Retrieves connectionTimeout

public String getCxfPortProvider ()

Retrieves cxfPortProvider

public CMISCloudConnectorConnectionKey getDefaultConnectionKey ()

Retrieve the default connection key

Returns
  • The default connection key

public String getDevkitBuild ()

Returns the build of the DevKit used to create this module

public String getDevkitVersion ()

Returns the version of the DevKit used to create this module

public String getEndpoint ()

Retrieves endpoint

public FlowConstruct getFlowConstruct ()

Retrieves flowConstruct

public String getModuleName ()

Returns the user-friendly name of this module

public String getModuleVersion ()

Returns the version of this module

public MuleContext getMuleContext ()

Retrieves muleContext

public String getPassword ()

Retrieves password

public String getRepositoryId ()

Retrieves repositoryId

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

Returns
  • The reconnection strategy

public String getUseAlfrescoExtension ()

Retrieves useAlfrescoExtension

public String getUsername ()

Retrieves username

public void initialise ()

public boolean isCapableOf (Capability capability)

Returns true if this module implements such capability

Parameters
capability The capability to test for
Returns
  • True if it does, false otherwise

public void releaseConnection (CMISCloudConnectorConnectionKey key, CMISCloudConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setBaseUrl (String value)

Sets baseUrl

Parameters
value Value to set

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setConnectionTimeout (String value)

Sets connectionTimeout

Parameters
value Value to set

public void setCxfPortProvider (String value)

Sets cxfPortProvider

Parameters
value Value to set

public void setEndpoint (String value)

Sets endpoint

Parameters
value Value to set

public void setFlowConstruct (FlowConstruct value)

Sets flowConstruct

Parameters
value Value to set

public void setMuleContext (MuleContext value)

Sets muleContext

Parameters
value Value to set

public void setPassword (String value)

Sets password

Parameters
value Value to set

public void setRepositoryId (String value)

Sets repositoryId

Parameters
value Value to set

public void setRetryPolicyTemplate (RetryPolicyTemplate value)

Sets retryPolicyTemplate

Parameters
value Value to set

public void setUseAlfrescoExtension (String value)

Sets useAlfrescoExtension

Parameters
value Value to set

public void setUsername (String value)

Sets username

Parameters
value Value to set

public TestResult test ()