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 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 name
      outboundInterfaceVersion - outbound interface version (can use null to indicate most recent version)
      outputStream - OutputStream into which the outbound message should be written
      platformUserContext - - 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

      public java.util.Map<java.lang.Long,​Model> 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

      public 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. 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.