Class SysIdOutboundProcessingContext
java.lang.Object
com.onenetwork.platform.integ.msg.OutboundProcessingContext
com.onenetwork.platform.integ.msg.SysIdOutboundProcessingContext
public class SysIdOutboundProcessingContext extends OutboundProcessingContext
Processing context to generate outbound data based on surrogate ids of models.
-
Constructor Summary
Constructors Constructor Description SysIdOutboundProcessingContext(java.lang.String outboundInterfaceName, java.lang.String OutboundInterfaceVersion, java.io.OutputStream outputStream, PlatformUserContext platformUserContext)
Constructs a context to generate an outbound request. -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.Long,Model>
getSysIdModelMap()
This method is used to accept Map with key as SysId and value as Model.java.util.List<java.lang.Long>
getSysIds()
void
setSysIdModelMap(java.util.Map<java.lang.Long,Model> sysIdModelMap)
This method is used to return Map with key as SysId and value as Model.void
setSysIds(java.util.List<java.lang.Long> sysIds)
Methods inherited from class com.onenetwork.platform.integ.msg.OutboundProcessingContext
addMessageDetail, getMessageDetails, getOutboundInterfaceName, getOutboundInterfaceVersion, getOutputStream, getPlatformUserContext, getRequest, setRequest
-
Constructor Details
-
SysIdOutboundProcessingContext
public SysIdOutboundProcessingContext(java.lang.String outboundInterfaceName, java.lang.String OutboundInterfaceVersion, java.io.OutputStream outputStream, PlatformUserContext platformUserContext)Constructs a context to generate an outbound request.- Parameters:
outboundInterfaceName
- outbound interface nameoutboundInterfaceVersion
- outbound interface version (can use null to indicate most recent version)outputStream
-OutputStream
into which the outbound message should be writtenplatformUserContext
- - VC level user or an user under a VC
-
-
Method Details
-
getSysIds
public java.util.List<java.lang.Long> getSysIds()- Returns:
- ids of the models to be read
-
setSysIds
public void setSysIds(java.util.List<java.lang.Long> sysIds)- Parameters:
sysIds
- ids of the models to be read
-
getSysIdModelMap
This method is used to accept Map with key as SysId and value as Model. It can be used when Models are required by Outbound Generator instead/along with SysIds list. The scenario's where it can be used are - 1) Insufficient permission of user to derive model using sysId's 2) When models are derived from sysId's then data store in Transient field is lost.- Parameters:
sysIdModelMap
- - Map with key as SysId of Model and value as Model.
-
setSysIdModelMap
This method is used to return Map with key as SysId and value as Model. It is used when Models are required by Outbound Generator instead/along with SysIds list. The scenario's where it can be used are - 1) Insufficient permission of user to derive model using sysId's 2) When models are derived from sysId's then data store in Transient field is lost.
-