public enum WikiEventEmitter extends java.lang.Enum<WikiEventEmitter>
WikiEvents.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static void |
attach(WikiEventListener listener)
Registers a
WikiEventListener so it listens events fired from the WikiEventEmitter instance. |
static WorkflowEvent |
fireWorkflowEvent(java.lang.Object src,
int type)
Fires a Workflow Event from provided source and workflow type.
|
static WorkflowEvent |
fireWorkflowEvent(java.lang.Object src,
int type,
java.lang.Object... args)
Fires a Workflow Event from provided source and workflow type.
|
static WikiEventEmitter |
get() |
static void |
register(WikiEventListener listener)
Registers a
WikiEventListener so it listens events fired from the WikiEventEmitter instance. |
static WikiEventEmitter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WikiEventEmitter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WikiEventEmitter INSTANCE
public static WikiEventEmitter[] values()
for (WikiEventEmitter c : WikiEventEmitter.values()) System.out.println(c);
public static WikiEventEmitter valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static WikiEventEmitter get()
public static WorkflowEvent fireWorkflowEvent(java.lang.Object src, int type)
src - the source of the event, which can be any object: a wiki page, group or authentication/authentication/group manager.type - the type of eventWorkflowEvent or null if the WikiEventEmitter instance hasn't listeners attached.public static WorkflowEvent fireWorkflowEvent(java.lang.Object src, int type, java.lang.Object... args)
src - the source of the event, which can be any object: a wiki page, group or authentication/authentication/group manager.type - the type of eventWorkflowEvent or null if the WikiEventEmitter instance hasn't listeners attached.public static void attach(WikiEventListener listener)
WikiEventListener so it listens events fired from the WikiEventEmitter instance. Every other
WikiEventListener of the same type, listening events from the WikiEventEmitter instance will stop listening events
from it. This ensures events received by the WikiEventListener will only process the events once.listener - WikiEventListenerpublic static void register(WikiEventListener listener)
WikiEventListener so it listens events fired from the WikiEventEmitter instance. Events received by the
WikiEventListener could process the events more than once or, several instances of the same WikiEventListener would
be able to receive the same event.listener - WikiEventListenerCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.