Public Member Functions | |
LSDCheckSimilar (LSDLoadConfig llc) | |
LSDCheckSimilar (LSDDbAdmin admin, LSDLegacy legacy) | |
void | clean () |
LSDExtDbDocument | getIfExists (String filepath) |
LSDExtDbDocument | getIfExists (File file) |
Static Public Member Functions | |
static void | main (String[] args) |
Static Public Attributes | |
static LSDLoadConfig | llc = null |
Protected Attributes | |
LSDDbAdmin | admin = null |
LSDLegacy | lsdlegacy = null |
openlsd.server.admin.LSDCheckSimilar.LSDCheckSimilar | ( | LSDLoadConfig | llc | ) |
Create the CheckSimilar object from Main procedure
llc |
openlsd.server.admin.LSDCheckSimilar.LSDCheckSimilar | ( | LSDDbAdmin | admin, | |
LSDLegacy | legacy | |||
) |
Create the CheckSimilar object from other main
admin | ||
legacy |
static void openlsd.server.admin.LSDCheckSimilar.main | ( | String[] | args | ) | [static] |
Check if a specific file is already inserted in one specific Legacy of OpenLSD.
Returns 0 if this file does not exist already in the Legacy, else if it exists it returns 1 and prints to stdout the LSD index of the existing document.
args | with the config filename (db config) as first arg, then the LSD config filename as second arg, then the Legacy id as third arg, then the path to the file to check as fourth arg. |
void openlsd.server.admin.LSDCheckSimilar.clean | ( | ) |
Clean object
Reimplemented from openlsd.server.admin.commoncheck.LSDCheckSimilarAbstract.
LSDExtDbDocument openlsd.server.admin.commoncheck.LSDCheckSimilarAbstract.getIfExists | ( | String | filepath | ) | [inherited] |
Returns the Document if it exists, else null
filepath |
LSDExtDbDocument openlsd.server.admin.commoncheck.LSDCheckSimilarAbstract.getIfExists | ( | File | file | ) | [inherited] |
Returns the Document if it exists, else null
file | to check if it exists |
LSDLoadConfig openlsd.server.admin.LSDCheckSimilar.llc = null [static] |
Object to load XML configuration
LSDDbAdmin openlsd.server.admin.commoncheck.LSDCheckSimilarAbstract.admin = null [protected, inherited] |
The DBAdmin connector
LSDLegacy openlsd.server.admin.commoncheck.LSDCheckSimilarAbstract.lsdlegacy = null [protected, inherited] |
The LSD Legacy object