Class AbstractSoftCleanupStatusService
java.lang.Object
com.atlassian.confluence.impl.retention.AbstractSoftCleanupStatusService
- All Implemented Interfaces:
SoftCleanupStatusService
- Direct Known Subclasses:
DefaultSoftCleanupStatusService
,FastSoftCleanupStatusService
public abstract class AbstractSoftCleanupStatusService
extends Object
implements SoftCleanupStatusService
Abstract service for interacting with VersionsRemovalStatus object
- Since:
- 9.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.atlassian.sal.api.pluginsettings.PluginSettings
protected com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractSoftCleanupStatusService
(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory) -
Method Summary
Modifier and TypeMethodDescriptionGet the current SoftCleanupJobStatus object from the Plugin Settings valueabstract String
Get the Plugin Settings key for the status objectprotected abstract SoftCleanupJobStatus
parseStatusFromPluginSettingsValue
(Object pluginSettingsValue) Get the existing SoftCleanupJobStatus object from the Plugin Settings valuevoid
setCurrentStatus
(SoftCleanupJobStatus status) Set the current SoftCleanupJobStatus object to the Plugin Settings value
-
Field Details
-
globalPluginSettings
protected final com.atlassian.sal.api.pluginsettings.PluginSettings globalPluginSettings -
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
AbstractSoftCleanupStatusService
protected AbstractSoftCleanupStatusService(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory)
-
-
Method Details
-
getStatusPluginSettingsKey
Get the Plugin Settings key for the status object- Returns:
- the Plugin Settings key for the status object
-
getCurrentStatus
Get the current SoftCleanupJobStatus object from the Plugin Settings value- Specified by:
getCurrentStatus
in interfaceSoftCleanupStatusService
- Returns:
- the current SoftCleanupJobStatus object
-
setCurrentStatus
Set the current SoftCleanupJobStatus object to the Plugin Settings value- Specified by:
setCurrentStatus
in interfaceSoftCleanupStatusService
- Parameters:
status
- the SoftCleanupJobStatus object to set
-
parseStatusFromPluginSettingsValue
protected abstract SoftCleanupJobStatus parseStatusFromPluginSettingsValue(Object pluginSettingsValue) Get the existing SoftCleanupJobStatus object from the Plugin Settings value- Parameters:
pluginSettingsValue
- the Plugin Settings value- Returns:
- the parsed SoftCleanupJobStatus object
-