Class ReadableAccessGrant
java.lang.Object
com.janeirodigital.sai.core.resources.ReadableResource
com.janeirodigital.sai.core.authorizations.ReadableAccessGrant
Readable instantiation of an
Access Grant
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.janeirodigital.sai.core.resources.ReadableResource
contentType, dataset, exists, httpClient, jsonLdContext, resource, saiSession, unprotected, uri
-
Method Summary
Modifier and TypeMethodDescriptionfindDataGrants
(URI shapeTreeUri) LookupReadableDataGrant
s linked to theReadableAccessGrant
by shape treefindDataGrants
(URI dataOwnerUri, URI shapeTreeUri) LookupReadableDataGrant
s linked to theReadableAccessGrant
by data owner and shape treestatic ReadableAccessGrant
get
(URI uri, SaiSession saiSession) Callget(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic ReadableAccessGrant
get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aReadableAccessGrant
at the provideduri
Lookup the data owners represented by theReadableDataGrant
s linked to theReadableAccessGrant
reload()
Reload a new instance ofReadableAccessGrant
using the attributes of the current instanceMethods inherited from class com.janeirodigital.sai.core.resources.ReadableResource
checkReadableResponse, read
-
Method Details
-
get
public static ReadableAccessGrant get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) throws SaiException, com.janeirodigital.sai.httputils.SaiHttpNotFoundException Get aReadableAccessGrant
at the provideduri
- Parameters:
uri
- URI of theReadableAccessGrant
to getsaiSession
-SaiSession
to assigncontentType
-ContentType
to use- Returns:
- Retrieved
ReadableAccessGrant
- Throws:
SaiException
com.janeirodigital.sai.httputils.SaiHttpNotFoundException
-
get
public static ReadableAccessGrant get(URI uri, SaiSession saiSession) throws com.janeirodigital.sai.httputils.SaiHttpNotFoundException, SaiException Callget(URI, SaiSession, ContentType)
without specifying a desired content type for retrieval- Parameters:
uri
- URI of theReadableAccessGrant
to getsaiSession
-SaiSession
to assign- Returns:
- Retrieved
ReadableAccessGrant
- Throws:
com.janeirodigital.sai.httputils.SaiHttpNotFoundException
SaiException
-
reload
public ReadableAccessGrant reload() throws com.janeirodigital.sai.httputils.SaiHttpNotFoundException, SaiExceptionReload a new instance ofReadableAccessGrant
using the attributes of the current instance- Returns:
- Reloaded
ReadableAccessGrant
- Throws:
com.janeirodigital.sai.httputils.SaiHttpNotFoundException
SaiException
-
findDataGrants
LookupReadableDataGrant
s linked to theReadableAccessGrant
by data owner and shape tree- Parameters:
dataOwnerUri
- URI of the data owner that granted accessshapeTreeUri
- URI of the shape tree associated with the data- Returns:
- List of matching
ReadableDataGrant
-
findDataGrants
LookupReadableDataGrant
s linked to theReadableAccessGrant
by shape tree- Parameters:
shapeTreeUri
- URI of the shape tree associated with the data- Returns:
- List of matching
ReadableDataGrant
-
getDataOwners
Lookup the data owners represented by theReadableDataGrant
s linked to theReadableAccessGrant
- Returns:
- List of data owner identifiers
-