@ProviderType public interface ActivityObject extends JsonAdaptable
ActivityObject
specifies a general object use with activities.
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.Modifier and Type | Method and Description |
---|---|
ActivityObject[] |
getAttachments()
An array of one or more additional, associated objects, similar to the concept of attached files in an email
message.
|
ActivityObject |
getAuthor()
Describes the entity that created or authored the object.
|
java.lang.String |
getAuthorUserId()
Returns the user id of the author of this activity object or
null if this object was not created
by a user present in this system. |
java.lang.String |
getContent()
Natural-language description of the object encoded as a single String containing HTML markup.
|
java.lang.String |
getDisplayName()
A natural-language, human-readable and plain-text name for the object.
|
java.lang.String[] |
getDownstreamDuplicates()
Am array of one or more absolute IRI's [RFC3987] identifying objects that duplicate this object's content.
|
java.lang.String |
getId()
Provides a permanent, universally unique identifier for the object in the form of an absolute IRI [RFC3987].
|
MediaLink |
getImage()
Description of a resource providing a visual representation of the object, intended for human consumption.
|
MutableActivityObject |
getMutableActivityObject()
Returns a copy of this activity object that is mutable.
|
java.lang.String |
getObjectType()
Identifies the type of object.
|
ValueMap |
getProperties()
Returns a read-only value map of the raw properties underlying this activity object.
|
long |
getPublished()
The date and time at which the object was published.
|
java.lang.String |
getSummary()
Natural-language summarization of the object encoded as a single String containing HTML markup.
|
long |
getUpdated()
The date and time at which a previously published object has been modified.
|
java.lang.String[] |
getUpstreamDuplicates()
An array of one or more absolute IRI's [RFC3987] identifying objects that duplicate this object's content.
|
java.lang.String |
getURL()
An IRI [RFC3987] identifying a resource providing an HTML representation of the object.
|
toJSON
java.lang.String getId()
java.lang.String getURL()
java.lang.String getObjectType()
java.lang.String getContent()
java.lang.String getDisplayName()
java.lang.String getSummary()
MediaLink getImage()
ActivityObject getAuthor()
java.lang.String getAuthorUserId()
null
if this object was not created
by a user present in this system.long getPublished()
long getUpdated()
ActivityObject[] getAttachments()
java.lang.String[] getDownstreamDuplicates()
java.lang.String[] getUpstreamDuplicates()
ValueMap getProperties()
MutableActivityObject getMutableActivityObject()
this
is
returned.Copyright © 2010 - 2020 Adobe. All Rights Reserved