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 classAgentRegistration.Builder<T extends CRUDResource.Builder<T>>Abstract builder forAgentRegistrationinstances (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
ConstructorsModifierConstructorDescriptionprotectedAgentRegistration(AgentRegistration.Builder<?> builder) Construct anAgentRegistrationinstance from the providedAgentRegistration.Builder. -
Method Summary
Modifier and TypeMethodDescriptionGenerates the URI for a new contained "child" resource in theAgentRegistrationbooleanIndicates whether or not there is anAccessGrantlinked to the registrationMethods inherited from class com.janeirodigital.sai.core.resources.CRUDResource
delete, updateMethods inherited from class com.janeirodigital.sai.core.resources.ReadableResource
checkReadableResponse, read
-
Constructor Details
-
AgentRegistration
Construct anAgentRegistrationinstance from the providedAgentRegistration.Builder.- Parameters:
builder-AgentRegistration.Builderto 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 anAccessGrantlinked to the registration- Returns:
- true when there is an access grant
-