|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.contentapi.event.PageVersionEvent
public final class PageVersionEvent
| 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 | |
|---|---|
PageVersionEvent(Event.Type type,
PageVersion version,
java.lang.String action,
java.lang.Object source)
Fill constructor for this immutable class. |
|
PageVersionEvent(Event.Type type,
PageVersion version,
java.lang.String action,
PageVersion targetVersion,
java.lang.Object source)
Fill constructor for this immutable class. |
|
| Method Summary | |
|---|---|
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. |
PageVersion |
getPageVersion()
Return the page version 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 |
PageVersion |
getTargetPageVersion()
Return the target page version associated with this 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 PageVersionEvent(Event.Type type,
PageVersion version,
java.lang.String action,
java.lang.Object source)
type - The event type which can be either PRE or POST.version - The page version on which the action is performed.action - Action performed on the version. Typically one defined by the EntityEvent interface.source - The source object on which the event was published.
public PageVersionEvent(Event.Type type,
PageVersion version,
java.lang.String action,
PageVersion targetVersion,
java.lang.Object source)
type - The event type which can be either PRE or POST.version - The page version on which the action is performed.action - Action performed on the version. Typically one defined by the EntityEvent interface.targetVersion - When action is EntityEvent.COPY holds a reference to the copy of
the page version.source - The source object on which the event was published.| Method Detail |
|---|
public PageVersion getPageVersion()
public PageVersion getTargetPageVersion()
EntityEvent.COPY.
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 | |||||||||