openlsd.appli.admin.LSDGetCopy Class Reference

Inheritance diagram for openlsd.appli.admin.LSDGetCopy:

Inheritance graph
[legend]
Collaboration diagram for openlsd.appli.admin.LSDGetCopy:

Collaboration graph
[legend]

List of all members.


Detailed Description

This class enables to get a copy of a file from LSD Server in the outbase path of the Legacy.

Author:
Frederic BREGIER LGPL 2007

Public Member Functions

int initCopy (String[]args, int curargs, boolean keepalived)
boolean runCopy (String filepath)

Static Public Member Functions

static void main (String[] args)

Protected Member Functions

void copyDocument ()

Protected Attributes

LSDDbAdmin admin = null
LSDDbLegacy legacy = null
LSDExtDbDocument document = null
long lid = LSDConstants.invalide_idx
LSDBusiness lsdb = null
LSDDbIpPort ipportAdm = null
LSDClientInfo lci = null
String filepath = null
FileWriter fileWriter = null
FileWriter fileErrWriter = null

Private Member Functions

 LSDGetCopy (LSDLoadConfig llc)

Constructor & Destructor Documentation

openlsd.appli.admin.LSDGetCopy.LSDGetCopy ( LSDLoadConfig  llc  )  [private]

Create a new LSDCopy object

Parameters:
llc 


Member Function Documentation

static void openlsd.appli.admin.LSDGetCopy.main ( String[]  args  )  [static]

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 copy of the file on each line.

Parameters:
args 

int openlsd.appli.admin.commoncopy.LSDCopyAbstract.initCopy ( String[]  args,
int  curargs,
boolean  keepalived 
) [inherited]

Init Copy context except file listing itself

Parameters:
args 
curargs 
keepalived 
Returns:
Next curargs or -1 if in error

boolean openlsd.appli.admin.commoncopy.LSDCopyAbstract.runCopy ( String  filepath  )  [inherited]

Run Copy from the file containing list of id Business

Parameters:
filepath 
Returns:
True if OK, else False

void openlsd.appli.admin.commoncopy.LSDCopyAbstract.copyDocument (  )  [protected, inherited]

Truely copy the document in LSD then in DB


Member Data Documentation

DB Admin Object

DB Legacy Object

DB Document Object

Legacy ID

LSDBusiness openlsd.appli.admin.commoncopy.LSDCopyAbstract.lsdb = null [protected, inherited]

String identifying one specific document in one legacy : Business object

IpPort Object

LSDClientInfo openlsd.appli.admin.commoncopy.LSDCopyAbstract.lci = null [protected, inherited]

Client Info Object

String openlsd.appli.admin.commoncopy.LSDCopyAbstract.filepath = null [protected, inherited]

Original source file

FileWriter openlsd.appli.admin.commoncopy.LSDCopyAbstract.fileWriter = null [protected, inherited]

File out

FileWriter openlsd.appli.admin.commoncopy.LSDCopyAbstract.fileErrWriter = null [protected, inherited]

File error out


The documentation for this class was generated from the following file: