public class EventManager
extends java.lang.Object
implements de.innovationgate.webgate.api.WGDatabaseEventListener, de.innovationgate.webgate.api.WGContentEventListener, de.innovationgate.webgate.api.workflow.WGWorkflowEventListener, de.innovationgate.webgate.api.WGDatabaseConnectListener
Modifier and Type | Class and Description |
---|---|
static interface |
EventManager.EventResultConsumer |
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
DEFAULT_THREADPOOLSIZE |
static java.lang.String |
EVENTNAME_CREATECONTENT |
static java.lang.String |
EVENTNAME_SAVECONTENT |
static java.lang.String |
EVENTNAME_STATUSCHANGE |
static java.lang.String |
EVENTNAME_WORKFLOWMAIL |
static org.apache.log4j.Logger |
LOG |
Constructor and Description |
---|
EventManager(WGACore core) |
Modifier and Type | Method and Description |
---|---|
void |
contentCreated(de.innovationgate.webgate.api.WGContentEvent contentEvent) |
void |
contentHasBeenDeleted(de.innovationgate.webgate.api.WGContentEvent contentEvent) |
void |
contentHasBeenMoved(de.innovationgate.webgate.api.WGContentEvent contentEvent) |
void |
contentHasBeenSaved(de.innovationgate.webgate.api.WGContentEvent contentEvent) |
boolean |
contentSaved(de.innovationgate.webgate.api.WGContentEvent contentEvent) |
void |
contentStatusChanged(de.innovationgate.webgate.api.WGContentEvent contentEvent) |
void |
databaseConnected(de.innovationgate.webgate.api.WGDatabaseEvent event) |
void |
databaseConnectionError(de.innovationgate.webgate.api.WGDatabaseEvent event) |
void |
databaseUpdate(de.innovationgate.webgate.api.WGDatabaseEvent event) |
java.lang.String |
dumpReceivers() |
void |
executeAsyncEvent(EventPath eventPath,
Event event) |
void |
executeAsyncEvent(EventPath eventPath,
Event event,
EventManager.EventResultConsumer resultConsumer) |
java.util.List<java.lang.Object> |
executeEvent(EventPath eventPath,
Event event,
boolean failOnException) |
WGACore |
getCore() |
de.innovationgate.wgpublisher.events.EventManager.EventReceiverNode |
getOrCreateNode(de.innovationgate.wgpublisher.events.EventManager.EventReceiverNode parentNode,
EventPathEntry entry) |
void |
initExecutors() |
boolean |
isTemporary() |
EventPathEntry[] |
registerEventReceiver(EventPath eventPath,
EventReceiver eventReceiver) |
void |
reloadConfig() |
void |
removeContentTypeEvents(java.lang.String key) |
void |
removeDatabaseEvents(java.lang.String key) |
void |
shutdown() |
void |
updateDatabaseEvents(de.innovationgate.webgate.api.WGDatabase db) |
void |
waitForEvents() |
void |
workflowMail(de.innovationgate.webgate.api.workflow.WGWorkflowEvent workflowEvent) |
public static final java.lang.Integer DEFAULT_THREADPOOLSIZE
public static final java.lang.String EVENTNAME_WORKFLOWMAIL
public static final java.lang.String EVENTNAME_STATUSCHANGE
public static final java.lang.String EVENTNAME_SAVECONTENT
public static final java.lang.String EVENTNAME_CREATECONTENT
public static final org.apache.log4j.Logger LOG
public EventManager(WGACore core)
public void initExecutors()
public void shutdown()
public void removeDatabaseEvents(java.lang.String key)
public void removeContentTypeEvents(java.lang.String key)
public EventPathEntry[] registerEventReceiver(EventPath eventPath, EventReceiver eventReceiver)
public de.innovationgate.wgpublisher.events.EventManager.EventReceiverNode getOrCreateNode(de.innovationgate.wgpublisher.events.EventManager.EventReceiverNode parentNode, EventPathEntry entry)
public java.util.List<java.lang.Object> executeEvent(EventPath eventPath, Event event, boolean failOnException) throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGException
public void executeAsyncEvent(EventPath eventPath, Event event) throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGException
public void executeAsyncEvent(EventPath eventPath, Event event, EventManager.EventResultConsumer resultConsumer) throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGException
public void waitForEvents()
public void databaseUpdate(de.innovationgate.webgate.api.WGDatabaseEvent event)
databaseUpdate
in interface de.innovationgate.webgate.api.WGDatabaseEventListener
public void updateDatabaseEvents(de.innovationgate.webgate.api.WGDatabase db)
public boolean isTemporary()
isTemporary
in interface de.innovationgate.webgate.api.WGDatabaseEventListener
public void contentCreated(de.innovationgate.webgate.api.WGContentEvent contentEvent) throws de.innovationgate.webgate.api.WGAPIException
contentCreated
in interface de.innovationgate.webgate.api.WGContentEventListener
de.innovationgate.webgate.api.WGAPIException
public boolean contentSaved(de.innovationgate.webgate.api.WGContentEvent contentEvent) throws de.innovationgate.webgate.api.WGAPIException
contentSaved
in interface de.innovationgate.webgate.api.WGContentEventListener
de.innovationgate.webgate.api.WGAPIException
public void workflowMail(de.innovationgate.webgate.api.workflow.WGWorkflowEvent workflowEvent) throws de.innovationgate.webgate.api.WGAPIException
workflowMail
in interface de.innovationgate.webgate.api.workflow.WGWorkflowEventListener
de.innovationgate.webgate.api.WGAPIException
public void contentHasBeenDeleted(de.innovationgate.webgate.api.WGContentEvent contentEvent) throws de.innovationgate.webgate.api.WGAPIException
contentHasBeenDeleted
in interface de.innovationgate.webgate.api.WGContentEventListener
de.innovationgate.webgate.api.WGAPIException
public void contentHasBeenSaved(de.innovationgate.webgate.api.WGContentEvent contentEvent) throws de.innovationgate.webgate.api.WGAPIException
contentHasBeenSaved
in interface de.innovationgate.webgate.api.WGContentEventListener
de.innovationgate.webgate.api.WGAPIException
public void databaseConnected(de.innovationgate.webgate.api.WGDatabaseEvent event)
databaseConnected
in interface de.innovationgate.webgate.api.WGDatabaseConnectListener
public void databaseConnectionError(de.innovationgate.webgate.api.WGDatabaseEvent event)
databaseConnectionError
in interface de.innovationgate.webgate.api.WGDatabaseConnectListener
public void contentHasBeenMoved(de.innovationgate.webgate.api.WGContentEvent contentEvent) throws de.innovationgate.webgate.api.WGAPIException
contentHasBeenMoved
in interface de.innovationgate.webgate.api.WGContentEventListener
de.innovationgate.webgate.api.WGAPIException
public void contentStatusChanged(de.innovationgate.webgate.api.WGContentEvent contentEvent) throws de.innovationgate.webgate.api.WGAPIException
contentStatusChanged
in interface de.innovationgate.webgate.api.WGContentEventListener
de.innovationgate.webgate.api.WGAPIException
public WGACore getCore()
public void reloadConfig()
public java.lang.String dumpReceivers() throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGException