@PublicApi
public interface ReindexMessageManager
Modifier and Type | Field and Description |
---|---|
static String |
DISMISSAL_FLAG
Flag used to determine if a user has dismissed a reindex message or not.
|
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.
|
static final String DISMISSAL_FLAG
void pushMessage(ApplicationUser user, String i18nTask)
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.void pushRawMessage(ApplicationUser user, String i18nTask)
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.void clear()
String getMessage(ApplicationUser user)
user
- the current userReindexMessage getMessageObject()
void clearMessageForTimestamp(Date time)
time
- If the message was posted before this time it will be cleared.Copyright © 2002-2017 Atlassian. All Rights Reserved.