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
-
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:AbstractMaintenanceTask
Indicate if the task need to be executed with an offline repository- Overrides:
requiresOffline
in classAbstractMaintenanceTask
- Returns:
- true if the repository need to be offline
-
initialize
Description copied from class:AbstractMaintenanceTask
Initialize the tasks. This method can also create theTaskProgress
object bounded to the task.- Overrides:
initialize
in classAbstractMaintenanceTask
- Throws:
javax.jcr.RepositoryException
- If a repository exception
-
apply
Description copied from class:AbstractMaintenanceTask
Apply the tasks (within the execute method()).- Specified by:
apply
in classAbstractMaintenanceTask
- Throws:
javax.jcr.RepositoryException
- If a repository exception
-
close
Description copied from class:AbstractMaintenanceTask
Close the tasks- Overrides:
close
in classAbstractMaintenanceTask
-
setLogger
Description copied from class:AbstractMaintenanceTask
Set the tasks logger.- Specified by:
setLogger
in classAbstractMaintenanceTask
-