Interface ActivityPubStore

All Known Implementing Classes:
ActivityPubStoreDefault

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(org.apache.commons.rdf.api.IRI collection, org.apache.commons.rdf.api.IRI item, String logMsg)
    • getCollection

      List<org.apache.commons.rdf.api.IRI> getCollection(org.apache.commons.rdf.api.BlankNodeOrIRI graphName, org.apache.commons.rdf.api.IRI collection)
    • findCollection

      Set<org.apache.commons.rdf.api.IRI> 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)
    • 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)
    • findAll

      Set<ActivityPubObject> findAll(Set<org.apache.commons.rdf.api.IRI> subject)
    • 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)