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 classAbstract builder forReadableAgentRegistrationinstances (used by subclasses). -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final URIprotected final URIprotected final OffsetDateTimeprotected final URIprotected final URIprotected final OffsetDateTimeFields inherited from class com.janeirodigital.sai.core.resources.ReadableResource
contentType, dataset, exists, httpClient, jsonLdContext, resource, saiSession, unprotected, uri -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstruct aReadableAgentRegistrationinstance from the provideduri. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether or not there is anAccessGrantlinked 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 aReadableAgentRegistrationinstance from the provideduri.- Parameters:
builder-ReadableAgentRegistration.Builderto construct with- Throws:
SaiException
-
-
Method Details
-
hasAccessGrant
public boolean hasAccessGrant()Indicates whether or not there is anAccessGrantlinked to the registration- Returns:
- true when there is an access grant
-