public abstract class AbstractRecordableEventDescriptor extends Object implements RecordableEventDescriptor
RecordableEventDescriptor
.RecordableEventDescriptor.EventFilter
Modifier and Type | Field and Description |
---|---|
protected String |
applicationTranslationKey |
protected org.xwiki.component.manager.ComponentManager |
componentManager |
protected ContextualLocalizationManager |
contextualLocalizationManager |
protected String |
descriptionTranslationKey |
protected org.slf4j.Logger |
logger |
protected org.xwiki.component.namespace.NamespaceContextExecutor |
namespaceContextExecutor |
Constructor and Description |
---|
AbstractRecordableEventDescriptor(String descriptionTranslationKey,
String applicationTranslationKey)
Construct an AbstractRecordableEventDescriptor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getApplicationName() |
String |
getDescription() |
protected String |
getLocalizedMessage(String key)
Render a translation key in the context of the namespace (e.g.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getApplicationIcon, getApplicationId, getEventTitle, getEventType, getEventTypeIcon, getFilter, isEnabled
@Inject protected org.slf4j.Logger logger
@Inject protected org.xwiki.component.manager.ComponentManager componentManager
@Inject protected ContextualLocalizationManager contextualLocalizationManager
@Inject protected org.xwiki.component.namespace.NamespaceContextExecutor namespaceContextExecutor
protected String descriptionTranslationKey
protected String applicationTranslationKey
public AbstractRecordableEventDescriptor(String descriptionTranslationKey, String applicationTranslationKey)
descriptionTranslationKey
- the name of the translation key that describe the eventapplicationTranslationKey
- the translation key of the name of the application that send this eventprotected String getLocalizedMessage(String key)
key
- the key to renderpublic String getDescription()
getDescription
in interface RecordableEventDescriptor
public String getApplicationName()
getApplicationName
in interface RecordableEventDescriptor
Copyright © 2004–2021 XWiki. All rights reserved.