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 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

      public abstract String getStatusPluginSettingsKey()
      Get the Plugin Settings key for the status object
      Returns:
      the Plugin Settings key for the status object
    • setCurrentStatus

      public void setCurrentStatus(TrashCleanupJobStatus status)
      Description copied from interface: TrashCleanupJobStatusManager
      Store the status of current soft removal job
      Specified by:
      setCurrentStatus in interface TrashCleanupJobStatusManager
    • getCurrentStatus

      public TrashCleanupJobStatus getCurrentStatus()
      Specified by:
      getCurrentStatus in interface TrashCleanupJobStatusManager
      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