com.ibm.tivoli.maximo.load

Class OSJSONFileLoaderImpl



  • public class OSJSONFileLoaderImpl
    extends BaseFileLoaderImpl
    Processing class for the file Loading in MAXIMO.
    • Constructor Detail

      • OSJSONFileLoaderImpl

        public OSJSONFileLoaderImpl(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
      • OSJSONFileLoaderImpl

        public OSJSONFileLoaderImpl(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

      • saveErrorFile

        protected void saveErrorFile()
                              throws java.rmi.RemoteException,
                                     MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • processObjectStructureJSONData

        public void processObjectStructureJSONData(java.io.InputStream inStream,
                                                   java.lang.String osName,
                                                   java.lang.String messageType,
                                                   MboRemote npMbo)
                                            throws MXException
        Process Flat file.
        Parameters:
        inStream - InputStream of the file to be processed
        osName - Object Structure Name
        npMbo - non persistent Mbo
        Throws:
        MXException