Class ConsistencyCheckTask
java.lang.Object
org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
org.ametys.workspaces.repository.maintenance.ConsistencyCheckTask
- All Implemented Interfaces:
 LogEnabled,ConsistencyCheckListener
public class ConsistencyCheckTask
extends AbstractMaintenanceTask
implements ConsistencyCheckListener
ConsistencyCheckTask
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.jcr.SessionThe JCR Session bound to this task.Fields inherited from class org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
_logger, _progress - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply()Apply the tasks (within the execute method()).protected voidclose()Close the tasksvoidvoidprotected voidInitialize the tasks.voidreport(ReportItem item) protected voidSet the tasks logger.voidstartCheck(String id) Methods inherited from class org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
_getFormattedDuration, createRepository, createRepositoryContext, execute, getAllPersistenceManager, getOrCreateRepository, getOrCreateRepositoryContext, getProgressInfo, getRepository, getRepositoryConfig, isFinished, requiresOffline, setLogger 
- 
Field Details
- 
_session
The JCR Session bound to this task. 
 - 
 - 
Constructor Details
- 
ConsistencyCheckTask
public ConsistencyCheckTask() 
 - 
 - 
Method Details
- 
initialize
Description copied from class:AbstractMaintenanceTaskInitialize the tasks. This method can also create theProgressionTrackerobject bounded to the task.- Overrides:
 initializein classAbstractMaintenanceTask- Throws:
 javax.jcr.RepositoryException- If a repository exception
 - 
setLogger
Description copied from class:AbstractMaintenanceTaskSet the tasks logger.- Specified by:
 setLoggerin classAbstractMaintenanceTask
 - 
apply
Description copied from class:AbstractMaintenanceTaskApply the tasks (within the execute method()).- Specified by:
 applyin classAbstractMaintenanceTask- Throws:
 javax.jcr.RepositoryException- If a repository exception
 - 
close
Description copied from class:AbstractMaintenanceTaskClose the tasks- Overrides:
 closein classAbstractMaintenanceTask
 - 
startCheck
- Specified by:
 startCheckin interfaceConsistencyCheckListener
 - 
report
- Specified by:
 reportin interfaceConsistencyCheckListener
 - 
error
- Specified by:
 errorin interfaceConsistencyCheckListener
 - 
info
- Specified by:
 infoin interfaceConsistencyCheckListener
 
 -