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 theAgentRegistry
using attributes from the Builder.ApplicationProfile.Builder.build()
Build theApplicationProfile
using attributes from the Builder.ApplicationRegistration.Builder.build()
Build theApplicationRegistration
using attributes from the Builder.ReadableSocialAgentProfile.Builder.build()
Build theReadableApplicationProfile
using attributes from the Builder.RegistrySet.Builder.build()
Build theRegistrySet
using attributes from the Builder.SocialAgentProfile.Builder.build()
Build theSocialAgentProfile
using attributes from the Builder.SocialAgentRegistration.Builder.build()
Build theSocialAgentRegistration
using attributes from the Builder.AgentRegistration.generateContainedUri()
Generates the URI for a new contained "child" resource in theAgentRegistration
static AgentRegistry
AgentRegistry.get
(URI uri, SaiSession saiSession) CallAgentRegistry.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic AgentRegistry
AgentRegistry.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get anAgentRegistry
at the provideduri
static ApplicationProfile
ApplicationProfile.get
(URI uri, SaiSession saiSession) CallApplicationProfile.get(URI, SaiSession, ContentType)
using the application profile default content-type of JSON-LDstatic ApplicationProfile
ApplicationProfile.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aApplicationProfile
from the provideduri
static ApplicationRegistration
ApplicationRegistration.get
(URI uri, SaiSession saiSession) CallApplicationRegistration.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic ApplicationRegistration
ApplicationRegistration.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aApplicationRegistration
at the provideduri
static ReadableApplicationProfile
ReadableApplicationProfile.get
(URI uri, SaiSession saiSession) CallReadableApplicationProfile.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic ReadableApplicationProfile
ReadableApplicationProfile.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableApplicationProfile
from 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 aReadableApplicationRegistration
from the provideduri
.static ReadableSocialAgentProfile
ReadableSocialAgentProfile.get
(URI uri, SaiSession saiSession) CallReadableSocialAgentProfile.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic ReadableSocialAgentProfile
ReadableSocialAgentProfile.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableSocialAgentProfile
from 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 aReadableSocialAgentRegistration
from the provideduri
.static RegistrySet
RegistrySet.get
(URI uri, SaiSession saiSession) CallRegistrySet.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic RegistrySet
RegistrySet.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aRegistrySet
at the provideduri
static SocialAgentProfile
SocialAgentProfile.get
(URI uri, SaiSession saiSession) CallSocialAgentProfile.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic SocialAgentProfile
SocialAgentProfile.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aSocialAgentProfile
at the provideduri
static SocialAgentRegistration
SocialAgentRegistration.get
(URI uri, SaiSession saiSession) CallSocialAgentRegistration.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic SocialAgentRegistration
SocialAgentRegistration.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aSocialAgentRegistration
from the provideduri
.protected void
AgentRegistration.Builder.populateFromDataset()
Populates the common fields of theAgentRegistration
based on the associated Jena resource.protected void
ReadableAgentRegistration.Builder.populateFromDataset()
Populates the common fields of theReadableAgentRegistration
based on the associated Jena resource.protected void
SocialAgentRegistration.Builder.populateFromDataset()
Populates the fields of theSocialAgentRegistration.Builder
based on the associated Jena resource.AgentRegistry.reload()
Reload a new instance ofAgentRegistry
using the attributes of the current instanceApplicationProfile.reload()
Reload a new instance ofApplicationProfile
using the attributes of the current instanceApplicationRegistration.reload()
Reload a new instance ofApplicationRegistration
using the attributes of the current instanceReadableApplicationProfile.reload()
Reload a new instance ofReadableApplicationProfile
using the attributes of the current instanceReadableApplicationRegistration.reload()
Reload a new instance ofReadableApplicationRegistration
using the attributes of the current instanceReadableSocialAgentProfile.reload()
Reload a new instance ofReadableSocialAgentProfile
using the attributes of the current instanceReadableSocialAgentRegistration.reload()
Reload a new instance ofReadableSocialAgentRegistration
using the attributes of the current instanceRegistrySet.reload()
Reload a new instance ofRegistrySet
using the attributes of the current instanceSocialAgentProfile.reload()
Reload a new instance ofSocialAgentProfile
using the attributes of the current instanceSocialAgentRegistration.reload()
Reload a new instance ofSocialAgentRegistration
using 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 SaiExceptionModifierConstructorDescriptionprotected
AgentRegistration
(AgentRegistration.Builder<?> builder) Construct anAgentRegistration
instance from the providedAgentRegistration.Builder
.AgentRegistry
(AgentRegistry.Builder builder) Construct anAgentRegistry
instance from the providedAgentRegistry.Builder
.protected
Construct aReadableAgentRegistration
instance 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 TypeMethodDescriptionvoid
AuthorizationRegistry.add
(AccessAuthorization accessAuthorization) Add anAccessAuthorization
to theAuthorizationRegistry
.AccessAuthorization.Builder.build()
Build theAccessAuthorization
using attributes from the Builder.AccessGrant.Builder.build()
AuthorizationRegistry.Builder.build()
Build theAuthorizationRegistry
using attributes from the Builder.DataAuthorization.Builder.build()
DataGrant.Builder.build()
Build theDataGrant
using attributes from the Builder.ReadableAccessGrant.Builder.build()
Build theReadableAccessGrant
using attributes from the Builder.ReadableDataGrant.Builder.build()
Build theReadableDataGrant
using 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 moreDataGrant
s for thisDataAuthorization
.static AccessAuthorization
AccessAuthorization.get
(URI uri, SaiSession saiSession) CallAccessAuthorization.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic AccessAuthorization
AccessAuthorization.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get anAccessAuthorization
at the provideduri
static AccessGrant
AccessGrant.get
(URI uri, SaiSession saiSession) CallAccessGrant.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic AccessGrant
AccessGrant.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get anAccessGrant
at the provideduri
static AuthorizationRegistry
AuthorizationRegistry.get
(URI uri, SaiSession saiSession) CallAuthorizationRegistry.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic AuthorizationRegistry
AuthorizationRegistry.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aAuthorizationRegistry
at the provideduri
static DataAuthorization
DataAuthorization.get
(URI uri, SaiSession saiSession) CallDataAuthorization.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic DataAuthorization
DataAuthorization.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aDataAuthorization
at the provideduri
static DataGrant
DataGrant.get
(URI uri, SaiSession saiSession) CallDataGrant.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic DataGrant
DataGrant.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aDataGrant
at the provideduri
static ReadableAccessGrant
ReadableAccessGrant.get
(URI uri, SaiSession saiSession) CallReadableAccessGrant.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic ReadableAccessGrant
ReadableAccessGrant.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableAccessGrant
at the provideduri
static ReadableDataGrant
ReadableDataGrant.get
(URI uri, SaiSession saiSession) CallReadableDataGrant.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic ReadableDataGrant
ReadableDataGrant.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableDataGrant
at the provideduri
AllFromRegistryDataGrant.getDataInstances()
Returns aDataInstanceList
that iterates over all of theDataInstance
s for a given shape tree type in theDataRegistration
specified in this data grantInheritedDataGrant.getDataInstances()
Returns aDataInstanceList
that iterates over the list ofDataInstance
s inherited from theDataInstance
s associated with the parentReadableDataGrant
that this grant inherits from.abstract DataInstanceList
ReadableDataGrant.getDataInstances()
Abstract method implemented by specific types of data grants, that allow theDataInstance
s permitted by that grant to be iterated.AccessAuthorization.reload()
Reload a new instance ofAccessAuthorization
using the attributes of the current instanceAccessGrant.reload()
Reload a new instance ofAccessGrant
using the attributes of the current instanceAuthorizationRegistry.reload()
Reload a new instance ofAuthorizationRegistry
using the attributes of the current instanceDataAuthorization.reload()
Reload a new instance ofDataAuthorization
using the attributes of the current instanceDataGrant.reload()
Reload a new instance ofDataGrant
using the attributes of the current instanceReadableAccessGrant.reload()
Reload a new instance ofReadableAccessGrant
using the attributes of the current instanceReadableDataGrant.reload()
Reload a new instance ofReadableDataGrant
using 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 SaiExceptionModifierConstructorDescriptionprotected
Construct anAllFromRegistryDataGrant
from the providedReadableDataGrant.Builder
.protected
Construct anInheritableDataGrant
from the providedReadableDataGrant.Builder
.protected
Construct anInheritedDataGrant
from the providedReadableDataGrant.Builder
.protected
Construct aReadableDataGrant
instance from the providedReadableDataGrant.Builder
.protected
Construct aSelectedFromRegistryDataGrant
from the providedReadableDataGrant.Builder
. -
Uses of SaiException in com.janeirodigital.sai.core.data
Methods in com.janeirodigital.sai.core.data that throw SaiExceptionModifier and TypeMethodDescriptionvoid
DataRegistry.add
(DataRegistration registration) Add aDataRegistration
to theDataRegistry
void
DataInstance.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 theDataRegistration
using attributes from the Builder.DataRegistry.Builder.build()
Build theDataRegistry
using attributes from the Builder.void
DataInstance.delete()
Delete the correspondingDataInstance
resource 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 URI
DataInstance.generateUri
(ReadableDataGrant dataGrant) Generate the URI for a newDataInstance
as permitted by the provideddataGrant
, with a generated UUID as resource name.static URI
DataInstance.generateUri
(ReadableDataGrant dataGrant, String resourceName) Generate the URI for a newDataInstance
as permitted by the provideddataGrant
.static BasicDataInstance
BasicDataInstance.get
(URI uri, SaiSession saiSession, ReadableDataGrant dataGrant, DataInstance parent) static BasicDataInstance
BasicDataInstance.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType, ReadableDataGrant dataGrant, DataInstance parent) Get aBasicDataInstance
at the provideduri
static DataRegistration
DataRegistration.get
(URI uri, SaiSession saiSession) CallDataRegistration.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic DataRegistration
DataRegistration.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aDataRegistration
at the provideduri
static DataRegistry
DataRegistry.get
(URI uri, SaiSession saiSession) CallDataRegistry.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic DataRegistry
DataRegistry.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aDataRegistry
at the provideduri
static ReadableDataRegistration
ReadableDataRegistration.get
(URI uri, SaiSession saiSession) CallReadableDataRegistration.get(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic ReadableDataRegistration
ReadableDataRegistration.get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableDataRegistration
at the provideduri
DataInstance.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
.boolean
DataInstance.hasAccessible
(URI shapeTreeUri) DataRegistration.reload()
Reload a new instance ofDataRegistration
using the attributes of the current instanceDataRegistry.reload()
Reload a new instance ofDataRegistry
using the attributes of the current instanceReadableDataRegistration.reload()
Reload a new instance ofReadableDataRegistration
using the attributes of the current instancevoid
DataInstance.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 theReadableDataGrant
associated 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
.void
DataInstance.update()
Update the correspondingDataInstance
resource over HTTP with the current contents of thedataset
.Constructors in com.janeirodigital.sai.core.data that throw SaiExceptionModifierConstructorDescriptionprotected
Builder
(DataInstance dataInstance) Initialize builder with aDataInstance
protected
DataInstance
(DataInstance.Builder<?> builder) -
Uses of SaiException in com.janeirodigital.sai.core.http
Methods in com.janeirodigital.sai.core.http that throw SaiExceptionModifier and TypeMethodDescriptionokhttp3.OkHttpClient
HttpClientFactory.get()
okhttp3.OkHttpClient
HttpClientFactory.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.OkHttpClient
HttpClientFactory.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 URL
UrlUtils.stringToUrl
(String urlString) Converts a string to a URLstatic URL
Coverts 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.Response
ReadableResource.checkReadableResponse
(okhttp3.Response response) Checks the response when fetching data for a readable resourcevoid
ImmutableResource.create()
Create the corresponding resource over HTTP with the current contents ofdataset
.void
CRUDResource.delete()
Deletes the corresponding resource over HTTPvoid
ImmutableResource.delete()
Deletes the corresponding resource over HTTPprotected static okhttp3.Response
ReadableResource.read
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType, boolean unprotected) Reads the remote RDF resource aturi
, providing credentials from theSaiSession
whenunprotected
is 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.void
CRUDResource.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
.protected
ReadableResource
(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.OkHttpClient
SaiSession.getHttpClient()
Get an OkHttpClient from theHttpClientFactory
based 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 TypeMethodDescriptionvoid
RegistrationList.populate()
Populate the internal list of registration URIs based on links to registrations in the graph of the registry