Class Cleaner
java.lang.Object
com.logicaldoc.enterprise.cleaner.Cleaner
- All Implemented Interfaces:
com.logicaldoc.core.task.TaskListener
,EventListener
- Direct Known Subclasses:
ArchiveCleaner
,AuditCleaner
,BarcodeCleaner
,CalendarCleaner
,ChatCleaner
,CoreCleaner
,EmailCleaner
,ImportFolderCleaner
,OcrCleaner
,ReportCleaner
,RetentionCleaner
,WorkflowCleaner
,ZonalOCRCleaner
A cleaner is a specialized class that perform a particular cleanup. For
example deletes from db all logically deleted items.
- Since:
- 4.0
- Author:
- Marco Meschieri - LogicalDOC
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clean()
Performs the cleanupGets the fully qualified name of the database scriptvoid
progressChanged
(long progress) void
setConnection
(Connection connection) void
setDbScript
(String dbScript) void
setLogger
(org.slf4j.Logger logger) void
statusChanged
(int status)
-
Method Details
-
setLogger
public void setLogger(org.slf4j.Logger logger) -
setConnection
-
getDbScript
Gets the fully qualified name of the database script- Returns:
- name of the database script
-
setDbScript
-
clean
Performs the cleanup- Throws:
SQLException
- Error in the databaseIOException
- I/O error
-
progressChanged
public void progressChanged(long progress) - Specified by:
progressChanged
in interfacecom.logicaldoc.core.task.TaskListener
-
statusChanged
public void statusChanged(int status) - Specified by:
statusChanged
in interfacecom.logicaldoc.core.task.TaskListener
-