Interface RdfPubClient
- All Known Implementing Classes:
RdfPubClientDefault
public interface RdfPubClient
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.rdf.api.IRI
create
(Actor actor, ActivityPubObject ao) Sends the passedActivityPubObject
to the actors outbox.Creates a new, empty ActivityPubObject, that can be updated and send to the outbox.discoverActor
(String oauth2Name) readActivity
(String locationOfInitialActivity) readCollection
(String subject) readCollection
(String subject, int pageSize, int startIndex) readObject
(String subject) Reads the object with the passed Domain only on this instance.resolveObject
(String subject) Reads the object with the passed Domain, independent, if it is on this instance or on any other instance!org.apache.commons.rdf.api.IRI
Creates anIRI
from the passed String.
-
Method Details
-
discoverActor
-
readActor
-
readObject
Reads the object with the passed Domain only on this instance.- Parameters:
subject
-- Returns:
- Found Object.
-
resolveObject
Reads the object with the passed Domain, independent, if it is on this instance or on any other instance!- Parameters:
subject
-- Returns:
- Found Object.
-
create
-
update
-
readActivity
-
readCollection
-
readCollection
-
createNewEmpty
ActivityPubObject createNewEmpty()Creates a new, empty ActivityPubObject, that can be updated and send to the outbox.- Returns:
- a new, empty ActivityPubObject, that can be updated and send to the outbox.
-
create
Sends the passedActivityPubObject
to the actors outbox.- Parameters:
actor
- The actor who creates the new objectao
- The Object to create.- Returns:
- The location of the newly created CREATE activity.
-
toIri
Creates anIRI
from the passed String.- Parameters:
iriString
-- Returns:
IRI
created from the passed String.
-