public interface Activity extends JsonAdaptable
Activity
Note that property names and descriptions were reused from http://activitystrea.ms/specs/json/1.0/. Although that
document specifies how activities are serialized in JSON the names and concepts can be reused. Additional properties
and behaviors are added where the JSON abstraction is not suitable.
All properties referring to IDs or URLs may return a path instead of an absolute IRI if the activity is still
present in the repository. It is the tasks of the exporting servlet to make them absolute.Modifier and Type | Method and Description |
---|---|
ActivityObject |
getActor()
Describes the entity that performed the activity.
|
java.lang.String |
getActorUserId()
Returns the user id of the actor of this activity or
null if this object was not created
by a user present in this system. |
java.lang.String |
getContent()
Natural-language description of the activity encoded as a single String containing HTML markup.
|
ActivityObject |
getGenerator()
Describes the application that generated the activity.
|
MediaLink |
getIcon()
Description of a resource providing a visual representation of the object, intended for human consumption.
|
java.lang.String |
getId()
Provides a permanent, universally unique identifier for the activity in the form of an absolute IRI [RFC3987].
|
MutableActivity |
getMutableActivity()
Returns a copy of this activity that is mutable.
|
ActivityObject |
getObject()
Describes the primary object of the activity.
|
java.lang.String |
getPath()
Returns the path of this activity if stored in the repository.
|
ValueMap |
getProperties()
Returns a read-only value map of the raw properties underlying this activity.
|
ActivityObject |
getProvider()
Describes the application that published the activity.
|
long |
getPublished()
The date and time at which the activity was published.
|
ActivityStream |
getStream()
Returns the stream of this activity or
null if not accessible or not applicable. |
ActivityObject |
getTarget()
Describes the target of the activity.
|
java.lang.String |
getTitle()
Natural-language title or headline for the activity encoded as a single String containing HTML markup.
|
long |
getUpdated()
The date and time at which a previously published activity has been modified.
|
java.lang.String |
getURL()
An IRI [RFC3987] identifying a resource providing an HTML representation of the activity.
|
java.lang.String |
getVerb()
Identifies the action that the activity describes.
|
toJSON
java.lang.String getId()
java.lang.String getURL()
java.lang.String getPath()
null
java.lang.String getVerb()
java.lang.String getTitle()
ActivityObject getActor()
java.lang.String getActorUserId()
null
if this object was not created
by a user present in this system.java.lang.String getContent()
ActivityObject getTarget()
ActivityObject getObject()
long getPublished()
ActivityObject getProvider()
ActivityObject getGenerator()
long getUpdated()
MediaLink getIcon()
ValueMap getProperties()
MutableActivity getMutableActivity()
this
is returned.ActivityStream getStream()
null
if not accessible or not applicable."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"