Uses of Class
com.janeirodigital.sai.core.exceptions.SaiException
Packages that use SaiException
Package
Description
Classes providing access to
 Agent Registries,
 Social Agent Profiles,
 Application Profiles,
 and Agent Registrations.
API for client applications
 as defined by the
 Solid Application Interoperability specification.
Classes providing access to
 Access Authorizations,
 Data Authorizations,
 Access Grants,
 Data Grants,
 and Authorization Registries.
Factories to build and access HTTP clients used by sai-java
Essential "base" classes to access to corresponding RDF Resources, that are
 extended by sai domain specific classes.
Sessions used to provide context to most sai classes and instances
Various utilities and helpers used by other sai-java classes
- 
Uses of SaiException in com.janeirodigital.sai.core.agents
Methods in com.janeirodigital.sai.core.agents that throw SaiExceptionModifier and TypeMethodDescriptionAgentRegistry.Builder.build()Build theAgentRegistryusing attributes from the Builder.ApplicationProfile.Builder.build()Build theApplicationProfileusing attributes from the Builder.ApplicationRegistration.Builder.build()Build theApplicationRegistrationusing attributes from the Builder.ReadableSocialAgentProfile.Builder.build()Build theReadableApplicationProfileusing attributes from the Builder.RegistrySet.Builder.build()Build theRegistrySetusing attributes from the Builder.SocialAgentProfile.Builder.build()Build theSocialAgentProfileusing attributes from the Builder.SocialAgentRegistration.Builder.build()Build theSocialAgentRegistrationusing attributes from the Builder.AgentRegistration.generateContainedUri()Generates the URI for a new contained "child" resource in theAgentRegistrationstatic AgentRegistryAgentRegistry.get(URI uri, SaiSession saiSession) CallAgentRegistry.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic AgentRegistryAgentRegistry.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get anAgentRegistryat the provideduristatic ApplicationProfileApplicationProfile.get(URI uri, SaiSession saiSession) CallApplicationProfile.get(URI, SaiSession, ContentType)using the application profile default content-type of JSON-LDstatic ApplicationProfileApplicationProfile.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aApplicationProfilefrom the provideduristatic ApplicationRegistrationApplicationRegistration.get(URI uri, SaiSession saiSession) CallApplicationRegistration.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic ApplicationRegistrationApplicationRegistration.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aApplicationRegistrationat the provideduristatic ReadableApplicationProfileReadableApplicationProfile.get(URI uri, SaiSession saiSession) CallReadableApplicationProfile.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic ReadableApplicationProfileReadableApplicationProfile.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableApplicationProfilefrom the provideduri.ReadableApplicationRegistration.get(URI uri, SaiSession saiSession) CallReadableApplicationRegistration.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalReadableApplicationRegistration.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableApplicationRegistrationfrom the provideduri.static ReadableSocialAgentProfileReadableSocialAgentProfile.get(URI uri, SaiSession saiSession) CallReadableSocialAgentProfile.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic ReadableSocialAgentProfileReadableSocialAgentProfile.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableSocialAgentProfilefrom the provideduri.ReadableSocialAgentRegistration.get(URI uri, SaiSession saiSession) CallReadableSocialAgentRegistration.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalReadableSocialAgentRegistration.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableSocialAgentRegistrationfrom the provideduri.static RegistrySetRegistrySet.get(URI uri, SaiSession saiSession) CallRegistrySet.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic RegistrySetRegistrySet.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aRegistrySetat the provideduristatic SocialAgentProfileSocialAgentProfile.get(URI uri, SaiSession saiSession) CallSocialAgentProfile.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic SocialAgentProfileSocialAgentProfile.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aSocialAgentProfileat the provideduristatic SocialAgentRegistrationSocialAgentRegistration.get(URI uri, SaiSession saiSession) CallSocialAgentRegistration.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic SocialAgentRegistrationSocialAgentRegistration.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aSocialAgentRegistrationfrom the provideduri.protected voidAgentRegistration.Builder.populateFromDataset()Populates the common fields of theAgentRegistrationbased on the associated Jena resource.protected voidReadableAgentRegistration.Builder.populateFromDataset()Populates the common fields of theReadableAgentRegistrationbased on the associated Jena resource.protected voidSocialAgentRegistration.Builder.populateFromDataset()Populates the fields of theSocialAgentRegistration.Builderbased on the associated Jena resource.AgentRegistry.reload()Reload a new instance ofAgentRegistryusing the attributes of the current instanceApplicationProfile.reload()Reload a new instance ofApplicationProfileusing the attributes of the current instanceApplicationRegistration.reload()Reload a new instance ofApplicationRegistrationusing the attributes of the current instanceReadableApplicationProfile.reload()Reload a new instance ofReadableApplicationProfileusing the attributes of the current instanceReadableApplicationRegistration.reload()Reload a new instance ofReadableApplicationRegistrationusing the attributes of the current instanceReadableSocialAgentProfile.reload()Reload a new instance ofReadableSocialAgentProfileusing the attributes of the current instanceReadableSocialAgentRegistration.reload()Reload a new instance ofReadableSocialAgentRegistrationusing the attributes of the current instanceRegistrySet.reload()Reload a new instance ofRegistrySetusing the attributes of the current instanceSocialAgentProfile.reload()Reload a new instance ofSocialAgentProfileusing the attributes of the current instanceSocialAgentRegistration.reload()Reload a new instance ofSocialAgentRegistrationusing the attributes of the current instanceAgentRegistry.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theAgentRegistry.Builder.ApplicationProfile.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theApplicationProfile.Builder.ApplicationRegistration.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theApplicationRegistration.Builder.ReadableSocialAgentProfile.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theReadableSocialAgentProfile.Builder.RegistrySet.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theRegistrySet.Builder.SocialAgentProfile.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theSocialAgentProfile.Builder.SocialAgentRegistration.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theSocialAgentRegistration.Builder.Constructors in com.janeirodigital.sai.core.agents that throw SaiExceptionModifierConstructorDescriptionprotectedAgentRegistration(AgentRegistration.Builder<?> builder) Construct anAgentRegistrationinstance from the providedAgentRegistration.Builder.AgentRegistry(AgentRegistry.Builder builder) Construct anAgentRegistryinstance from the providedAgentRegistry.Builder.protectedConstruct aReadableAgentRegistrationinstance from the provideduri. - 
Uses of SaiException in com.janeirodigital.sai.core.application
Constructors in com.janeirodigital.sai.core.application that throw SaiExceptionModifierConstructorDescriptionApplication(URI id, boolean validateSsl, boolean validateShapeTrees, boolean refreshTokens, com.janeirodigital.sai.authentication.AuthorizedSessionAccessor sessionAccessor) Construct a SAI compatible Application - 
Uses of SaiException in com.janeirodigital.sai.core.authorizations
Methods in com.janeirodigital.sai.core.authorizations that throw SaiExceptionModifier and TypeMethodDescriptionvoidAuthorizationRegistry.add(AccessAuthorization accessAuthorization) Add anAccessAuthorizationto theAuthorizationRegistry.AccessAuthorization.Builder.build()Build theAccessAuthorizationusing attributes from the Builder.AccessGrant.Builder.build()AuthorizationRegistry.Builder.build()Build theAuthorizationRegistryusing attributes from the Builder.DataAuthorization.Builder.build()DataGrant.Builder.build()Build theDataGrantusing attributes from the Builder.ReadableAccessGrant.Builder.build()Build theReadableAccessGrantusing attributes from the Builder.ReadableDataGrant.Builder.build()Build theReadableDataGrantusing attributes from the Builder.AccessAuthorization.generateGrant(AgentRegistration granteeRegistration, AgentRegistry agentRegistry, List<DataRegistry> dataRegistries) DataAuthorization.generateGrants(AccessAuthorization accessAuthorization, AgentRegistration granteeRegistration, AgentRegistry agentRegistry, List<DataRegistry> dataRegistries) Generate one or moreDataGrants for thisDataAuthorization.static AccessAuthorizationAccessAuthorization.get(URI uri, SaiSession saiSession) CallAccessAuthorization.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic AccessAuthorizationAccessAuthorization.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get anAccessAuthorizationat the provideduristatic AccessGrantAccessGrant.get(URI uri, SaiSession saiSession) CallAccessGrant.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic AccessGrantAccessGrant.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get anAccessGrantat the provideduristatic AuthorizationRegistryAuthorizationRegistry.get(URI uri, SaiSession saiSession) CallAuthorizationRegistry.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic AuthorizationRegistryAuthorizationRegistry.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aAuthorizationRegistryat the provideduristatic DataAuthorizationDataAuthorization.get(URI uri, SaiSession saiSession) CallDataAuthorization.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic DataAuthorizationDataAuthorization.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aDataAuthorizationat the provideduristatic DataGrantDataGrant.get(URI uri, SaiSession saiSession) CallDataGrant.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic DataGrantDataGrant.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aDataGrantat the provideduristatic ReadableAccessGrantReadableAccessGrant.get(URI uri, SaiSession saiSession) CallReadableAccessGrant.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic ReadableAccessGrantReadableAccessGrant.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableAccessGrantat the provideduristatic ReadableDataGrantReadableDataGrant.get(URI uri, SaiSession saiSession) CallReadableDataGrant.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic ReadableDataGrantReadableDataGrant.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableDataGrantat the provideduriAllFromRegistryDataGrant.getDataInstances()Returns aDataInstanceListthat iterates over all of theDataInstances for a given shape tree type in theDataRegistrationspecified in this data grantInheritedDataGrant.getDataInstances()Returns aDataInstanceListthat iterates over the list ofDataInstances inherited from theDataInstances associated with the parentReadableDataGrantthat this grant inherits from.abstract DataInstanceListReadableDataGrant.getDataInstances()Abstract method implemented by specific types of data grants, that allow theDataInstances permitted by that grant to be iterated.AccessAuthorization.reload()Reload a new instance ofAccessAuthorizationusing the attributes of the current instanceAccessGrant.reload()Reload a new instance ofAccessGrantusing the attributes of the current instanceAuthorizationRegistry.reload()Reload a new instance ofAuthorizationRegistryusing the attributes of the current instanceDataAuthorization.reload()Reload a new instance ofDataAuthorizationusing the attributes of the current instanceDataGrant.reload()Reload a new instance ofDataGrantusing the attributes of the current instanceReadableAccessGrant.reload()Reload a new instance ofReadableAccessGrantusing the attributes of the current instanceReadableDataGrant.reload()Reload a new instance ofReadableDataGrantusing the attributes of the current instanceAccessAuthorization.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theAccessAuthorization.Builder.AccessGrant.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theAccessGrant.Builder.AuthorizationRegistry.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theAuthorizationRegistry.Builder.DataAuthorization.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theDataAuthorization.Builder.DataGrant.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theDataGrant.Builder.ReadableAccessGrant.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theReadableAccessGrant.Builder.ReadableDataGrant.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theReadableDataGrant.Builder.Constructors in com.janeirodigital.sai.core.authorizations that throw SaiExceptionModifierConstructorDescriptionprotectedConstruct anAllFromRegistryDataGrantfrom the providedReadableDataGrant.Builder.protectedConstruct anInheritableDataGrantfrom the providedReadableDataGrant.Builder.protectedConstruct anInheritedDataGrantfrom the providedReadableDataGrant.Builder.protectedConstruct aReadableDataGrantinstance from the providedReadableDataGrant.Builder.protectedConstruct aSelectedFromRegistryDataGrantfrom the providedReadableDataGrant.Builder. - 
Uses of SaiException in com.janeirodigital.sai.core.data
Methods in com.janeirodigital.sai.core.data that throw SaiExceptionModifier and TypeMethodDescriptionvoidDataRegistry.add(DataRegistration registration) Add aDataRegistrationto theDataRegistryvoidDataInstance.addChildInstance(DataInstance childInstance) Add a child data instance by adding a shape tree reference relationship to the instance graph, as authorized by an inherited data grant.BasicDataInstance.Builder.build()DataRegistration.Builder.build()Build theDataRegistrationusing attributes from the Builder.DataRegistry.Builder.build()Build theDataRegistryusing attributes from the Builder.voidDataInstance.delete()Delete the correspondingDataInstanceresource over HTTP .DataInstance.findChildGrant(URI shapeTreeUri) DataInstance.findChildReferences(com.janeirodigital.shapetrees.core.validation.ShapeTreeReference reference) Searches the instance graph for instances of the provided shape tree reference and returns the associated targets (objects) they link tostatic URIDataInstance.generateUri(ReadableDataGrant dataGrant) Generate the URI for a newDataInstanceas permitted by the provideddataGrant, with a generated UUID as resource name.static URIDataInstance.generateUri(ReadableDataGrant dataGrant, String resourceName) Generate the URI for a newDataInstanceas permitted by the provideddataGrant.static BasicDataInstanceBasicDataInstance.get(URI uri, SaiSession saiSession, ReadableDataGrant dataGrant, DataInstance parent) static BasicDataInstanceBasicDataInstance.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType, ReadableDataGrant dataGrant, DataInstance parent) Get aBasicDataInstanceat the provideduristatic DataRegistrationDataRegistration.get(URI uri, SaiSession saiSession) CallDataRegistration.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic DataRegistrationDataRegistration.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aDataRegistrationat the provideduristatic DataRegistryDataRegistry.get(URI uri, SaiSession saiSession) CallDataRegistry.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic DataRegistryDataRegistry.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aDataRegistryat the provideduristatic ReadableDataRegistrationReadableDataRegistration.get(URI uri, SaiSession saiSession) CallReadableDataRegistration.get(URI, SaiSession, ContentType)without specifying a desired content type for retrievalstatic ReadableDataRegistrationReadableDataRegistration.get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableDataRegistrationat the provideduriDataInstance.getChildInstances(URI shapeTreeUri) Gets a list of "child" data instances that are associated with the current instance via shape tree reference as part of an inherited data grant.DataInstance.getChildReferences(URI shapeTreeUri) Gets a list of references to "child" data instances based on a shape tree reference in the shape tree identified by the providedshapeTreeUri.booleanDataInstance.hasAccessible(URI shapeTreeUri) DataRegistration.reload()Reload a new instance ofDataRegistrationusing the attributes of the current instanceDataRegistry.reload()Reload a new instance ofDataRegistryusing the attributes of the current instanceReadableDataRegistration.reload()Reload a new instance ofReadableDataRegistrationusing the attributes of the current instancevoidDataInstance.removeChildInstance(DataInstance childInstance) Remove a child data instance by removing a shape tree reference relationship from the instance graph.DataInstance.Builder.setDataGrant(ReadableDataGrant dataGrant) Set theReadableDataGrantassociated with theDataInstance.DataRegistration.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theDataRegistration.Builder.DataRegistry.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Set the Jena model and use it to populate attributes of theDataRegistry.Builder.voidDataInstance.update()Update the correspondingDataInstanceresource over HTTP with the current contents of thedataset.Constructors in com.janeirodigital.sai.core.data that throw SaiExceptionModifierConstructorDescriptionprotectedBuilder(DataInstance dataInstance) Initialize builder with aDataInstanceprotectedDataInstance(DataInstance.Builder<?> builder)  - 
Uses of SaiException in com.janeirodigital.sai.core.http
Methods in com.janeirodigital.sai.core.http that throw SaiExceptionModifier and TypeMethodDescriptionokhttp3.OkHttpClientHttpClientFactory.get()okhttp3.OkHttpClientHttpClientFactory.get(boolean validateSsl, boolean validateShapeTrees, boolean refreshTokens) Factory to provide an OkHttpClient configured to enable or disable SSL and/or Shape Tree validation based on the provided options.okhttp3.OkHttpClientHttpClientFactory.getClientForConfiguration(boolean validateSsl, boolean validateShapeTrees, boolean refreshTokens) Build and return an OkHttpClient based on the provided options for SSL Validation, Shape Tree Validation, and Token Refresh.static URLUrlUtils.stringToUrl(String urlString) Converts a string to a URLstatic URLCoverts a URI to a URLConstructors in com.janeirodigital.sai.core.http that throw SaiExceptionModifierConstructorDescriptionHttpClientFactory(boolean validateSsl, boolean validateShapeTrees, boolean refreshTokens) HttpClientFactory(boolean validateSsl, boolean validateShapeTrees, boolean refreshTokens, com.janeirodigital.sai.authentication.AuthorizedSessionAccessor sessionAccessor)  - 
Uses of SaiException in com.janeirodigital.sai.core.resources
Methods in com.janeirodigital.sai.core.resources that throw SaiExceptionModifier and TypeMethodDescriptionstatic okhttp3.ResponseReadableResource.checkReadableResponse(okhttp3.Response response) Checks the response when fetching data for a readable resourcevoidImmutableResource.create()Create the corresponding resource over HTTP with the current contents ofdataset.voidCRUDResource.delete()Deletes the corresponding resource over HTTPvoidImmutableResource.delete()Deletes the corresponding resource over HTTPprotected static okhttp3.ResponseReadableResource.read(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType, boolean unprotected) Reads the remote RDF resource aturi, providing credentials from theSaiSessionwhenunprotectedis not true.ReadableResource.Builder.setDataset(okhttp3.Response response) Extracts a Jena Model from an HTTP response and callsReadableResource.Builder.setDataset(Model)after extractionReadableResource.Builder.setDataset(org.apache.jena.rdf.model.Model dataset) Jena Model that is used to initialize attributes of inheriting builders rather than set them manually.voidCRUDResource.update()Updates the corresponding resource over HTTP with the current contents ofdataset.Constructors in com.janeirodigital.sai.core.resources that throw SaiExceptionModifierConstructorDescriptionCRUDResource(CRUDResource.Builder<?> builder) Construct a CRUD resource using the providedCRUDResource.Builder.ImmutableResource(ImmutableResource.Builder<?> builder) Construct an Immutable resource using the providedImmutableResource.Builder.protectedReadableResource(ReadableResource.Builder<?> builder) Construct a Readable resource using the providedReadableResource.Builder. - 
Uses of SaiException in com.janeirodigital.sai.core.sessions
Methods in com.janeirodigital.sai.core.sessions that throw SaiExceptionModifier and TypeMethodDescriptionokhttp3.OkHttpClientSaiSession.getHttpClient()Get an OkHttpClient from theHttpClientFactorybased on the default configuration provided when the client factory was initialized. - 
Uses of SaiException in com.janeirodigital.sai.core.utils
Methods in com.janeirodigital.sai.core.utils that throw SaiExceptionModifier and TypeMethodDescriptionvoidRegistrationList.populate()Populate the internal list of registration URIs based on links to registrations in the graph of the registry