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 Details

    • bandanaManager

      protected final BandanaManager bandanaManager
    • objectMapper

      protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
  • Constructor Details

    • AbstractSoftCleanupStatusService

      protected AbstractSoftCleanupStatusService(BandanaManager bandanaManager)
  • Method Details

    • getStatusBandanaKey

      public abstract String getStatusBandanaKey()
      Get the bandana key for the status object
      Returns:
      the bandana key for the status object
    • getCurrentStatus

      public SoftCleanupJobStatus getCurrentStatus()
      Get the current SoftCleanupJobStatus object from the bandana value
      Specified by:
      getCurrentStatus in interface SoftCleanupStatusService
      Returns:
      the current SoftCleanupJobStatus object
    • setCurrentStatus

      public void setCurrentStatus(SoftCleanupJobStatus status)
      Set the current SoftCleanupJobStatus object to the bandana value
      Specified by:
      setCurrentStatus in interface SoftCleanupStatusService
      Parameters:
      status - the SoftCleanupJobStatus object to set
    • parseStatusFromBandanaValue

      protected abstract SoftCleanupJobStatus parseStatusFromBandanaValue(Object bandanaValue)
      Get the existing SoftCleanupJobStatus object from the bandana value
      Parameters:
      bandanaValue - the bandana value
      Returns:
      the parsed SoftCleanupJobStatus object