Class AgentRegistration
java.lang.Object
com.janeirodigital.sai.core.resources.ReadableResource
com.janeirodigital.sai.core.resources.CRUDResource
com.janeirodigital.sai.core.agents.AgentRegistration
- Direct Known Subclasses:
ApplicationRegistration
,SocialAgentRegistration
Abstract base instantiation of a modifiable
Agent Registration, which
can be extended for type-specific implementations (i.e. Social Agent Registration, Application Registration).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
AgentRegistration.Builder<T extends CRUDResource.Builder<T>>
Abstract builder forAgentRegistration
instances (used by subclasses). -
Field Summary
Fields inherited from class com.janeirodigital.sai.core.resources.ReadableResource
contentType, dataset, exists, httpClient, jsonLdContext, resource, saiSession, unprotected, uri
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AgentRegistration
(AgentRegistration.Builder<?> builder) Construct anAgentRegistration
instance from the providedAgentRegistration.Builder
. -
Method Summary
Modifier and TypeMethodDescriptionGenerates the URI for a new contained "child" resource in theAgentRegistration
boolean
Indicates whether or not there is anAccessGrant
linked to the registrationMethods inherited from class com.janeirodigital.sai.core.resources.CRUDResource
delete, update
Methods inherited from class com.janeirodigital.sai.core.resources.ReadableResource
checkReadableResponse, read
-
Constructor Details
-
AgentRegistration
Construct anAgentRegistration
instance from the providedAgentRegistration.Builder
.- Parameters:
builder
-AgentRegistration.Builder
to construct with- Throws:
SaiException
-
-
Method Details
-
generateContainedUri
Generates the URI for a new contained "child" resource in theAgentRegistration
- Returns:
- Generated URI
- Throws:
SaiException
-
hasAccessGrant
public boolean hasAccessGrant()Indicates whether or not there is anAccessGrant
linked to the registration- Returns:
- true when there is an access grant
-