Class DISBIDMLMessageTransformer


  • public class DISBIDMLMessageTransformer
    extends java.lang.Object
    This class is used to transform the IDML to JSON Messages.

    Note: This class is for internal usage only. Any dependency from the end-user will not be supported. Changes to this class will happen without a warning.
    Since:
    7.1.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void constructCiAndRelationshipJson​(com.ibm.json.java.OrderedJSONObject operJsonObj, com.ibm.json.java.OrderedJSONObject newOperJsonObj)
      Method populates a new OrderedJSONObject with the CI and Relationships as required by the DIS Subscription Queue.
      java.lang.String getjSONMessage()  
      java.util.Map<java.lang.String,​java.lang.Object> getMsgProperties()  
      protected java.lang.String parseJSONMessage​(com.ibm.json.java.OrderedJSONObject opSetObject)
      Method returns a String containing the JSON message as required by the DIS Subscription Queue.
      protected java.util.Map<java.lang.String,​java.lang.Object> parseProperties​(com.ibm.json.java.OrderedJSONObject sourceObject)
      Method returns a map containing the JMS properties as required by the DIS Subscription Queue.
      void transformIDML​(java.io.InputStream idmlInpStrm)
      Method transforms the IDML input stream to JSON data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DISBIDMLMessageTransformer

        public DISBIDMLMessageTransformer()
    • Method Detail

      • transformIDML

        public void transformIDML​(java.io.InputStream idmlInpStrm)
                           throws java.lang.Exception
        Method transforms the IDML input stream to JSON data.
        Parameters:
        data - The InputStream containing the IDML Message.
        Throws:
        java.lang.Exception - if a problem occurs.
      • parseProperties

        protected java.util.Map<java.lang.String,​java.lang.Object> parseProperties​(com.ibm.json.java.OrderedJSONObject sourceObject)
                                                                                  throws java.lang.Exception
        Method returns a map containing the JMS properties as required by the DIS Subscription Queue.
        Parameters:
        sourceObject - The OrderedJSON object containing the IDML Message Properties.
        Returns:
        a Map object containing the parsed JMS properties as required by the DIS Subscription Queue.
        Throws:
        java.lang.Exception - if a problem occurs.
      • parseJSONMessage

        protected java.lang.String parseJSONMessage​(com.ibm.json.java.OrderedJSONObject opSetObject)
                                             throws java.lang.Exception
        Method returns a String containing the JSON message as required by the DIS Subscription Queue.
        Parameters:
        OrderedJSONObject - The object containing the containing DIS Operation Set.
        Throws:
        java.lang.Exception - if a problem occurs.
      • constructCiAndRelationshipJson

        protected void constructCiAndRelationshipJson​(com.ibm.json.java.OrderedJSONObject operJsonObj,
                                                      com.ibm.json.java.OrderedJSONObject newOperJsonObj)
                                               throws java.lang.Exception
        Method populates a new OrderedJSONObject with the CI and Relationships as required by the DIS Subscription Queue.
        Parameters:
        operJsonObj - The OrderedJSONObject object containing the JSON Message from IDML.
        newOperJsonObj - The new OrderedJSONObject that needs to be populated with the JSON message as required by the DIS Subscription Queue.
        Throws:
        java.lang.Exception - if a problem occurs.
      • getjSONMessage

        public java.lang.String getjSONMessage()
        Returns:
        the jSONMessage
      • getMsgProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getMsgProperties()
        Returns:
        the msgProperties