Class AgentRegistration.Builder<T extends CRUDResource.Builder<T>>

Direct Known Subclasses:
ApplicationRegistration.Builder, SocialAgentRegistration.Builder
Enclosing class:
AgentRegistration

protected abstract static class AgentRegistration.Builder<T extends CRUDResource.Builder<T>> extends CRUDResource.Builder<T>
Abstract builder for AgentRegistration instances (used by subclasses). See SocialAgentRegistration and ApplicationRegistration
  • Field Details

    • registeredBy

      protected URI registeredBy
    • registeredWith

      protected URI registeredWith
    • registeredAt

      protected OffsetDateTime registeredAt
    • updatedAt

      protected OffsetDateTime updatedAt
    • registeredAgent

      protected URI registeredAgent
    • accessGrantUri

      protected URI accessGrantUri
  • Constructor Details

  • Method Details

    • setRegisteredBy

      public T setRegisteredBy(URI socialAgentUri)
      Set the social agent that registered the agent registration.
      Parameters:
      socialAgentUri - URI of the social agent that added the registration
      See Also:
    • setRegisteredWith

      public T setRegisteredWith(URI applicationUri)
      Set the application that registered the agent registration.
      Parameters:
      applicationUri - URI of the application that was use to add the registration
      See Also:
    • setRegisteredAt

      public T setRegisteredAt(OffsetDateTime registeredAt)
      Set the time that the agent registration was created.
      Parameters:
      registeredAt - when the agent registration was created
      See Also:
    • setUpdatedAt

      public T setUpdatedAt(OffsetDateTime updatedAt)
      Set the time that the agent registration was updated.
      Parameters:
      updatedAt - when the agent registration was updated
      See Also:
    • setRegisteredAgent

      public T setRegisteredAgent(URI agentUri)
      Set the registered agent that is the subject of the agent registration
      Parameters:
      agentUri - URI of the agent that was registered
      See Also:
    • setAccessGrant

      public T setAccessGrant(URI accessGrantUri)
      Set the access grant for the agent registration
      Parameters:
      accessGrantUri - URI of the access grant
      See Also:
    • populateFromDataset

      protected void populateFromDataset() throws SaiException
      Populates the common fields of the AgentRegistration based on the associated Jena resource.
      Throws:
      SaiException
    • populateDataset

      protected void populateDataset()
      Populates the Jena dataset graph with the attributes from the Builder