com.atlassian.jira.config
Interface ReindexMessageManager

All Known Implementing Classes:
DefaultReindexMessageManager

@PublicApi
public interface ReindexMessageManager

Manages messages for JIRA's administration section that inform users of the need to reindex due to configuration changes.

Since:
v4.0

Method Summary
 void clear()
          Clears any current message.
 void clearMessageForTimestamp(Date time)
          Clears message if it was posted before a specific time
 String getMessage(com.atlassian.crowd.embedded.api.User user)
          Get current message localised for given user.
 ReindexMessage getMessageObject()
          Get current message object for given user.
 void pushMessage(com.atlassian.crowd.embedded.api.User user, String i18nTask)
          Pushes a new message.
 void pushRawMessage(com.atlassian.crowd.embedded.api.User user, String i18nTask)
          Pushes a new raw message.
 

Method Detail

pushMessage

void pushMessage(com.atlassian.crowd.embedded.api.User user,
                 String i18nTask)
Pushes a new message. This will replace any existing messages.

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

void pushRawMessage(com.atlassian.crowd.embedded.api.User user,
                    String i18nTask)
Pushes a new raw message. This will replace any existing messages.

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

void clear()
Clears any current message.


getMessage

String getMessage(com.atlassian.crowd.embedded.api.User user)
Get current message localised for given user.

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

ReindexMessage getMessageObject()
Get current message object for given user.

Returns:
the current message data.
Since:
v5.2

clearMessageForTimestamp

void clearMessageForTimestamp(Date time)
Clears message if it was posted before a specific time

Parameters:
time - If the message was posted before this time it will be cleared.
Since:
v5.2


Copyright © 2002-2014 Atlassian. All Rights Reserved.