public class NormalizationManager extends Object
NormalizationManager
allows the CPA cache service users (adapter implementations) to normalize and
denormalize between the XI internal Party
and Service
notation and external formats
(e.g. DUNS, DDID, etc.) for these identifiers, as they may be used by non XI messaging formats/protocols. The
Party/Service normalization/denormalization is required, since the Inbound/Outbound runtime lookup can only be
performed using the XI internal notation of Parties and Services, as configured for the Bindings (sender and receiver
agreements) in the Integration Directory (or PCK UI).Party
,
PartyIdentifier
,
Service
,
ServiceIdentifier
Modifier and Type | Method and Description |
---|---|
static void |
destroy()
Destroys the singleton instance.
|
PartyIdentifier |
getAlternativePartyIdentifier(String targetPartyAgency,
String targetPartySchema,
String xiParty)
Retrieves a specific alternative Party identifier for a given Agency, Schema and XI Party identifier, if available.
|
LinkedList<PartyIdentifier> |
getAlternativePartyIdentifiers(String xiPartyId)
Retrieves the list of all available external alternative
PartyIdentifier objects for a given XI
Party identifier. |
ServiceIdentifier |
getAlternativeServiceIdentifier(String targetSchema,
String xiParty,
String xiService)
Retrieves a specific alternative Service identifier for a given Service Schema and XI Service/Party identifiers, if
available.
|
LinkedList<ServiceIdentifier> |
getAlternativeServiceIdentifiers(String xiPartyId,
String xiServiceId)
Retrieves the list of all available external alternative
ServiceIdentifier objects for given XI
Service identifiers. |
static NormalizationManager |
getInstance()
The static getInstance() method (singleton pattern).
|
Party |
getXIParty(String partyAgency,
String partySchema,
String partyIdentifier)
Retrieves an XI
Party object, based on some given alternative party agency and schema (like e.g. |
Service |
getXIService(String serviceSchema,
String serviceIdentifier)
This method can only be used, if the external alternative identifiers are unique in respect to the XI internal
Party and Service combinations (mapping 2-level addressing information to 1-level
addressing). |
Service |
getXIService(String xiParty,
String serviceSchema,
String serviceIdentifier)
Retrieves an XI
Service object, based on some given alternative service schema and service
identifier for a given XI Party identifier. |
LinkedList<Service> |
getXIServices(String serviceSchema,
String serviceIdentifier)
This method returns all
Service objects with the same serviceSchema and serviceIdentifier. |
public static NormalizationManager getInstance()
public static void destroy()
public Party getXIParty(String partyAgency, String partySchema, String partyIdentifier) throws CPAException
Party
object, based on some given alternative party agency and schema (like e.g.
DUNS) and party identifier.partyAgency
- The agency for which the XI Party object is to be retrieved.partySchema
- The schema for which the XI Party object is to be retrieved.partyIdentifier
- The party identifier for which the XI Party object is to be retrieved.Party
object or null
if no matching XI Party can be found.CPAException
- In case no suitable object was found in the cpa cachepublic Service getXIService(String serviceSchema, String serviceIdentifier) throws CPAException
Party
and Service
combinations (mapping 2-level addressing information to 1-level
addressing). This is e.g. the case for DDIDs, where a Document Destination ID uniquely matches exactly one
Party/Service combination. Otherwise use the getXIService method which also takes the XI Party as an argument. In
this case the external alternative Party identifier first needs to be normalized to the XI internal notation,
before calling into this method.serviceSchema
- The schema for which the XI Service object is to be retrieved. Use the predefined service
schema constants as defined in ServiceIdentifier
or in NormalizationManager
.
Currently only DDIDs are supported.serviceIdentifier
- The service identifier for which the XI Service object is to be retrieved.Service
object or null
if no matching XI Service can be found.CPAException
- In case no suitable object was found in the cpa cachepublic LinkedList<Service> getXIServices(String serviceSchema, String serviceIdentifier) throws CPAException
Service
objects with the same serviceSchema and serviceIdentifier.
This includes both party and partyless services.serviceSchema
- The schema for which the XI Service object is to be retrieved. Use the predefined service
schema constants as defined in ServiceIdentifier
or in NormalizationManager
.serviceIdentifier
- The service identifier for which the XI Service object is to be retrieved.Service
objects or null
if no matching XI Service can be found.CPAException
- In case no suitable object was found in the cpa cachepublic Service getXIService(String xiParty, String serviceSchema, String serviceIdentifier) throws CPAException
Service
object, based on some given alternative service schema and service
identifier for a given XI Party
identifier. This lookup requires that the XI Party name is either
knows from the message header and may have been normalized before.xiParty
- The XI Party identifier for which the XI Service object is to be retrieved.serviceSchema
- The schema for which the XI Service object is to be retrieved. Use the predefined service
schema constants as defined in ServiceIdentifier
or in NormalizationManager
or use own service schemas.serviceIdentifier
- The service identifier for which the XI Service object is to be retrieved.Service
object or null
if no matching XI Service can be found.CPAException
- In case no suitable object was found in the cpa cachepublic LinkedList<PartyIdentifier> getAlternativePartyIdentifiers(String xiPartyId) throws CPAException
PartyIdentifier
objects for a given XI
Party identifier.xiPartyId
- The XI party identifier for which the alternative identifiers are to be retrieved.PartyIdentifier
objects or an empty LinkedList, if no matching objects
can be found.CPAException
- In case no suitable object was found in the cpa cachepublic LinkedList<ServiceIdentifier> getAlternativeServiceIdentifiers(String xiPartyId, String xiServiceId) throws CPAException
ServiceIdentifier
objects for given XI
Service identifiers.xiPartyId
- The XI party identifier for which the alternative identifiers are to be retrieved.xiServiceId
- The XI service identifier for which the alternative identifiers are to be retrieved.ServiceIdentifier
objects or an empty LinkedList, if no matching
objects can be found.CPAException
- In case no suitable object was found in the cpa cachepublic PartyIdentifier getAlternativePartyIdentifier(String targetPartyAgency, String targetPartySchema, String xiParty) throws CPAException
targetPartyAgency
- The party agency for which the alternative identifier is to be retrieved.targetPartySchema
- The party schema for which the alternative identifier is to be retrieved.xiParty
- The XI party identifier for which the alternative identifier is to be retrieved.PartyIdentifier
object or null, if no matching object can be found.CPAException
- In case no suitable object was found in the cpa cachepublic ServiceIdentifier getAlternativeServiceIdentifier(String targetSchema, String xiParty, String xiService) throws CPAException
targetSchema
- The service Schema for which the alternative Service identifier is to be retrieved. Use the
predefined service schema constants as defined in ServiceIdentifier
or in
NormalizationManager
or your own ones.xiParty
- The XI party identifier for which the alternative Service identifier is to be retrieved.xiService
- The XI Service identifier for which the alternative Service identifier is to be retrieved.ServiceIdentifier
object or null, if no matching objects can be found.CPAException
- In case no suitable object was found in the cpa cacheAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.svc.facade
|
api
|
BC-XI
|
Copyright 2019 SAP AG Complete Copyright Notice