Class CRUDResource
java.lang.Object
com.janeirodigital.sai.core.resources.ReadableResource
com.janeirodigital.sai.core.resources.CRUDResource
- Direct Known Subclasses:
AgentRegistration,AgentRegistry,ApplicationProfile,AuthorizationRegistry,DataInstance,DataRegistration,DataRegistry,RegistrySet,SocialAgentProfile
Represents a corresponding RDF Resource and provides create, read, update,
and delete capabilities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classCRUDResource.Builder<T extends ReadableResource.Builder<T>>Generic builder which is extended by CRUD resource builders. -
Field Summary
Fields inherited from class com.janeirodigital.sai.core.resources.ReadableResource
contentType, dataset, exists, httpClient, jsonLdContext, resource, saiSession, unprotected, uri -
Constructor Summary
ConstructorsConstructorDescriptionCRUDResource(CRUDResource.Builder<?> builder) Construct a CRUD resource using the providedCRUDResource.Builder. -
Method Summary
Methods inherited from class com.janeirodigital.sai.core.resources.ReadableResource
checkReadableResponse, read
-
Constructor Details
-
CRUDResource
Construct a CRUD resource using the providedCRUDResource.Builder.- Parameters:
builder-CRUDResource.Builderor an instance of an inheriting subclass- Throws:
SaiException
-
-
Method Details
-
update
Updates the corresponding resource over HTTP with the current contents ofdataset.- Throws:
SaiException
-
delete
Deletes the corresponding resource over HTTP- Throws:
SaiException
-