Class NoOpReindexMessageManager

java.lang.Object
com.atlassian.jira.config.NoOpReindexMessageManager
All Implemented Interfaces:
ReindexMessageManager

public class NoOpReindexMessageManager extends Object implements ReindexMessageManager
Implementation of ReindexMessageManager that can be used in setup bootstrap mode time with a thinner container. This component breaks dependency chain for instantiating JiraPluginManager.
See Also:
  • Constructor Details

    • NoOpReindexMessageManager

      public NoOpReindexMessageManager()
  • Method Details

    • pushMessage

      public void pushMessage(ApplicationUser user, String i18nTask)
      Description copied from interface: ReindexMessageManager
      Pushes a new message. This will replace any existing messages.
      Specified by:
      pushMessage in interface ReindexMessageManager
      Parameters:
      user - the user performing the task. May be null, in which case a more generic notification will be displayed
      i18nTask - the i18n key of the task being performed.
    • pushRawMessage

      public void pushRawMessage(ApplicationUser user, String i18nTask)
      Description copied from interface: ReindexMessageManager
      Pushes a new raw message. This will replace any existing messages.
      Specified by:
      pushRawMessage in interface ReindexMessageManager
      Parameters:
      user - the user performing the task. May be null, in which case a more generic notification will be displayed
      i18nTask - the i18n key of the message being performed.
    • clear

      public void clear()
      Description copied from interface: ReindexMessageManager
      Clears any current message.
      Specified by:
      clear in interface ReindexMessageManager
    • getMessage

      public String getMessage(ApplicationUser user)
      Description copied from interface: ReindexMessageManager
      Get current message localised for given user.
      Specified by:
      getMessage in interface ReindexMessageManager
      Parameters:
      user - the current user
      Returns:
      the current message, localised for the current user, presented in HTML (and already escaped). null if there is no current message.
    • getMessageObject

      public ReindexMessage getMessageObject()
      Description copied from interface: ReindexMessageManager
      Get current message object for given user.
      Specified by:
      getMessageObject in interface ReindexMessageManager
      Returns:
      the current message data.
    • clearMessageForTimestamp

      public void clearMessageForTimestamp(Date time)
      Description copied from interface: ReindexMessageManager
      Clears message if it was posted before a specific time
      Specified by:
      clearMessageForTimestamp in interface ReindexMessageManager
      Parameters:
      time - If the message was posted before this time it will be cleared.