Class RemoveUnusedHistoryTask
java.lang.Object
org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
org.ametys.workspaces.repository.maintenance.RemoveUnusedHistoryTask
- All Implemented Interfaces:
LogEnabled
Remove unused object from jcr history
-
Field Summary
Fields inherited from class org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
_logger, _progress
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply()
Apply the tasks (within the execute method()).boolean
Indicate if the task need to be executed with an offline repositoryprotected void
Set the tasks logger.Methods inherited from class org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
_getFormattedDuration, close, createRepository, createRepositoryContext, execute, getAllPersistenceManager, getOrCreateRepository, getOrCreateRepositoryContext, getProgressInfo, getRepository, getRepositoryConfig, initialize, isFinished, setLogger
-
Field Details
-
_repository
The JackRabbit RepositoryImpl
-
-
Constructor Details
-
RemoveUnusedHistoryTask
public RemoveUnusedHistoryTask()
-
-
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
-
setLogger
Description copied from class:AbstractMaintenanceTask
Set the tasks logger.- Specified by:
setLogger
in classAbstractMaintenanceTask
-
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
-