openlsd.web.appli
Class LSDWebImportNet
java.lang.Object
openlsd.appli.autoimport.commonimport.LSDImportAbstract
openlsd.appli.autoimport.LSDImportNet
openlsd.web.appli.LSDWebImportNet
public class LSDWebImportNet
- extends LSDImportNet
Class to import files into DB and LSD from Net and Web
- Author:
- Frederic Bregier LGPL
Fields inherited from class openlsd.appli.autoimport.commonimport.LSDImportAbstract |
admin, async, blockmode, countKO, countOK, date_debut, dbconns, dir1, doneQueue, errorList, ext1, extidb, extKO, extOK, extStop, file0, fileKO, filename2Out, fileOK, isCompressed, isSameLid, istesting, KO, lcd, lci, lcp, lcps, lid0, listFiles, listline, llc, lsdb, nbFile, nbthread, option, passwd, sameDbConnMyltithread, sameLegacy, sameLid, source2, targetIdip, todelete, todoQueue, todoQueueB, todoQueueBLocal, todoQueueLocal, todoQueues, todoQueuesB, use2Out |
Method Summary |
static int |
putFileFromWeb(java.util.ArrayList<java.lang.String> erreurs,
LSDDbAdmin admin,
long legacy,
LSDDbIpPort userOrComp,
LSDDbIpPort prot,
LSDBusiness lsdb,
java.io.File file)
Put a file from the web (File from multipart-data) |
int |
putFileFromWebNotLocal(java.util.ArrayList<java.lang.String> erreurs,
long legacy,
LSDDbIpPort userOrComp,
LSDDbIpPort prot,
LSDBusiness lsdb,
java.io.File file)
Put a file from the web (File from multipart-data) from Net support |
Methods inherited from class openlsd.appli.autoimport.commonimport.LSDImportAbstract |
errorFromPrepareImportQueue, finalizeAfterAutoImport, finalizeAfterImport, finalizeConnection, finalizeRegisterFile, finishAfterAutoImport, getClientPutInfo, getClientPutInfoFromIpPort, getIndexFromString, getIpPortC, getIpPortP, getLegacy, initConnection, initializeArgs, initOneFileOption, initOptions, initOptionsAuto, initRegisterFile, joinConnection, prepareImportQueue, privateInitializeArgs, registerFalseFile, registerFalseFile, registerTrueFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LSDWebImportNet
public LSDWebImportNet(LSDDbAdmin admin)
- Create a LSDWebImportNet from args
- Parameters:
admin
-
putFileFromWeb
public static int putFileFromWeb(java.util.ArrayList<java.lang.String> erreurs,
LSDDbAdmin admin,
long legacy,
LSDDbIpPort userOrComp,
LSDDbIpPort prot,
LSDBusiness lsdb,
java.io.File file)
- Put a file from the web (File from multipart-data)
- Parameters:
erreurs
- is an arrayList of Strings that will contains litteral of errors if anyadmin
- legacy
- userOrComp
- User (not compressed) or Compressed LSD Server entryprot
- Protected LSD Server entrylsdb
- file
-
- Returns:
- 0 if OK, else > 0 means an error occurs (1:no Legacy found in DB,
2:no connection to OpenLSD Server, 3:document was not inserted)
putFileFromWebNotLocal
public int putFileFromWebNotLocal(java.util.ArrayList<java.lang.String> erreurs,
long legacy,
LSDDbIpPort userOrComp,
LSDDbIpPort prot,
LSDBusiness lsdb,
java.io.File file)
- Put a file from the web (File from multipart-data) from Net support
- Parameters:
erreurs
- is an arrayList of Strings that will contains litteral of errors if anylegacy
- userOrComp
- User (not compressed) or Compressed LSD Server entryprot
- Protected LSD Server entrylsdb
- file
-
- Returns:
- 0 if OK, else > 0 means an error occurs (1:no Legacy found in DB,
2:no connection to OpenLSD Server, 3:document was not inserted)