@Component @Singleton @Unstable @Named(value="mentions") public class MentionsScriptService extends Object implements org.xwiki.script.service.ScriptService
Constructor and Description |
---|
MentionsScriptService() |
Modifier and Type | Method and Description |
---|---|
String |
format(String actorReference,
DisplayStyle style,
String type)
Format an actor mention according to its type.
|
String |
getMentionsColor() |
long |
getQueueSize() |
String |
getSelfMentionsColor() |
boolean |
isQuoteActivated() |
public String getMentionsColor()
MentionsConfiguration.getMentionsColor()
public String getSelfMentionsColor()
MentionsConfiguration.getSelfMentionsColor()
@Unstable public long getQueueSize()
MentionsEventExecutor.getQueueSize()
public boolean isQuoteActivated()
true
if the mentions quote feature is activated.MentionsConfiguration.isQuoteActivated()
@Unstable public String format(String actorReference, DisplayStyle style, String type)
actorReference
- the reference of the mentioned actorstyle
- the display styletype
- the type of the actor to formatMentionsFormatter.formatMention(String, DisplayStyle)
Copyright © 2004–2022 XWiki. All rights reserved.