Schnittstelle ActivityPubObject

Alle Superschnittstellen:
RdfObject
Alle bekannten Unterschnittstellen:
Activity, Actor, Instance, OrderedCollectionPage

public interface ActivityPubObject extends RdfObject
  • Methodendetails

    • types

      Set<IRI> types()
      Angegeben von:
      types in Schnittstelle RdfObject
      Gibt zurück:
      The type of the actor
    • getAttributedtTo

      Set<IRI> getAttributedtTo()
    • addAttributedTo

      void addAttributedTo(IRI attributedtTo)
    • getName

      Optional<String> getName()
    • setName

      void setName(String name)
    • getSummary

      Optional<String> getSummary()
    • setSummary

      void setSummary(String summary)
    • getPublished

      Optional<Instant> getPublished()
    • setPublished

      void setPublished(Instant instant)
    • getTo

      Set<IRI> getTo()
    • setTo

      void setTo(Set<IRI> to)
    • getCc

      Set<IRI> getCc()
    • setCc

      void setCc(Set<IRI> cc)
    • getBcc

      Set<IRI> getBcc()
    • setBcc

      void setBcc(Set<IRI> bcc)
    • getBto

      Set<IRI> getBto()
    • setBto

      void setBto(Set<IRI> bto)
    • getReceivers

      Set<IRI> getReceivers()
    • getAudience

      Set<IRI> getAudience()
    • setAudience

      void setAudience(Set<IRI> audience)
    • hideBlindReceivers

      void hideBlindReceivers()
      Removes AS.bcc() AND AS.bto()
    • isAttributedTo

      boolean isAttributedTo(IRI requestedActorId)
      Checks, if the passed ActorId is in the AS.attributedTo() of the ActivityPubObject.
      Parameter:
      requestedActorId -
      Gibt zurück:
      True, if the passed ActorId is in the AS.attributedTo() of the ActivityPubObject.
    • isReceiver

      boolean isReceiver(IRI requestedActorId)
      Checks, if the passed ActorId is in the AS.to(), AS.bto(), AS.cc(), AS.bcc() of the ActivityPubObject.
      Parameter:
      requestedActorId -
      Gibt zurück:
      True, if the passed ActorId is in the AS.to(), AS.bto(), AS.cc(), AS.bcc() of the ActivityPubObject.
    • isActivity

      boolean isActivity()
    • references

      boolean references(IRI referencedObjectId)
      Parameter:
      referencedObjectId - The id of the potentially referenced object.
      Gibt zurück:
      True, if this ActivityPubObject has any predicate, thats value equals the passed referencedObjectId.
    • replaceReferences

      void replaceReferences(Map<IRI,IRI> mappings)
      We have to relace subjects of the objects. Therefore we also have to renew internal references.
      Parameter:
      mappings -
    • unify

      void unify(ActivityPubObject activity)