psdi.iface.bidi.maximo

Class BidiUtils

  • java.lang.Object
    • psdi.iface.bidi.maximo.BidiUtils


  • public class BidiUtils
    extends java.lang.Object
    Utilities class to wrap the transformation functionality
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static byte[] bidiTransformInboundData(byte[] data, java.lang.String bidiFormat)
      Performs the Bidi transformation for the passed data according to the provided Bidi format
      static byte[] bidiTransformInboundData(java.lang.String extSystemName, byte[] data)
      Performs the Bidi transformation for the passed data according to the provided external system's Bidi format
      static byte[] bidiTransformOutboundData(byte[] data, java.lang.String bidiFormat)
      Performs the Bidi transformation for the passed data according to the provided Bidi format
      static java.lang.String getBidiFormat(java.lang.String extSystemName)
      Returns the Bidi format from an external system identified by its name
      • Methods inherited from class java.lang.Object

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

      • getBidiFormat

        public static java.lang.String getBidiFormat(java.lang.String extSystemName)
                                              throws MXException
        Returns the Bidi format from an external system identified by its name
        Parameters:
        extSystemName - the external system that posts the data to Maximo platform
        Returns:
        the Bidi format in five-char flag set
        Throws:
        MXException - thrown from ExtSystemCache's getInstance()
      • bidiTransformInboundData

        public static byte[] bidiTransformInboundData(java.lang.String extSystemName,
                                                      byte[] data)
                                               throws MXException
        Performs the Bidi transformation for the passed data according to the provided external system's Bidi format
        Parameters:
        data - the XML document in byte array
        extSystem - the external system that posts the data to Maximo platform
        Returns:
        the transformed data thru the Bidi Transformation APIs
        Throws:
        MXException - any error while transformation process will pass thru to caller to handle
      • bidiTransformInboundData

        public static byte[] bidiTransformInboundData(byte[] data,
                                                      java.lang.String bidiFormat)
                                               throws MXException
        Performs the Bidi transformation for the passed data according to the provided Bidi format
        Parameters:
        data - the XML document in byte array
        bidiFormat - the external system's bidi format to transform the data from.
        Returns:
        the transformed data thru the Bidi Transformation APIs
        Throws:
        MXException - any error while transformation process will pass thru to caller to handle
      • bidiTransformOutboundData

        public static byte[] bidiTransformOutboundData(byte[] data,
                                                       java.lang.String bidiFormat)
                                                throws MXException
        Performs the Bidi transformation for the passed data according to the provided Bidi format
        Parameters:
        data - the XML document in byte array
        bidiFormat - the external system's bidi format to transform the data to.
        Returns:
        the transformed data thru the Bidi Transformation APIs
        Throws:
        MXException - any error while transformation process will pass thru to caller to handle