openlsd.server.admin
Class LSDGetPaths

java.lang.Object
  extended by openlsd.server.admin.LSDGetPaths

public class LSDGetPaths
extends java.lang.Object

This class is intend to get a copy in the OUT path of a list of files.

Author:
Frederic BREGIER LGPL 2007

Field Summary
protected  LSDDbAdmin admin
          The DBAdmin connector
protected  LSDExtDbDocument document
          DB Document Object
protected  java.io.FileWriter fileErrWriter
          File error out
protected  java.lang.String filepath
          Original source file
protected  java.io.FileWriter fileWriter
          File out
protected  long lid
          current Legacy id
static LSDLoadConfig llc
          Object to load XML configuration
protected  LSDBusiness lsdb
          String identifying one specific document in one legacy : Business object
protected  LSDLegacy lsdlegacy
          The LSD Legacy object
 
Constructor Summary
LSDGetPaths(LSDLoadConfig llc)
          Create a LSDGetPaths from args
 
Method Summary
static void main(java.lang.String[] args)
          It takes one file as input containing Business index on each line and it returns as output in the file named from the source one plus ".out" the Business index following by the full path access to the real file on each line.
 boolean runGetPaths(java.lang.String filename)
          Run the GetPaths function from filename including Business Index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lid

protected long lid
current Legacy id


admin

protected LSDDbAdmin admin
The DBAdmin connector


lsdlegacy

protected LSDLegacy lsdlegacy
The LSD Legacy object


llc

public static LSDLoadConfig llc
Object to load XML configuration


fileWriter

protected java.io.FileWriter fileWriter
File out


fileErrWriter

protected java.io.FileWriter fileErrWriter
File error out


filepath

protected java.lang.String filepath
Original source file


lsdb

protected LSDBusiness lsdb
String identifying one specific document in one legacy : Business object


document

protected LSDExtDbDocument document
DB Document Object

Constructor Detail

LSDGetPaths

public LSDGetPaths(LSDLoadConfig llc)
Create a LSDGetPaths from args

Parameters:
llc -
Method Detail

main

public static void main(java.lang.String[] args)
It takes one file as input containing Business index on each line and it returns as output in the file named from the source one plus ".out" the Business index following by the full path access to the real file on each line.

Parameters:
args -

runGetPaths

public boolean runGetPaths(java.lang.String filename)
Run the GetPaths function from filename including Business Index

Parameters:
filename -
Returns:
True if OK, else False