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
Modifier and TypeFieldDescriptionprotected final com.atlassian.bandana.BandanaManager
protected final com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
ModifierConstructorDescriptionAbstractTrashCleanupJobStatusManager
(com.atlassian.bandana.BandanaManager bandanaManager) protected
AbstractTrashCleanupJobStatusManager
(com.atlassian.bandana.BandanaManager bandanaManager, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionabstract String
Get the bandana key for the status objectprotected abstract TrashCleanupJobStatus
parseStatusFromBandanaValue
(Object bandanaValue) Get the existing TrashCleanupJobStatus object from the bandana valuevoid
Store the status of current soft removal job
-
Field Details
-
bandanaManager
protected final com.atlassian.bandana.BandanaManager bandanaManager -
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
AbstractTrashCleanupJobStatusManager
public AbstractTrashCleanupJobStatusManager(com.atlassian.bandana.BandanaManager bandanaManager) -
AbstractTrashCleanupJobStatusManager
protected AbstractTrashCleanupJobStatusManager(com.atlassian.bandana.BandanaManager bandanaManager, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getStatusBandanaKey
Get the bandana key for the status object- Returns:
- the bandana key for the status object
-
setCurrentStatus
Description copied from interface:TrashCleanupJobStatusManager
Store the status of current soft removal job- Specified by:
setCurrentStatus
in interfaceTrashCleanupJobStatusManager
-
getCurrentStatus
- Specified by:
getCurrentStatus
in interfaceTrashCleanupJobStatusManager
- Returns:
- status of current soft removal job
-
parseStatusFromBandanaValue
Get the existing TrashCleanupJobStatus object from the bandana value- Parameters:
bandanaValue
- the bandana value- Returns:
- the parsed TrashCleanupJobStatus object
-