com.atlassian.confluence.event
Class EventUtils

java.lang.Object
  extended by com.atlassian.confluence.event.EventUtils

public class EventUtils
extends java.lang.Object

Contains various utility methods for simplifying the Event handling process.


Constructor Summary
EventUtils()
           
 
Method Summary
static com.atlassian.event.Event extractWrappedEventOrOriginal(com.atlassian.event.Event event)
          If the given event is an instance of ClusterEventWrapper, returns the wrapped event.
static ContentTypeEnum getEventContentType(com.atlassian.event.Event event)
          Return the type of ConfluenceEntityObject the event is acting upon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventUtils

public EventUtils()
Method Detail

extractWrappedEventOrOriginal

public static com.atlassian.event.Event extractWrappedEventOrOriginal(com.atlassian.event.Event event)
If the given event is an instance of ClusterEventWrapper, returns the wrapped event. Otherwise, it will return the given event;

Parameters:
event - to extract from
Returns:
wrapped event or original event

getEventContentType

public static ContentTypeEnum getEventContentType(com.atlassian.event.Event event)
Return the type of ConfluenceEntityObject the event is acting upon.



Copyright © 2003-2014 Atlassian. All Rights Reserved.