public class TallyEvent extends SocialEvent<TallyEvent.TallyActions>
Modifier and Type | Class and Description |
---|---|
static class |
TallyEvent.TallyActions
List of available tally actions that can trigger a tally event.
|
SocialEvent.BaseEventObject, SocialEvent.EventObject, SocialEvent.SocialActions
Modifier and Type | Field and Description |
---|---|
static String |
TALLY_TOPIC_PREFIX
The event topic suffix for tally events
|
OBJECT, SOCIAL_EVENT_TOPIC_PREFIX, TARGET
Constructor and Description |
---|
TallyEvent(String tallyPath,
String userId,
String parentPath,
String tallyType,
TallyEvent.TallyActions action) |
Modifier and Type | Method and Description |
---|---|
static TallyEvent |
fromEvent(org.osgi.service.event.Event event)
Retrieves the tally event from the given generic
Event . |
String |
getParentPath() |
String |
getTallyType() |
getAction, getObject, getPath, getTarget, getUserId
public static final String TALLY_TOPIC_PREFIX
public TallyEvent(String tallyPath, String userId, String parentPath, String tallyType, TallyEvent.TallyActions action)
tallyPath
- - the jcr node path to the tally resource on which this event was triggered.userId
- - the user id of the user who triggered the event.parentPath
- - the jcr node path to the parent node of the tally resource.tallyType
- - the type of tally component (voting, rating, etc,.).action
- - the tally action that triggered this event.public String getParentPath()
public static TallyEvent fromEvent(org.osgi.service.event.Event event)
Event
.event
- The event.null
if the given event is not a tally event.public String getTallyType()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"