com.sap.portal.services.api.connectorgateway

Interface IConnectorGatewayService

All Known Subinterfaces:
IConnectorGatewayService

public interface IConnectorGatewayService

The interface for the portal connector gateway service. The service enables you to connect to back-end systems via the Portal Connector Framework, using portal system objects
The service provides A connector framework connection - IConnection (an extension of JCA 1.0) - to connect to an Enterprise Information System (EIS) which enables executing a function (interaction). To connect to back-ends defined in other repositories than portal system landscape, see IDestinationsService


Field Summary
static String CONNECTORS_FOLDER
          A constant that defines the connectors JNDI root folder.
static String CONNECTORS_SUB_FOLDER
          A constant that defines the connectors JNDI sub-folder.
static String KEY
          The service key.
static String SERVICE_JNDI_NAME
          A constant that defines the JNDI lookup string for this service.
 
Method Summary
 IConnection getConnection(String systemAlias, ConnectionProperties connectionProperties)
          Gets a connector framework connection for the specified system alias.
 NamingEnumeration getConnectionFactories()
          Gets the names of all deployed connectors.
 IConnectionFactory getConnectionFactory(String facotryName)
          Gets the connector framework connection factory by name.
 IConnectionSpec getConnectionSpec(IConnectionFactory connectionFactory)
          Gets a collection of properties that must be specified to connect to a back-end application.
 Connection getDistributedConnection(String[] systemAliases, ConnectionProperties connectionProperties)
          Gets a JDBC connection for distributed back-ends.
 

Field Detail

KEY

static final String KEY
The service key.

See Also:
Constant Field Values

SERVICE_JNDI_NAME

static final String SERVICE_JNDI_NAME
A constant that defines the JNDI lookup string for this service.

See Also:
Constant Field Values

CONNECTORS_FOLDER

static final String CONNECTORS_FOLDER
A constant that defines the connectors JNDI root folder.

See Also:
Constant Field Values

CONNECTORS_SUB_FOLDER

static final String CONNECTORS_SUB_FOLDER
A constant that defines the connectors JNDI sub-folder.

See Also:
Constant Field Values
Method Detail

getConnection

IConnection getConnection(String systemAlias,
                          ConnectionProperties connectionProperties)
                          throws ConnectorException,
                                 com.sap.security.api.umap.NoLogonDataAvailableException
Gets a connector framework connection for the specified system alias.

Parameters:
systemAlias - the system alias for the back-end application
connectionProperties - a properties object from which user and locale are read
Returns:
a connector framework connection (JCA connection)
Throws:
ConnectorException - if the alias is not valid
com.sap.security.api.umap.NoLogonDataAvailableException - if resolving of the necessary data fails

getDistributedConnection

Connection getDistributedConnection(String[] systemAliases,
                                    ConnectionProperties connectionProperties)
                                    throws SQLException,
                                           ClassNotFoundException,
                                           NamingException,
                                           com.sap.security.api.umap.NoLogonDataAvailableException
Gets a JDBC connection for distributed back-ends.

Parameters:
systemAliases - array of system aliases
connectionProperties - a properties object from which user and locale are read
Returns:
a connection object
Throws:
SQLException - if the SQL connection fails
ClassNotFoundException - if the operation fails
NamingException - if getting the connector's names fails
com.sap.security.api.umap.NoLogonDataAvailableException - if resolving of the necessary data fails

getConnectionFactory

IConnectionFactory getConnectionFactory(String facotryName)
                                        throws com.sap.security.api.umap.NoLogonDataAvailableException
Gets the connector framework connection factory by name.

Parameters:
facotryName - the connector factory name as registered in JNDI
Returns:
a connector factory
Throws:
com.sap.security.api.umap.NoLogonDataAvailableException - if resolving of the necessary data fails

getConnectionSpec

IConnectionSpec getConnectionSpec(IConnectionFactory connectionFactory)
                                  throws ConnectorException
Gets a collection of properties that must be specified to connect to a back-end application.

Parameters:
connectionFactory - an instance of the connection factory
Returns:
a collection of properties
Throws:
ConnectorException - if the system does not exist

getConnectionFactories

NamingEnumeration getConnectionFactories()
                                         throws NamingException
Gets the names of all deployed connectors.

Returns:
an enumeration of deployed connector factory names
Throws:
NamingException - if getting the connector names fails
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-CONNECTIVITY [sap.com] tc/ep/connectivity/api api EP-VC-CON
[sap.com] EP-CONNECTIVITY [sap.com] tc/ep/connectivity/lib/api api EP-VC-CON
[sap.com] EP-CONNECTIVITY [sap.com] tc/pp/smntcs/int/portalservicesapilibdeprecated api EP-VC-CON


Copyright 2015 SAP AG Complete Copyright Notice