Class CleanReferenceTask
java.lang.Object
org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
org.ametys.plugins.repository.maintenance.CleanReferenceTask
- All Implemented Interfaces:
LogEnabled
Repository maintenance task that crawls every node and check that the parent references still exists
-
Field Summary
Fields inherited from class org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
_logger, _progress -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
_getFormattedDuration, createRepository, createRepositoryContext, execute, getAllPersistenceManager, getOrCreateRepository, getOrCreateRepositoryContext, getProgressInfo, getRepository, getRepositoryConfig, isFinished, setLogger
-
Constructor Details
-
CleanReferenceTask
public CleanReferenceTask()
-
-
Method Details
-
requiresOffline
Description copied from class:AbstractMaintenanceTaskIndicate if the task need to be executed with an offline repository- Overrides:
requiresOfflinein classAbstractMaintenanceTask- Returns:
- true if the repository need to be offline
-
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
-
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
-
setLogger
Description copied from class:AbstractMaintenanceTaskSet the tasks logger.- Specified by:
setLoggerin classAbstractMaintenanceTask
-