T
- type representing the actions supported by the SocialEventpublic abstract class SocialEvent<T extends SocialEvent.SocialActions>
extends Event
implements java.io.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
Verbs for a list of predefined action. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OBJECT
Describes the primary object of the activity.
|
static java.lang.String |
SOCIAL_EVENT_TOPIC_PREFIX
All
Event instances created using SocialEvents will have an event topic starting with this string. |
static java.lang.String |
TARGET
The target
SocialEvent.EventObject instance of this event. |
Constructor and Description |
---|
SocialEvent(Event event)
This constructor should be used to create a Social Event given an OSGi Event.
|
SocialEvent(java.lang.String topic,
java.lang.String path,
java.lang.String userId,
T action,
java.util.Map<java.lang.String,java.lang.Object> additionalData) |
SocialEvent(java.lang.String topic,
java.lang.String path,
java.lang.String userId,
T action,
SocialEvent.EventObject source,
SocialEvent.EventObject destination,
java.util.Map<java.lang.String,java.lang.Object> additionalData) |
Modifier and Type | Method and Description |
---|---|
T |
getAction() |
SocialEvent.EventObject |
getObject() |
java.lang.String |
getPath() |
SocialEvent.EventObject |
getTarget() |
java.lang.String |
getUserId() |
public static java.lang.String TARGET
SocialEvent.EventObject
instance of this event.public static java.lang.String OBJECT
public static final java.lang.String SOCIAL_EVENT_TOPIC_PREFIX
Event
instances created using SocialEvents will have an event topic starting with this string.public SocialEvent(Event event)
event
- an OSGi event that is known to be a social eventpublic SocialEvent(java.lang.String topic, java.lang.String path, java.lang.String userId, T action, java.util.Map<java.lang.String,java.lang.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(java.lang.String topic, java.lang.String path, java.lang.String userId, T action, SocialEvent.EventObject source, SocialEvent.EventObject destination, java.util.Map<java.lang.String,java.lang.Object> additionalData)
public java.lang.String getUserId()
public T getAction()
public java.lang.String getPath()
public SocialEvent.EventObject getTarget()
SocialEvent.EventObject
Target of the activity.public SocialEvent.EventObject getObject()
SocialEvent.EventObject
Object of the activity."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"