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 java.lang.String |
TALLY_TOPIC_PREFIX
The event topic suffix for tally events
|
OBJECT, SOCIAL_EVENT_TOPIC_PREFIX, TARGET
Constructor and Description |
---|
TallyEvent(java.lang.String tallyPath,
java.lang.String userId,
java.lang.String parentPath,
java.lang.String tallyType,
TallyEvent.TallyActions action) |
TallyEvent(java.lang.String tallyPath,
java.lang.String userId,
java.lang.String parentPath,
java.lang.String tallyType,
TallyEvent.TallyActions action,
java.util.Map<java.lang.String,java.lang.Object> objectExtraProps,
java.util.Map<java.lang.String,java.lang.Object> targetExtraProps) |
Modifier and Type | Method and Description |
---|---|
static TallyEvent |
fromEvent(Event event)
Retrieves the tally event from the given generic
Event . |
java.lang.String |
getParentPath() |
java.lang.String |
getTallyType() |
getAction, getObject, getPath, getTarget, getUserId
containsProperty, equals, getProperty, getPropertyNames, getTopic, hashCode, matches, toString
public static final java.lang.String TALLY_TOPIC_PREFIX
public TallyEvent(java.lang.String tallyPath, java.lang.String userId, java.lang.String parentPath, java.lang.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 TallyEvent(java.lang.String tallyPath, java.lang.String userId, java.lang.String parentPath, java.lang.String tallyType, TallyEvent.TallyActions action, java.util.Map<java.lang.String,java.lang.Object> objectExtraProps, java.util.Map<java.lang.String,java.lang.Object> targetExtraProps)
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 java.lang.String getParentPath()
public static TallyEvent fromEvent(Event event)
Event
.event
- The event.null
if the given event is not a tally event.public java.lang.String getTallyType()
Copyright © 2010 - 2020 Adobe. All Rights Reserved