Package com.atlassian.confluence.event
Class EventUtils
- java.lang.Object
-
- com.atlassian.confluence.event.EventUtils
-
public class EventUtils extends Object
Contains various utility methods for simplifying the Event handling process.
-
-
Constructor Summary
Constructors Constructor Description EventUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.atlassian.event.Event
extractWrappedEventOrOriginal(com.atlassian.event.Event event)
If the givenevent
is an instance ofClusterEventWrapper
, returns the wrapped event.static ContentTypeEnum
getEventContentType(com.atlassian.event.Event event)
Return the type ofConfluenceEntityObject
the event is acting upon.
-
-
-
Method Detail
-
extractWrappedEventOrOriginal
public static com.atlassian.event.Event extractWrappedEventOrOriginal(com.atlassian.event.Event event)
If the givenevent
is an instance ofClusterEventWrapper
, 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 ofConfluenceEntityObject
the event is acting upon.
-
-