All Superinterfaces:
ActivityPubObject
All Known Subinterfaces:
Instance
All Known Implementing Classes:
ActorDefault, InstanceDefault

public interface Actor extends ActivityPubObject
  • Method Details

    • getBaseSubject

      org.apache.commons.rdf.api.IRI getBaseSubject()
      An Actor also has Versions, so the ActivityPubObject.getSubject() Method normally returns the subject of the current version. But sometimes you want the base url without the version 'extension'. Then you can use this method.
      Returns:
      Actor base Subject
    • getOutbox

      org.apache.commons.rdf.api.IRI getOutbox()
      Gives you the outbox of the actor
      Returns:
      The outbox of the actor
    • setOutbox

      void setOutbox(org.apache.commons.rdf.api.IRI outboxIri)
    • getInbox

      org.apache.commons.rdf.api.IRI getInbox()
      Gives you the inbox of the actor
      Returns:
      The inbox of the actor
    • setInbox

      void setInbox(org.apache.commons.rdf.api.IRI inboxIri)
    • getFollowing

      org.apache.commons.rdf.api.IRI getFollowing()
    • getFollowers

      org.apache.commons.rdf.api.IRI getFollowers()
    • getLiked

      org.apache.commons.rdf.api.IRI getLiked()
    • getOauth2IssuerUserId

      Optional<String> getOauth2IssuerUserId()
      Returns:
      The unique id of the user.
    • setOauth2IssuerUserId

      void setOauth2IssuerUserId(String userId)
    • setPreferredUsername

      void setPreferredUsername(String string)
    • getPreferredUsername

      Optional<String> getPreferredUsername()
    • getPublicKey

      Optional<org.apache.commons.rdf.api.IRI> getPublicKey()
    • setPublicKey

      void setPublicKey(PublicKey endpoints)
    • getEndpoints

      Optional<org.apache.commons.rdf.api.IRI> getEndpoints()
    • setEndpoints

      void setEndpoints(Endpoints endpoints)
    • resolveEndpoints

      Optional<Endpoints> resolveEndpoints()