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 BandanaManagerprotected com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSoftCleanupStatusService(BandanaManager bandanaManager) -
Method Summary
Modifier and TypeMethodDescriptionGet the current SoftCleanupJobStatus object from the bandana valueabstract StringGet the bandana key for the status objectprotected abstract SoftCleanupJobStatusparseStatusFromBandanaValue(Object bandanaValue) Get the existing SoftCleanupJobStatus object from the bandana valuevoidsetCurrentStatus(SoftCleanupJobStatus status) Set the current SoftCleanupJobStatus object to the bandana value
-
Field Details
-
bandanaManager
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
AbstractSoftCleanupStatusService
-
-
Method Details
-
getStatusBandanaKey
Get the bandana key for the status object- Returns:
- the bandana key for the status object
-
getCurrentStatus
Get the current SoftCleanupJobStatus object from the bandana value- Specified by:
getCurrentStatusin interfaceSoftCleanupStatusService- Returns:
- the current SoftCleanupJobStatus object
-
setCurrentStatus
Set the current SoftCleanupJobStatus object to the bandana value- Specified by:
setCurrentStatusin interfaceSoftCleanupStatusService- Parameters:
status- the SoftCleanupJobStatus object to set
-
parseStatusFromBandanaValue
Get the existing SoftCleanupJobStatus object from the bandana value- Parameters:
bandanaValue- the bandana value- Returns:
- the parsed SoftCleanupJobStatus object
-