|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object openlsd.server.admin.commoncheck.LSDCheckSimilarAbstract
public abstract class LSDCheckSimilarAbstract
This abstract 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.
Field Summary | |
---|---|
protected LSDDbAdmin |
admin
The DBAdmin connector |
protected LSDLegacy |
lsdlegacy
The LSD Legacy object |
Constructor Summary | |
---|---|
LSDCheckSimilarAbstract()
|
Method Summary | |
---|---|
void |
clean()
Clean object |
LSDExtDbDocument |
getIfExists(java.io.File file)
Returns the Document if it exists, else null |
LSDExtDbDocument |
getIfExists(java.lang.String filepath)
Returns the Document if it exists, else null |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LSDDbAdmin admin
protected LSDLegacy lsdlegacy
Constructor Detail |
---|
public LSDCheckSimilarAbstract()
Method Detail |
---|
public LSDExtDbDocument getIfExists(java.lang.String filepath)
filepath
-
public LSDExtDbDocument getIfExists(java.io.File file)
file
- to check if it exists
public void clean()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |