public class NoOpReindexMessageManager extends Object implements ReindexMessageManager
ReindexMessageManager
that can be used in setup bootstrap mode time with a thinner
container. This component breaks dependency chain for instantiating
JiraPluginManager
.DISMISSAL_FLAG
Constructor and Description |
---|
NoOpReindexMessageManager() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears any current message.
|
void |
clearMessageForTimestamp(Date time)
Clears message if it was posted before a specific time
|
String |
getMessage(ApplicationUser user)
Get current message localised for given user.
|
ReindexMessage |
getMessageObject()
Get current message object for given user.
|
void |
pushMessage(ApplicationUser user,
String i18nTask)
Pushes a new message.
|
void |
pushRawMessage(ApplicationUser user,
String i18nTask)
Pushes a new raw message.
|
public void pushMessage(ApplicationUser user, String i18nTask)
ReindexMessageManager
pushMessage
in interface ReindexMessageManager
user
- the user performing the task. May be null
, in which case a more generic
notification will be displayedi18nTask
- the i18n key of the task being performed.public void pushRawMessage(ApplicationUser user, String i18nTask)
ReindexMessageManager
pushRawMessage
in interface ReindexMessageManager
user
- the user performing the task. May be null
, in which case a more generic
notification will be displayedi18nTask
- the i18n key of the message being performed.public void clear()
ReindexMessageManager
clear
in interface ReindexMessageManager
public String getMessage(ApplicationUser user)
ReindexMessageManager
getMessage
in interface ReindexMessageManager
user
- the current userpublic ReindexMessage getMessageObject()
ReindexMessageManager
getMessageObject
in interface ReindexMessageManager
public void clearMessageForTimestamp(Date time)
ReindexMessageManager
clearMessageForTimestamp
in interface ReindexMessageManager
time
- If the message was posted before this time it will be cleared.Copyright © 2002-2023 Atlassian. All Rights Reserved.