Class ReadableSocialAgentRegistration
java.lang.Object
com.janeirodigital.sai.core.resources.ReadableResource
com.janeirodigital.sai.core.agents.ReadableAgentRegistration
com.janeirodigital.sai.core.agents.ReadableSocialAgentRegistration
Readable instantiation of a
Social Agent Registration.
-
Field Summary
Fields inherited from class com.janeirodigital.sai.core.agents.ReadableAgentRegistration
accessGrantUri, registeredAgent, registeredAt, registeredBy, registeredWith, updatedAtFields inherited from class com.janeirodigital.sai.core.resources.ReadableResource
contentType, dataset, exists, httpClient, jsonLdContext, resource, saiSession, unprotected, uri -
Method Summary
Modifier and TypeMethodDescriptionget(URI uri, SaiSession saiSession) Callget(URI, SaiSession, ContentType)without specifying a desired content type for retrievalget(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableSocialAgentRegistrationfrom the provideduri.reload()Reload a new instance ofReadableSocialAgentRegistrationusing the attributes of the current instanceMethods inherited from class com.janeirodigital.sai.core.agents.ReadableAgentRegistration
hasAccessGrantMethods inherited from class com.janeirodigital.sai.core.resources.ReadableResource
checkReadableResponse, read
-
Method Details
-
get
public static ReadableSocialAgentRegistration get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) throws SaiException, com.janeirodigital.sai.httputils.SaiHttpNotFoundException Get aReadableSocialAgentRegistrationfrom the provideduri.- Parameters:
uri- URI to generate theReadableSocialAgentRegistrationfromsaiSession-SaiSessionto assigncontentType-ContentTypeto use for retrieval- Returns:
ReadableSocialAgentRegistration- Throws:
SaiExceptioncom.janeirodigital.sai.httputils.SaiHttpNotFoundException
-
get
public static ReadableSocialAgentRegistration get(URI uri, SaiSession saiSession) throws SaiException, com.janeirodigital.sai.httputils.SaiHttpNotFoundException Callget(URI, SaiSession, ContentType)without specifying a desired content type for retrieval- Parameters:
uri- URI of theReadableSocialAgentRegistrationto getsaiSession-SaiSessionto assign- Returns:
- Retrieved
ReadableSocialAgentRegistration - Throws:
SaiExceptioncom.janeirodigital.sai.httputils.SaiHttpNotFoundException
-
reload
public ReadableSocialAgentRegistration reload() throws com.janeirodigital.sai.httputils.SaiHttpNotFoundException, SaiExceptionReload a new instance ofReadableSocialAgentRegistrationusing the attributes of the current instance- Returns:
- Reloaded
ReadableSocialAgentRegistration - Throws:
com.janeirodigital.sai.httputils.SaiHttpNotFoundExceptionSaiException
-