Interface ActivityPubStore


public interface ActivityPubStore
  • Method Details

    • add

      void add(ActivityPubObject ao1, String logMsg)
    • add

      void add(Set<org.apache.commons.rdf.api.Triple> newTriples, String logMsg)
    • update

      void update(ActivityPubObject ao1, String logMsg)
    • addCollectionItem

      void addCollectionItem(CollectionInfo collectionInfo, org.apache.commons.rdf.api.IRI item, String logMsg)
    • getCollection

      List<org.apache.commons.rdf.api.IRI> getCollection(CollectionInfo collectionInfo)
    • getCollection

      OrderedCollectionPage getCollection(Collection<org.apache.commons.rdf.api.IRI> irisToResolve, org.apache.commons.rdf.api.IRI namedGraphToUse, Integer pageSize, Integer startIndex, Integer deep)
    • findCollection

      Set<PersistableRdfPubCollection> findCollection(org.apache.commons.rdf.api.IRI member)
      Searches for Collections, where the passed member is a member of.
      Parameters:
      member -
      Returns:
      List of Collections, where the passed member is a member of.
    • find

      Optional<ActivityPubObject> find(org.apache.commons.rdf.api.IRI subject)
    • find

      Optional<ActivityPubObject> find(org.apache.commons.rdf.api.IRI subject, int deep)
      Searches for the ActivityPubObject with the passed subject.
      Parameters:
      subject -
      deep - up to which hierarchy level should object references be resolved ?
      Returns:
      found ActivityPubObject.
    • find

      Optional<ActivityPubObject> find(org.apache.commons.rdf.api.IRI subject, org.apache.commons.rdf.api.IRI predicate, org.apache.commons.rdf.api.RDFTerm object)
      Searches for the ActivityPubObject that matches the passed triple.
      Parameters:
      subject -
      predicate -
      object -
      Returns:
      found ActivityPubObject.
    • find

      Set<ActivityPubObject> find(org.apache.commons.rdf.api.IRI predicate, org.apache.commons.rdf.api.RDFTerm object)
      Finds all subjects that match the passed predicate/object.
      Parameters:
      predicate -
      object -
      Returns:
      Set of ActivityPubObjects that contains the predicate/object. NOTE the ActivityPubObjects have only one predicate!
    • findAll

      Set<ActivityPubObject> findAll(Set<org.apache.commons.rdf.api.IRI> subjectsParam)
      Find object with the passed subjects in the actors store.
      Parameters:
      subjectsParam - Subjects to search for.
      Returns:
      Found ActivityPubObjects
    • findAll

      Set<ActivityPubObject> findAll(Set<org.apache.commons.rdf.api.IRI> subjectsParam, int deep)
      Find object with the passed subjects in the actors store and resolve dependencies up to the passed depth.
      Parameters:
      subjectsParam - Subjects to search for.
      deep - up to which hierarchy level should object references be resolved ?
      Returns:
      Found ActivityPubObjects
    • findLatestRevision

      Optional<ActivityPubObject> findLatestRevision(org.apache.commons.rdf.api.IRI pointerSubject)
    • findWholeGraph

      Optional<ActivityPubObject> findWholeGraph(org.apache.commons.rdf.api.IRI subject)
      ATTENTION!! This reads the whole grap of the actor !
      Parameters:
      subject -
      Returns:
    • getOwner

      org.apache.commons.rdf.api.IRI getOwner()
    • dump

      org.apache.commons.rdf.api.Graph dump(org.apache.commons.rdf.api.IRI subject)
    • getGraphNames

      Set<org.apache.commons.rdf.api.BlankNodeOrIRI> getGraphNames()
      Returns:
      Set of all known graphNames.