Class EDIMessagingContext
java.lang.Object
com.onenetwork.platform.integ.edi.EDIMessagingContext
public class EDIMessagingContext
extends java.lang.Object
EDI Messaging Context contains the current messaging context details pertaining to an EDI.
For an inbound EDI, this contains the messaging context pertaining to an inbound EDI
- like the inbound transaction set, sender/receiver info, plt context, etc.
For an outbound EDI, this contains the details pertaining to the outbound flow.
- like the sender/receiver info, plt user context, etc
-
Constructor Summary
Constructors Constructor Description EDIMessagingContext()
-
Method Summary
Modifier and Type Method Description <T extends PlatformUserContext>
TgetDvceContext()
Deprecated.java.lang.String
getEdiFormat()
EdiMessageQueue
getEdiMessageQueueRef()
EdiMessageQueue
getEdiMessageQueueRefFor824()
EdiMessageQueue
getEdiMessageQueueRefFor997()
java.lang.String
getEdiVersion()
com.americancoders.edi.Envelope
getEnvelope()
java.lang.String
getFileStructure()
Returns a String with one of two possible values - XML or FlatFile to indicate which format is used for IDoc datajava.lang.String
getFromEnterpriseName()
java.lang.String
getFunctionalGroupIdentifier()
com.americancoders.edi.TransactionSet
getInboundTransactionSet()
Message
getMessage()
Partner
getPartner()
java.lang.String
getReceiverGsId()
java.lang.String
getReceiverIsaId()
java.lang.String
getReceiverIsaQualifier()
java.lang.String
getSenderGsId()
java.lang.String
getSenderIsaId()
java.lang.String
getSenderIsaQualifier()
java.lang.String
getToEnterpriseName()
java.lang.String
getTransactionSetIdentifier()
PlatformUserContext
getUserContext()
Method to get the PLT user context which is the user context being used for the EDI processing<T extends PlatformUserContext>
voidsetDvceContext(T pltUsrContext)
Deprecated.void
setEdiFormat(java.lang.String ediFormat)
void
setEdiMessageQueueRef(EdiMessageQueue ediMessageQueueRef)
void
setEdiMessageQueueRefFor824(EdiMessageQueue ediMessageQueueRefFor824)
void
setEdiMessageQueueRefFor997(EdiMessageQueue ediMessageQueueRefFor997)
void
setEdiVersion(java.lang.String ediVersion)
void
setEnvelope(com.americancoders.edi.Envelope envelope)
void
setFileStructure(java.lang.String fileStructure)
Set one of two possible values - XML or FlatFile to indicate which format is used for IDoc datavoid
setFromEnterpriseName(java.lang.String fromEnterpriseName)
void
setFunctionalGroupIdentifier(java.lang.String functionalGroupIdentifier)
void
setInboundTransactionSet(com.americancoders.edi.TransactionSet inboundTransactionSet)
void
setMessage(Message message)
void
setPartner(Partner partner)
void
setReceiverGsId(java.lang.String receiverGsId)
void
setReceiverIsaId(java.lang.String receiverIsaId)
void
setReceiverIsaQualifier(java.lang.String receiverIsaQualifier)
void
setSenderGsId(java.lang.String senderGsId)
void
setSenderIsaId(java.lang.String senderIsaId)
void
setSenderIsaQualifier(java.lang.String senderIsaQualifier)
void
setToEnterpriseName(java.lang.String toEnterpriseName)
void
setTransactionSetIdentifier(java.lang.String transactionSetIdentifier)
void
setUserContext(PlatformUserContext pltUsrContext)
Method to set the PLT user context which will the user context used for the EDI processing
-
Constructor Details
-
EDIMessagingContext
public EDIMessagingContext()
-
-
Method Details
-
getInboundTransactionSet
public com.americancoders.edi.TransactionSet getInboundTransactionSet()- Returns:
- the inboundTransactionSet - the current transaction set being processed inbound.
-
setInboundTransactionSet
public void setInboundTransactionSet(com.americancoders.edi.TransactionSet inboundTransactionSet)- Parameters:
inboundTransactionSet
- the inboundTransactionSet to set
-
getEnvelope
public com.americancoders.edi.Envelope getEnvelope()- Returns:
- for inbound messages only, contains the envelope for the message
-
setEnvelope
public void setEnvelope(com.americancoders.edi.Envelope envelope)- Parameters:
envelope
- for inbound messages only, contains the envelope for the message
-
getTransactionSetIdentifier
public java.lang.String getTransactionSetIdentifier()- Returns:
- the transactionSetIdentifier
The message type of the EDI being processed. Example: 850, 856
-
setTransactionSetIdentifier
public void setTransactionSetIdentifier(java.lang.String transactionSetIdentifier)- Parameters:
transactionSetIdentifier
- the transactionSetIdentifier to set
-
getEdiFormat
public java.lang.String getEdiFormat()- Returns:
- the ediFormat
The EDI format like X12 or EDIFact
-
setEdiFormat
public void setEdiFormat(java.lang.String ediFormat)- Parameters:
ediFormat
- the ediFormat to set
-
getFromEnterpriseName
public java.lang.String getFromEnterpriseName()- Returns:
- the fromEnterpriseName The sender enterprise name.
-
setFromEnterpriseName
public void setFromEnterpriseName(java.lang.String fromEnterpriseName)- Parameters:
fromEnterpriseName
- the fromEnterpriseName to set
-
getToEnterpriseName
public java.lang.String getToEnterpriseName()- Returns:
- the toEnterpriseName The receiver enterprise name
-
setToEnterpriseName
public void setToEnterpriseName(java.lang.String toEnterpriseName)- Parameters:
toEnterpriseName
- the toEnterpriseName to set
-
getMessage
- Returns:
- the message The encapsulating PLT message for the EDI to process.
-
setMessage
- Parameters:
message
- the message to set
-
getFunctionalGroupIdentifier
public java.lang.String getFunctionalGroupIdentifier()- Returns:
- the functionalGroupIdentifier The functional group type like PO, SH, FA etc
-
setFunctionalGroupIdentifier
public void setFunctionalGroupIdentifier(java.lang.String functionalGroupIdentifier)- Parameters:
functionalGroupIdentifier
- the functionalGroupIdentifier to set
-
getEdiMessageQueueRef
- Returns:
- the ediMessageQueueRef
The
EdiMessageQueue
reference for the transaction set in process.
-
setEdiMessageQueueRef
- Parameters:
ediMessageQueueRef
- the ediMessageQueueRef to set
-
getEdiMessageQueueRefFor997
- Returns:
- the ediMessageQueueRefFor997
The
EdiMessageQueue
reference for the functional ack (997/CONTRL) of the inbound transaction set.Note - Applicable for inbound only. Null for outbound
-
setEdiMessageQueueRefFor997
- Parameters:
ediMessageQueueRefFor997
- the ediMessageQueueRefFor997 to set
-
getEdiMessageQueueRefFor824
- Returns:
- the ediMessageQueueRefFor824
The
EdiMessageQueue
reference for the 824/application advice of the inbound transaction set.Note - Applicable for inbound only. Null for outbound
-
setEdiMessageQueueRefFor824
- Parameters:
ediMessageQueueRefFor824
- the ediMessageQueueRefFor824 to set
-
setSenderGsId
public void setSenderGsId(java.lang.String senderGsId)- Parameters:
senderGsId
- the senderGsId to set
-
getSenderGsId
public java.lang.String getSenderGsId()- Returns:
- the senderGsId
-
setReceiverGsId
public void setReceiverGsId(java.lang.String receiverGsId)- Parameters:
receiverGsId
- the receiverGsId to set
-
getReceiverGsId
public java.lang.String getReceiverGsId()- Returns:
- the receiverGsId
-
setPartner
- Parameters:
partner
- the partner to set The partner usually corresponding to the sender/receiver combination. This is also the partner to be used to process the EDI.
-
getPartner
- Returns:
- the partner
-
setSenderIsaId
public void setSenderIsaId(java.lang.String senderIsaId)- Parameters:
senderIsaId
- the senderIsaId to set
-
getSenderIsaId
public java.lang.String getSenderIsaId()- Returns:
- the senderIsaId
-
setReceiverIsaId
public void setReceiverIsaId(java.lang.String receiverIsaId)- Parameters:
receiverIsaId
- the receiverIsaId to set
-
getReceiverIsaId
public java.lang.String getReceiverIsaId()- Returns:
- the receiverIsaId
-
setSenderIsaQualifier
public void setSenderIsaQualifier(java.lang.String senderIsaQualifier)- Parameters:
senderIsaQualifier
- the senderIsaQualifier to set
-
getSenderIsaQualifier
public java.lang.String getSenderIsaQualifier()- Returns:
- the senderIsaQualifier
-
setReceiverIsaQualifier
public void setReceiverIsaQualifier(java.lang.String receiverIsaQualifier)- Parameters:
receiverIsaQualifier
- the receiverIsaQualifier to set
-
getReceiverIsaQualifier
public java.lang.String getReceiverIsaQualifier()- Returns:
- the receiverIsaQualifier
-
getDvceContext
Deprecated.UsegetUserContext()
-
setDvceContext
Deprecated. -
getUserContext
Method to get the PLT user context which is the user context being used for the EDI processing- Returns:
- PlatformUserContext
-
setUserContext
Method to set the PLT user context which will the user context used for the EDI processing- Parameters:
pltUsrContext
-
-
getFileStructure
public java.lang.String getFileStructure()Returns a String with one of two possible values - XML or FlatFile to indicate which format is used for IDoc data- Returns:
- the fileStructure
-
setFileStructure
public void setFileStructure(java.lang.String fileStructure)Set one of two possible values - XML or FlatFile to indicate which format is used for IDoc data- Parameters:
fileStructure
- the fileStructure to set
-
getEdiVersion
public java.lang.String getEdiVersion()- Returns:
- the ediVersion
-
setEdiVersion
public void setEdiVersion(java.lang.String ediVersion)- Parameters:
ediVersion
- the ediVersion to set
-