Class SysIdOutboundInterfaceWriteRequest

java.lang.Object
com.onenetwork.platform.integ.msg.OutboundInterfaceWriteRequest
com.onenetwork.platform.integ.msg.SysIdOutboundInterfaceWriteRequest

public class SysIdOutboundInterfaceWriteRequest
extends OutboundInterfaceWriteRequest
Request to generate outbound data based on surrogate id of models.
  • Constructor Details

    • SysIdOutboundInterfaceWriteRequest

      public SysIdOutboundInterfaceWriteRequest​(java.lang.String outboundInterfaceName, java.lang.String outboundInterfaceVersion, QueueRef outboundQueueRef, java.util.List<java.lang.Long> sysIds, SqlParams sqlParams)
      Constructs a Request to generate an outbound request.
      Parameters:
      outboundInterfaceName - interface that is used to generate the CSV
      outboundInterfaceVersion - outbound interface version (can use null to indicate most recent version)
      outboundQueueRef - queue into which the outbound message should be placed
      sqlParams - additional parameters to bind in the sql (only required if you have customized the where clause or query with additional bind params)
      sysIds - list of sysIds for which this Csv is to be generated. If null that means its a netChange request.
  • Method Details

    • getSysIds

      public java.util.List<java.lang.Long> getSysIds()
      Returns the surrogate ids to be applied to the query
    • setSysIdModelMap

      public void setSysIdModelMap​(java.util.Map<java.lang.Long,​Model> sysIdModelMap)
      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 in Transient field is lost.
      Parameters:
      sysIdModelMap - - Map with key as SysId of Model and value as Model.
    • getSysIdModelMap

      public java.util.Map<java.lang.Long,​Model> getSysIdModelMap()
      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 in Transient field is lost.
      Returns:
      sysIdModelMap - Map with key as SysId of Model and value as Model.