public abstract class BaseFileLoaderImpl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fileName |
protected java.lang.String |
filetype |
protected boolean |
fromClient |
protected boolean |
isFileExtract |
protected boolean |
ispreview |
protected boolean |
stopOnError |
protected long |
uniqueId |
protected UserInfo |
userInfo |
Constructor and Description |
---|
BaseFileLoaderImpl(boolean preview,
boolean fromClient,
boolean isFileExtract,
java.lang.String fileName)
Construct the set
|
Modifier and Type | Method and Description |
---|---|
void |
processData(java.io.InputStream btIn,
java.lang.String extSystemName,
java.lang.String entServiceName,
boolean fromClient)
abstract method that process the data and send it to Queue (or) process it for preview mode
|
protected void |
saveErrorFile(byte[] errdata) |
void |
setImportRow(MboRemote fileimportqueueRow) |
void |
setStopOnError(boolean stopOnError) |
protected void |
updateProgress(int pIndex,
int errCount,
boolean complete) |
protected java.lang.String filetype
protected boolean ispreview
protected boolean fromClient
protected boolean isFileExtract
protected java.lang.String fileName
protected UserInfo userInfo
protected long uniqueId
protected boolean stopOnError
public BaseFileLoaderImpl(boolean preview, boolean fromClient, boolean isFileExtract, java.lang.String fileName) throws MXException, java.rmi.RemoteException
preview
- boolean indicating whether it is a UI preview mode or not.fromClient
- boolean indicating whether it is from UI import or crontaskisFileExtract
- Indicator of File Extract operationfileName
- Input file name being importedMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void setStopOnError(boolean stopOnError)
public void setImportRow(MboRemote fileimportqueueRow) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
protected void updateProgress(int pIndex, int errCount, boolean complete) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
protected void saveErrorFile(byte[] errdata) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void processData(java.io.InputStream btIn, java.lang.String extSystemName, java.lang.String entServiceName, boolean fromClient) throws MXException
extSystemName
- External system nameentServiceName
- Enterprise service namefromClient
- boolean indicating whether it is from UI import or crontaskbtIn
- Input Stream of Data contentMXException
- MAXIMO exception