T
- type representing the actions supported by the SocialEventpublic abstract class SocialEvent<T extends SocialEvent.SocialActions> extends org.osgi.service.event.Event implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SocialEvent.BaseEventObject
Default implementation of the
SocialEvent.EventObject |
static interface |
SocialEvent.EventObject
Representation of an event object.
|
static interface |
SocialEvent.SocialActions |
Modifier and Type | Field and Description |
---|---|
static String |
OBJECT
Describes the primary object of the activity.
|
static String |
SOCIAL_EVENT_TOPIC_PREFIX
All
Event instances created using SocialEvents will have an event topic starting with this string. |
static String |
TARGET
The target
SocialEvent.EventObject instance of this event. |
Constructor and Description |
---|
SocialEvent(org.osgi.service.event.Event event)
This constructor should be used to create a Social Event given an OSGi Event.
|
SocialEvent(String topic,
String path,
String userId,
T action,
Map<String,Object> additionalData) |
SocialEvent(String topic,
String path,
String userId,
T action,
SocialEvent.EventObject source,
SocialEvent.EventObject destination,
Map<String,Object> additionalData) |
Modifier and Type | Method and Description |
---|---|
T |
getAction() |
SocialEvent.EventObject |
getObject() |
String |
getPath() |
SocialEvent.EventObject |
getTarget() |
String |
getUserId() |
public static String TARGET
SocialEvent.EventObject
instance of this event.public static String OBJECT
public static final String SOCIAL_EVENT_TOPIC_PREFIX
Event
instances created using SocialEvents will have an event topic starting with this string.public SocialEvent(org.osgi.service.event.Event event)
event
- an OSGi event that is known to be a social eventpublic SocialEvent(String topic, String path, String userId, T action, Map<String,Object> additionalData)
topic
- - the topic string for the event.path
- - the jcr node path where the event occurred.userId
- - the user id of the user who triggered the event.action
- - the action that was taken to trigger the event.additionalData
- - a key value pair of any other data that should be part of the event payload.public SocialEvent(String topic, String path, String userId, T action, SocialEvent.EventObject source, SocialEvent.EventObject destination, Map<String,Object> additionalData)
public String getUserId()
public T getAction()
public String getPath()
public SocialEvent.EventObject getTarget()
SocialEvent.EventObject
Target of the activity.public SocialEvent.EventObject getObject()
SocialEvent.EventObject
Object of the activity."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"