public interface SenderConfiguration extends Serializable
SenderInteractionConfiguration
(s).
A SenderConfiguration object contains the following detail: SenderInteractionConfiguration[]
-
An array of
SenderInteractionConfiguration
,
associated with this SenderConfiguration.SenderConfiguration
should not be null or empty.SenderConfiguration
should not contain null
SenderInteractionConfiguration
SenderConfiguration
should not contain duplicate
SenderInteractionConfiguration
(s).SenderInteractionConfiguration
should not contain duplicate
SenderSideEffectConfiguration
(s).SenderSideEffectConfiguration
should not contain null MasterCatalog Ids. MasterCatalog Id details should be already present in the database.
private SenderConfiguration createSenderConfiguration()
{
//Sender and Receiver detail
String senderRoot = "9.99.999.9999.149.99976";
String senderExtn = "TEST-011";
String recvRoot = "9.989898.5";
String recvExtn = "2803";
String interactionId = "PORR_IN040001";
String mcIds[] = {"1780", "1781"}; // This list of MasterCatalog ids should
already exist.
//creating the SenderSideEffectConfiguration
SenderSideEffectConfiguration
sideEffectConfig[] = createSideEffectConfig();
//creating SenderInteractionConfiguration
SenderInteractionConfiguration
senderInteractionConfiguration = new SenderInteractionConfigurationImpl();
senderInteractionConfiguration.setInteractionId(interactionId); //setting
interaction id
senderInteractionConfiguration.setSenderSideEffectConfiguration(sideEffectConfig);
//associating the SenderSideEffectConfiguration with
SenderInteractionConfiguration
//Creating SenderConfiguration
SenderConfiguration
senderConfiguration = new SenderConfigurationImpl();
senderConfiguration.setSenderIdRoot(senderRoot); //setting Sender Id
senderConfiguration.setSenderIdExtension(senderExtn); //setting Sender Id
Extension
senderConfiguration.setReceiverIdRoot(recvRoot); // setting Receiver Id
senderConfiguration.setReceiverIdExtension(recvExtn);// setting Receiver Id
Extension
//associating SenderInteractionConfiguration with SenderConfiguration
senderConfiguration.setSenderInteractionConfigurations(new
SenderInteractionConfiguration[] {senderInteractionConfiguration });
impConfigAdminIntrService.createSenderConfiguration(senderConfiguration);
}
//creating SenderSideEffectConfiguration
private SenderSideEffectConfiguration[] createSideEffectConfig()
{
SenderSideEffectConfiguration
[]
senderSideEffectConfigs = new SenderSideEffectConfiguration
[mcIds.length];
for (int i = 0; i < mcIds.length; i++)
{
senderSideEffectConfigs[i] = new SenderSideEffectConfigurationImpl();
senderSideEffectConfigs[i].setObjectRefModifierCode(SenderSideEffectConfiguration.CREATE_OR_OVERLAY);
senderSideEffectConfigs[i].setPlayerRefModifierCode(SenderSideEffectConfiguration.CREATE_OR_OVERLAY);
senderSideEffectConfigs[i].setScoperRefModifierCode(SenderSideEffectConfiguration.CREATE_OR_OVERLAY);
senderSideEffectConfigs[i].setMasterCatalogId(mcIds[i]);
}
return senderSideEffectConfigs;
}
Modifier and Type | Method and Description |
---|---|
String |
getReceiverIdExtension()
Returns the Receiver Id Extension.
|
String |
getReceiverIdRoot()
Returns the Receiver Id.
|
String |
getSenderConfigId()
Returns the SenderConfiguration Id.
|
String |
getSenderIdExtension()
Returns the Sender Id Extension.
|
String |
getSenderIdRoot()
Returns the Sender Id.
|
SenderInteractionConfiguration[] |
getSenderInteractionConfigurations()
Returns an array of
SenderInteractionConfiguration
associated with this SenderConfiguration. |
void |
setReceiverIdExtension(String receiverIdExtension)
Sets the Receiver Id Extension for this SenderConfiguration.
|
void |
setReceiverIdRoot(String receiverIdRoot)
Sets the Receiver Id for this SenderConfiguration.
|
void |
setSenderIdExtension(String senderIdExtension)
Sets the Sender Id Extension for this SenderConfiguration.
|
void |
setSenderIdRoot(String senderIdRoot)
Sets the Sender Id for this SenderConfiguration.
|
void |
setSenderInteractionConfigurations(SenderInteractionConfiguration[] senderInteractionConfigurations)
Sets an array of
SenderInteractionConfiguration
associated with this SenderConfiguration. |
String getSenderConfigId()
String getSenderIdRoot()
String getSenderIdExtension()
String getReceiverIdRoot()
String getReceiverIdExtension()
void setSenderIdRoot(String senderIdRoot)
senderIdRoot
- Sender Id for this SenderConfiguration.void setReceiverIdExtension(String receiverIdExtension)
receiverIdExtension
- Receiver Id for this SenderConfiguration.void setReceiverIdRoot(String receiverIdRoot)
receiverIdRoot
- Receiver Id for this SenderConfiguration.void setSenderIdExtension(String senderIdExtension)
senderIdExtension
- Sender Id Extension for this SenderConfiguration.SenderInteractionConfiguration[] getSenderInteractionConfigurations()
SenderInteractionConfiguration
associated with this SenderConfiguration.SenderInteractionConfiguration
.void setSenderInteractionConfigurations(SenderInteractionConfiguration[] senderInteractionConfigurations)
SenderInteractionConfiguration
associated with this SenderConfiguration.senderInteractionConfigurations
- An array of SenderInteractionConfiguration
associated with this SenderConfiguration.HDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved