|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.config.DefaultReindexMessageManager
public class DefaultReindexMessageManager
Default implementation of the Reindex Message Manager that uses a simple PropertySet to store the last message pushed.
Constructor Summary | |
---|---|
DefaultReindexMessageManager(JiraPropertySetFactory jiraPropertySetFactory,
UserKeyService userKeyService,
UserFormatManager userFormatManager,
I18nHelper.BeanFactory i18nFactory,
OutlookDateManager outlookDateManager,
VelocityRequestContextFactory velocityRequestContextFactory,
PermissionManager permissionManager,
TaskManager taskManager)
|
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 |
onClearCache(ClearCacheEvent event)
|
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 i18nMessage)
Pushes a new raw message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultReindexMessageManager(JiraPropertySetFactory jiraPropertySetFactory, UserKeyService userKeyService, UserFormatManager userFormatManager, I18nHelper.BeanFactory i18nFactory, OutlookDateManager outlookDateManager, VelocityRequestContextFactory velocityRequestContextFactory, PermissionManager permissionManager, TaskManager taskManager)
Method Detail |
---|
@EventListener public void onClearCache(ClearCacheEvent event)
public void pushMessage(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User user, String i18nMessage)
ReindexMessageManager
pushRawMessage
in interface ReindexMessageManager
user
- the user performing the task. May be null
, in which case a more generic
notification will be displayedi18nMessage
- the i18n key of the message being performed.public void clear()
ReindexMessageManager
clear
in interface ReindexMessageManager
public String getMessage(com.atlassian.crowd.embedded.api.User user)
ReindexMessageManager
getMessage
in interface ReindexMessageManager
user
- the current user
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |