psdi.iface.load

Class JSONFileLoaderImpl



  • public class JSONFileLoaderImpl
    extends FileLoaderImpl
    Processing class for the file Loading in MAXIMO.
    • Constructor Detail

      • JSONFileLoaderImpl

        public JSONFileLoaderImpl(boolean preview,
                                  boolean fromClient,
                                  boolean isFileExtract,
                                  java.lang.String fileName,
                                  java.lang.String processOwner)
                           throws MXException,
                                  java.rmi.RemoteException
        Construct the set
        Parameters:
        preview - boolean indicating whether it is a UI preview mode or not.
        fromClient - boolean indicating whether it is from UI import or crontask
        delimiter - delimiter chanracter for flatfile
        textQualifier - Text Qualifier
        isFileExtract - Indicates when File Extract feature is desired
        fileName - File name under process (used by file extract functionality)
        processOwner - Owner of this file load process (used by file extract functionality)
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • JSONFileLoaderImpl

        public JSONFileLoaderImpl(boolean preview)
                           throws MXException,
                                  java.rmi.RemoteException
        Construct the set
        Parameters:
        preview - boolean indicating whether it is a UI preview mode or not.
        delimiter - delimiter chanracter for flatfile
        textQualifier - Text Qualifier
        action - action - Add,AddChange,Change, Replace, Delete
        transLangCode - Lang Code
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
    • Method Detail

      • processJSONData

        public void processJSONData(java.io.InputStream inStream,
                                    java.lang.String extSystemName,
                                    java.lang.String entServiceName,
                                    java.lang.Object recoveryService,
                                    MboRemote npMbo)
                             throws MXException
        Process Flat file.
        Parameters:
        inStream - InputStream of the file to be processed
        extSystemName - External System Name
        entServiceName - Enterprise Service name
        recoveryService - Recovery Service object
        Throws:
        MXException