Package com.atlassian.jira.config
Class NoOpReindexMessageManager
java.lang.Object
com.atlassian.jira.config.NoOpReindexMessageManager
- All Implemented Interfaces:
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.-
Field Summary
Fields inherited from interface com.atlassian.jira.config.ReindexMessageManager
DISMISSAL_FLAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears any current message.voidclearMessageForTimestamp(Date time) Clears message if it was posted before a specific timegetMessage(ApplicationUser user) Get current message localised for given user.Get current message object for given user.voidpushMessage(ApplicationUser user, String i18nTask) Pushes a new message.voidpushRawMessage(ApplicationUser user, String i18nTask) Pushes a new raw message.
-
Constructor Details
-
NoOpReindexMessageManager
public NoOpReindexMessageManager()
-
-
Method Details
-
pushMessage
Description copied from interface:ReindexMessageManagerPushes a new message. This will replace any existing messages.- Specified by:
pushMessagein interfaceReindexMessageManager- Parameters:
user- the user performing the task. May benull, in which case a more generic notification will be displayedi18nTask- the i18n key of the task being performed.
-
pushRawMessage
Description copied from interface:ReindexMessageManagerPushes a new raw message. This will replace any existing messages.- Specified by:
pushRawMessagein interfaceReindexMessageManager- Parameters:
user- the user performing the task. May benull, in which case a more generic notification will be displayedi18nTask- the i18n key of the message being performed.
-
clear
public void clear()Description copied from interface:ReindexMessageManagerClears any current message.- Specified by:
clearin interfaceReindexMessageManager
-
getMessage
Description copied from interface:ReindexMessageManagerGet current message localised for given user.- Specified by:
getMessagein interfaceReindexMessageManager- 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
Description copied from interface:ReindexMessageManagerGet current message object for given user.- Specified by:
getMessageObjectin interfaceReindexMessageManager- Returns:
- the current message data.
-
clearMessageForTimestamp
Description copied from interface:ReindexMessageManagerClears message if it was posted before a specific time- Specified by:
clearMessageForTimestampin interfaceReindexMessageManager- Parameters:
time- If the message was posted before this time it will be cleared.
-