public class TradingPartnerDirectoryCommon extends Object
Will load correct Trading Partner directory depending on setting in mysap.properties file. If an entry
UM_USE_SAP_BD
exists, the SAP Business Directory will be used, otherwise the CommerceOne TPD.TradingPartnerDirectoryInterface t =
TradingPartnerDirectoryCommon.getTPD ();
t.getPartners();
make -k COLLECTIONSJAR=//pal100792/c1_integration/collections.jar
SERVLETJAR=//pal100792/c1_integration/servlet.jar
JSPJAR=../../../../../jars/tradingPartnerDirectory/jsp.jar
msb_tpdapi.jar - C1 Marketsite Builder TPD API
ccs_util.jar - C1 ?
COLLECTIONSJAR - Sun JDK 118 collections package
SERVLETJAR - servlet.jar
JSPJAR - jsp.jar
LDAP - ldapjdk.jar
SAX - parser.jar
You need to set properties for the MSB TPD API. It needs to know its database driver (UNA2000_Application.zip) and the connection to the database through properties. The mysap.properties file will be loaded by the factory.
Constructor and Description |
---|
TradingPartnerDirectoryCommon() |
Modifier and Type | Method and Description |
---|---|
static PartnerID |
createPartnerID(String partnerID) |
static TradingPartnerDirectoryInterface |
getTPD()
Factory method to get the currently active TPD.
|
static void |
initialize(Class tpdclass)
Initializes the trading partner.
|
public static void initialize(Class tpdclass) throws InstantiationException, IllegalAccessException
tpdclass
- trading partner classInstantiationException
- if this Class represents an abstract class, an interface, an array class, a primitive type, or void;
or if the class has no nullary constructor; or if the instantiation fails for some other reason.IllegalAccessException
- if the class or its nullary constructor is not accessible.public static PartnerID createPartnerID(String partnerID) throws TpdException
partnerID
- the name of the partnerPartnerID
objectTpdException
- if getTPD() method is not called.TradingPartnerDirectoryInterface.createPartnerID(String)
public static TradingPartnerDirectoryInterface getTPD()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] ENGFACADE
|
[sap.com] tc/je/usermanagement/api
|
api
|
BC-JAS-SEC
|
[sap.com] ENGINEAPI
|
[sap.com]
|
-
|
BC-JAS-SEC-UME
|
Copyright 2018 SAP AG Complete Copyright Notice