|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object openlsd.server.admin.commoncheck.LSDCheckSimilarAbstract openlsd.server.admin.LSDCheckSimilar
public class LSDCheckSimilar
This class is about to check if a specific file is already
inserted in one specific Legacy of OpenLSD.
It checks first the existence of one file with same length and
MD5, then, if there is at least one, it checks if the files
are really the same.
WARNING: This function is only compatible with not crypted Legacy!
WARNING: This function needs (for efficiency) to add the index IDX_DOC_LIDSIZEDOCMD5
in the database.
This version can only be used on the OpenLSD Server due to the necessity to
get direct access on files stored in OpenLSD Legacy.
Field Summary | |
---|---|
static LSDLoadConfig |
llc
Object to load XML configuration |
Fields inherited from class openlsd.server.admin.commoncheck.LSDCheckSimilarAbstract |
---|
admin, lsdlegacy |
Constructor Summary | |
---|---|
LSDCheckSimilar(LSDDbAdmin admin,
LSDLegacy legacy)
Create the CheckSimilar object from other main |
|
LSDCheckSimilar(LSDLoadConfig llc)
Create the CheckSimilar object from Main procedure |
Method Summary | |
---|---|
void |
clean()
Clean object |
static void |
main(java.lang.String[] args)
Check if a specific file is already inserted in one specific Legacy of OpenLSD. |
Methods inherited from class openlsd.server.admin.commoncheck.LSDCheckSimilarAbstract |
---|
getIfExists, getIfExists |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static LSDLoadConfig llc
Constructor Detail |
---|
public LSDCheckSimilar(LSDLoadConfig llc)
llc
- public LSDCheckSimilar(LSDDbAdmin admin, LSDLegacy legacy)
admin
- legacy
- Method Detail |
---|
public static void main(java.lang.String[] args)
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.public void clean()
clean
in class LSDCheckSimilarAbstract
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |