psdi.iface.load

Class FileLoaderImpl

    • Constructor Detail

      • FileLoaderImpl

        public FileLoaderImpl(boolean preview,
                              boolean fromClient,
                              boolean isFileExtract,
                              java.lang.String fileName)
                       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
        isFileExtract - Indicator of File Extract operation
        fileName - Input file name being imported
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
    • Method Detail

      • validate

        protected void validate(java.lang.String extSystemName,
                                java.lang.String entServiceName)
                         throws MXException
        Validate External system and Enterprise service names
        Parameters:
        extSystemName - External system name
        entServiceName - Enterprise service name
        Throws:
        MXException - MAXIMO exception
      • getSplitTag

        protected java.lang.String getSplitTag()
                                        throws MXException,
                                               java.rmi.RemoteException
        Get SplitTag from Enterprise service info object
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • processData

        public void processData(java.io.InputStream btIn,
                                java.lang.String extSystemName,
                                java.lang.String entServiceName,
                                boolean fromClient)
                         throws MXException
        abstract method that process the data and send it to Queue (or) process it for preview mode
        Overrides:
        processData in class BaseFileLoaderImpl
        Parameters:
        extSystemName - External system name
        entServiceName - Enterprise service name
        fromClient - boolean indicating whether it is from UI import or crontask
        btIn - Input Stream of Data content
        Throws:
        MXException - MAXIMO exception
      • getExtractOutputFile

        public java.lang.String getExtractOutputFile()