com.sap.portal.connectivity.destinations

Interface IDestinationWrapper


public interface IDestinationWrapper

Represents a destination wrapper to indicates its source and type. source is the repository of the back-end connection definition instances. e.g. Portal System Landscape or J2EE Destination service. type is the type of the back-end. Types are per portal Connector Framework implementation. Those implementations (Connectors AKA Resource Adapters) are responsible for retrieving a connection to the different back-end types of this service getConnection() API


Method Summary
 Map<String,String> getAdditionalInformation()
          REturns a destination property bag of additional info
 String getName()
          Returns the destination name
 int getSource()
          Returns the destination source as an int (one of the constants defined in this interface)
 int getType()
          Returns the destination type as an int (one of the constants defined in this interface)
 boolean hintAreCredentialsSet(com.sap.security.api.IUser user)
          Hints whether credentials are seems to be set for a destination.
 

Method Detail

getName

String getName()
Returns the destination name

Returns:
destination name

getType

int getType()
Returns the destination type as an int (one of the constants defined in this interface)

Returns:
destination type

getSource

int getSource()
Returns the destination source as an int (one of the constants defined in this interface)

Returns:
destination source

hintAreCredentialsSet

boolean hintAreCredentialsSet(com.sap.security.api.IUser user)
Hints whether credentials are seems to be set for a destination. For example: user-mapping for portal system alias, Username and Password values in J2EE destination etc. If this method returns false it is recommeded to use IDestinationsService.getConnection(IUser,String,DestinationFilter,String,String) and not IDestinationsService#getConnection(IUser,String,DestinationFilter). Note that even if this method returns true, it is not a guarantee that IDestinationsService.getConnection(IUser,String,DestinationFilter) will succeed to get a connection on runtime (e.g. trust to the back-end was not established, bad username/password etc)

Parameters:
user - User to check credentials for (some implementations are user specific)
Returns:
false if credentials are not set, true if credentials seems to be set

getAdditionalInformation

Map<String,String> getAdditionalInformation()
REturns a destination property bag of additional info

Returns:
Map
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