Interface RdfPubClient

All Known Implementing Classes:
RdfPubClientDefault

public interface RdfPubClient
  • Method Details

    • discoverActor

      Optional<Actor> discoverActor(String oauth2Name)
    • readActor

      Optional<Actor> readActor(String subject)
    • readObject

      Optional<ActivityPubObject> readObject(String subject)
      Reads the object with the passed Domain only on this instance.
      Parameters:
      subject -
      Returns:
      Found Object.
    • resolveObject

      Optional<ActivityPubObject> resolveObject(String subject)
      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

      String create(Actor actor, String resource)
    • update

      String update(Actor actor, String resource)
    • readActivity

      Optional<Activity> readActivity(String locationOfInitialActivity)
    • readCollection

      Set<ActivityPubObject> readCollection(String subject)
    • readCollection

      Set<ActivityPubObject> readCollection(String subject, int pageSize, int startIndex)
    • 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

      org.apache.commons.rdf.api.IRI create(Actor actor, ActivityPubObject ao)
      Sends the passed ActivityPubObject to the actors outbox.
      Parameters:
      actor - The actor who creates the new object
      ao - The Object to create.
      Returns:
      The location of the newly created CREATE activity.
    • toIri

      org.apache.commons.rdf.api.IRI toIri(String iriString)
      Creates an IRI from the passed String.
      Parameters:
      iriString -
      Returns:
      IRI created from the passed String.