Class AbstractTrashCleanupJobStatusManager
java.lang.Object
com.atlassian.confluence.impl.retention.status.AbstractTrashCleanupJobStatusManager
- All Implemented Interfaces:
TrashCleanupJobStatusManager
- Direct Known Subclasses:
DefaultTrashCleanupJobStatusManager,FastTrashCleanupJobStatusManager
public abstract class AbstractTrashCleanupJobStatusManager
extends Object
implements TrashCleanupJobStatusManager
- Since:
- 9.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.atlassian.sal.api.pluginsettings.PluginSettingsprotected final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
ConstructorsModifierConstructorDescriptionAbstractTrashCleanupJobStatusManager(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory) protectedAbstractTrashCleanupJobStatusManager(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionabstract StringGet the Plugin Settings key for the status objectprotected abstract TrashCleanupJobStatusparseStatusFromPluginSettingsValue(Object pluginSettingsValue) Get the existing TrashCleanupJobStatus object from the Plugin Settings valuevoidStore the status of current soft removal job
-
Field Details
-
globalPluginSettings
protected final com.atlassian.sal.api.pluginsettings.PluginSettings globalPluginSettings -
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
AbstractTrashCleanupJobStatusManager
public AbstractTrashCleanupJobStatusManager(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory) -
AbstractTrashCleanupJobStatusManager
protected AbstractTrashCleanupJobStatusManager(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getStatusPluginSettingsKey
Get the Plugin Settings key for the status object- Returns:
- the Plugin Settings key for the status object
-
setCurrentStatus
Description copied from interface:TrashCleanupJobStatusManagerStore the status of current soft removal job- Specified by:
setCurrentStatusin interfaceTrashCleanupJobStatusManager
-
getCurrentStatus
- Specified by:
getCurrentStatusin interfaceTrashCleanupJobStatusManager- Returns:
- status of current soft removal job
-
parseStatusFromPluginSettingsValue
protected abstract TrashCleanupJobStatus parseStatusFromPluginSettingsValue(Object pluginSettingsValue) Get the existing TrashCleanupJobStatus object from the Plugin Settings value- Parameters:
pluginSettingsValue- the Plugin Settings value- Returns:
- the parsed TrashCleanupJobStatus object
-