Interface Activity
- All Superinterfaces:
ActivityPubObject
- All Known Implementing Classes:
ActivityDefault
An Activity is a subtype of
ActivityPubObject
that describes some
form of action that may happen, is currently happening, or has already
happened. The Activity type itself serves as an abstract base type for all
types of activities. It is important to note that the Activity type itself
does not carry any specific semantics about the kind of action being taken
See Also: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-activity-
Method Summary
Modifier and TypeMethodDescriptionAbstraction of the type of this activity, for convenience.void
addActor
(org.apache.commons.rdf.api.IRI actor) Describes one or more entities that either performed or are expected to perform the activity.void
addObject
(org.apache.commons.rdf.api.IRI object) Describes anActivityPubObject
of any kind.void
addObject
(ActivityPubObject activityPubObject) Describes anActivityPubObject
of any kind.Set
<org.apache.commons.rdf.api.IRI> getActor()
Describes one or more entities that either performed or are expected to perform the activity.Set
<org.apache.commons.rdf.api.IRI> Describes an object of any kind.Optional
<org.apache.commons.rdf.api.IRI> Describes the indirect object, or target, of the activity.Optional
<org.apache.commons.rdf.api.IRI> boolean
is
(ActivityType activityType) void
replaceObject
(ActivityPubObject existing) void
replaceSubjects
(org.apache.commons.rdf.api.IRI actorsBaseSubject, SubjectProvider subjectProvider) void
replaceSubjects
(org.apache.commons.rdf.api.IRI actorsBaseSubject, SubjectProvider subjectProvider, boolean includingObjects) void
replaceSubjectsWithInternals
(SubjectProvider subjectProvider) Describes anActivityPubObject
of any kind.void
Describes one or more entities that either performed or are expected to perform the activity.void
Describes anActivityPubObject
of any kind.void
setObjects
(Set<ActivityPubObject> activityPubObject) Describes anActivityPubObject
of any kind.void
setTarget
(org.apache.commons.rdf.api.IRI target) Describes the indirect object, or target, of the activity.void
setWasAssociatedWith
(org.apache.commons.rdf.api.IRI actor) void
unify()
Ensures that audience, cc, bcc, to, bto are identical in activity and objectsMethods inherited from interface org.linkedopenactors.rdfpub.domain.commonsrdf.ActivityPubObject
addAttributedTo, addAudience, addBcc, addBto, addCc, addTo, addType, asConvertable, asGraph, getAttributedtTo, getAudience, getBaseSubject, getBcc, getBto, getCc, getContent, getExternalBaseSubject, getExternalReceivers, getInternalReceivers, getName, getName, getObjectVersion, getPublished, getReceivers, getSameAs, getSubject, getSummary, getSummary, getTo, getTypes, getWasAttributedTo, getWasGeneratedBy, getWasRevisionOf, hideBlindReceivers, isActivity, isAttributedTo, isReceiver, partialUpdate, setAttributedTo, setAudience, setBcc, setBto, setCc, setContent, setName, setName, setObjectVersion, setPublished, setSameAs, setSummary, setSummary, setTo, setType, setUpdated, setWasAttributedTo, setWasGeneratedBy, setWasRevisionOf, toString, toString
-
Method Details
-
getObject
Set<org.apache.commons.rdf.api.IRI> getObject()Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection.- Returns:
- The object of this
Activity
-
setObject
Describes anActivityPubObject
of any kind.- Parameters:
object
- (s)
-
addObject
Describes anActivityPubObject
of any kind.- Parameters:
activityPubObject
-
-
setObjects
Describes anActivityPubObject
of any kind.- Parameters:
activityPubObject
-
-
addObject
void addObject(org.apache.commons.rdf.api.IRI object) Describes anActivityPubObject
of any kind.- Parameters:
object
-
-
resolveObject
Set<ActivityPubObject> resolveObject()Describes anActivityPubObject
of any kind.- Returns:
- The object(s)
-
getActor
Set<org.apache.commons.rdf.api.IRI> getActor()Describes one or more entities that either performed or are expected to perform the activity. Any single activity can have multiple actors.- Returns:
- The actor id(s) of this
Activity
. See Also: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-actor
-
activityType
ActivityType activityType()Abstraction of the type of this activity, for convenience.- Returns:
- Abstraction of the activity type.
-
is
- Parameters:
activityType
-- Returns:
- True, if the activity has the passed type.
-
addActor
void addActor(org.apache.commons.rdf.api.IRI actor) Describes one or more entities that either performed or are expected to perform the activity. Any single activity can have multiple actors. See Also: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-actor- Parameters:
actor
-
-
setActor
Describes one or more entities that either performed or are expected to perform the activity. Any single activity can have multiple actors. See Also: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-actor- Parameters:
actor
-
-
setTarget
void setTarget(org.apache.commons.rdf.api.IRI target) Describes the indirect object, or target, of the activity. The precise meaning of the target is largely dependent on the type of action being described but will often be the object of the English preposition "to". For instance, in the activity "John added a movie to his wishlist", the target of the activity is John's wishlist. An activity can have more than one target. See Also: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-target- Parameters:
target
-
-
getTarget
Optional<org.apache.commons.rdf.api.IRI> getTarget()Describes the indirect object, or target, of the activity. The precise meaning of the target is largely dependent on the type of action being described but will often be the object of the English preposition "to". For instance, in the activity "John added a movie to his wishlist", the target of the activity is John's wishlist. An activity can have more than one target. See Also: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-target- Returns:
- The target's id.
-
setWasAssociatedWith
void setWasAssociatedWith(org.apache.commons.rdf.api.IRI actor) -
getWasAssociatedWith
Optional<org.apache.commons.rdf.api.IRI> getWasAssociatedWith() -
unify
void unify()Ensures that audience, cc, bcc, to, bto are identical in activity and objects -
replaceSubjectsWithInternals
-
replaceSubjects
void replaceSubjects(org.apache.commons.rdf.api.IRI actorsBaseSubject, SubjectProvider subjectProvider, boolean includingObjects) -
replaceSubjects
void replaceSubjects(org.apache.commons.rdf.api.IRI actorsBaseSubject, SubjectProvider subjectProvider) -
replaceObject
-