public final class ForumEvent extends SocialEvent<ForumEvent.Type> implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ForumEvent.Type
The event types supported for the forum and its topics/posts.
|
SocialEvent.SocialActions
Modifier and Type | Field and Description |
---|---|
static String |
COLLAB_EVENT_TOPIC
Deprecated.
- this has been deprecated, we no longer need to be triggering collab events from social bundles.
|
static String |
EVENT_TOPIC
The topic name for event topic.
|
SOCIAL_EVENT_TOPIC_PREFIX
Constructor and Description |
---|
ForumEvent(Dictionary<String,Object> properties)
Deprecated.
use
ForumEvent(Type, Post) instead. |
ForumEvent(ForumEvent.Type type,
Post post)
Constructor for event fired for changes occurring within a forum.
|
ForumEvent(String postPath,
String forumPath,
String topicPath,
String id,
ForumEvent.Type type) |
Modifier and Type | Method and Description |
---|---|
static ForumEvent |
fromEvent(Event event)
Retrieves the forum event from the given generic
Event . |
String |
getForumPath()
Returns the path of the forum associated with the topic/post affected by the event.
|
String |
getTopicPath() |
ForumEvent.Type |
getType()
Deprecated.
use getAction()
|
Event |
toEvent()
Deprecated.
Do not use this method. It is provided for API backward compatibility, but it does not return a
distributable event form of this Event.
|
String |
toString() |
getAction, getPath, getUserId
public static final String EVENT_TOPIC
@Deprecated public static final String COLLAB_EVENT_TOPIC
@Deprecated public ForumEvent(Dictionary<String,Object> properties)
ForumEvent(Type, Post)
instead.properties
- The properties of the eventpublic ForumEvent(ForumEvent.Type type, Post post)
type
- The type of the properties of the eventpost
- The post.public ForumEvent(String postPath, String forumPath, String topicPath, String id, ForumEvent.Type type)
public String getForumPath()
String
representing the path of the forum.public String getTopicPath()
@Deprecated public ForumEvent.Type getType()
ForumEvent.Type
of the event or null
if the event carries an unknown type.@Deprecated public Event toEvent()
Event
.public static ForumEvent fromEvent(Event event)
Event
.event
- The event.null
if the given event is not a forum event.public String toString()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"