Class ReadableAgentRegistration
java.lang.Object
com.janeirodigital.sai.core.resources.ReadableResource
com.janeirodigital.sai.core.agents.ReadableAgentRegistration
- Direct Known Subclasses:
ReadableApplicationRegistration
,ReadableSocialAgentRegistration
Readable abstract base instantiation of an
Agent Registration, which
can be extended for type-specific readable implementations (i.e. Social Agent Registration, Application Registration).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Abstract builder forReadableAgentRegistration
instances (used by subclasses). -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final URI
protected final URI
protected final OffsetDateTime
protected final URI
protected final URI
protected final OffsetDateTime
Fields inherited from class com.janeirodigital.sai.core.resources.ReadableResource
contentType, dataset, exists, httpClient, jsonLdContext, resource, saiSession, unprotected, uri
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Construct aReadableAgentRegistration
instance from the provideduri
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether or not there is anAccessGrant
linked to the registrationMethods inherited from class com.janeirodigital.sai.core.resources.ReadableResource
checkReadableResponse, read
-
Field Details
-
registeredBy
-
registeredWith
-
registeredAt
-
updatedAt
-
registeredAgent
-
accessGrantUri
-
-
Constructor Details
-
ReadableAgentRegistration
protected ReadableAgentRegistration(ReadableAgentRegistration.Builder<?> builder) throws SaiException Construct aReadableAgentRegistration
instance from the provideduri
.- Parameters:
builder
-ReadableAgentRegistration.Builder
to construct with- Throws:
SaiException
-
-
Method Details
-
hasAccessGrant
public boolean hasAccessGrant()Indicates whether or not there is anAccessGrant
linked to the registration- Returns:
- true when there is an access grant
-