|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.contentapi.event.ElementEvent
public class ElementEvent
This class represents an element event posted by the element service to allow all subscribers to this event to do something with that information. This may be updating timestamps, updating a search index, etc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface nl.gx.webmanager.services.event.Event |
|---|
Event.Type |
| Field Summary |
|---|
| Fields inherited from interface nl.gx.webmanager.services.event.EntityEvent |
|---|
COPY, CREATE, DELETE, MOVE, RETRIEVE, UPDATE |
| Constructor Summary | |
|---|---|
ElementEvent(Event.Type eventType,
Element element,
Element originalElement,
java.lang.String eventAction,
java.lang.Object source)
Constructor of the element event. |
|
ElementEvent(Event.Type eventType,
Element element,
Element originalElement,
java.lang.String eventAction,
java.lang.Object source,
java.lang.Class<? extends Element> scope)
Constructor of the element event. |
|
ElementEvent(Event.Type eventType,
Element element,
java.lang.String eventAction,
java.lang.Object source)
Constructor of the element event. |
|
ElementEvent(Event.Type eventType,
Element element,
java.lang.String eventAction,
java.lang.Object source,
java.lang.Class<? extends Element> scope)
Constructor of the element event. |
|
| Method Summary | |
|---|---|
Element |
getElement()
Returns the element associated with this event. |
java.lang.Object |
getEntity()
Return the entity on which the action was performed. |
java.lang.String |
getEventAction()
Returns the action that has been performed |
Event.Type |
getEventType()
Type of event notification. |
Element |
getOriginalElement()
Returns the original element associated with this event. |
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 |
java.lang.String |
toString()
Returns String representing information on the event |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ElementEvent(Event.Type eventType,
Element element,
java.lang.String eventAction,
java.lang.Object source)
eventType - The event type which can be either PRE or POST.element - The element which is the result of the performed action.eventAction - Event action, see EntityEvent.source - The source object on which the event was published.
public ElementEvent(Event.Type eventType,
Element element,
Element originalElement,
java.lang.String eventAction,
java.lang.Object source)
eventType - The event type which can be either PRE or POST.element - The element which is the result of the performed action.originalElement - The element on which the action is performed. Useful in combination with
EntityEvent.COPY where element is not the same as original element.eventAction - Event action, see EntityEvent.source - The source object on which the event was published.
public ElementEvent(Event.Type eventType,
Element element,
java.lang.String eventAction,
java.lang.Object source,
java.lang.Class<? extends Element> scope)
eventType - The event type which can be either PRE or POST.element - The element which is the result of the performed action.eventAction - Event action, see EntityEvent.source - The source object on which the event was published.scope - Scope of the event.
public ElementEvent(Event.Type eventType,
Element element,
Element originalElement,
java.lang.String eventAction,
java.lang.Object source,
java.lang.Class<? extends Element> scope)
eventType - The event type which can be either PRE or POST.element - The element which is the result of the performed action.originalElement - The element on which the action is performed. Useful in combination with
EntityEvent.COPY where element is not the same as original element.eventAction - Event action, see EntityEvent.source - The source object on which the event was published.scope - Scope of the event.| Method Detail |
|---|
public Element getElement()
public Element getOriginalElement()
public java.lang.Object getEntity()
EntityEvent
getEntity in interface EntityEventpublic java.lang.String getEventAction()
Event
getEventAction in interface Eventpublic Event.Type getEventType()
Event
getEventType in interface Eventpublic java.lang.Class<?> getScope()
Event
getScope in interface Eventpublic java.lang.Object getSource()
Event
getSource in interface Eventpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||