nl.gx.webmanager.services.event
Interface Event

All Known Subinterfaces:
EntityEvent
All Known Implementing Classes:
ElementEvent, MediaItemEvent, MediaItemVersionEvent, PageEvent, PageModelEvent, PageVersionEvent

public interface Event

Event notification.

Author:
nikolam

Nested Class Summary
static class Event.Type
          Type of event notification.
 
Method Summary
 java.lang.String getEventAction()
          Returns the action that has been performed
 Event.Type getEventType()
          Type of event notification.
 java.lang.Class<?> getScope()
          The scope of the object on which the action is performed.
 java.lang.Object getSource()
          Returns the object that published the event
 

Method Detail

getEventType

Event.Type getEventType()
Type of event notification. This can be either PRE or POST. A PRE event is thrown just before the action is performed, a POST event immediately after.

Returns:
type of event notification.

getEventAction

java.lang.String getEventAction()
Returns the action that has been performed

Returns:
the action that has been performed.

getScope

java.lang.Class<?> getScope()
The scope of the object on which the action is performed. The scope indicates the object's type indicated by its Class

Returns:
the class of the object that the action is performed on.

getSource

java.lang.Object getSource()
Returns the object that published the event

Returns:
the source that fired the event (WCB ID).


Copyright © 2007-2011 GX Software BV. All Rights Reserved.