Package dev.dsf.fhir.webservice.jaxrs
Class AbstractResourceServiceJaxrs<R extends org.hl7.fhir.r4.model.Resource,S extends BasicResourceService<R>>
java.lang.Object
dev.dsf.fhir.webservice.base.AbstractBasicService
dev.dsf.fhir.webservice.base.AbstractDelegatingBasicService<S>
dev.dsf.fhir.webservice.jaxrs.AbstractServiceJaxrs<S>
dev.dsf.fhir.webservice.jaxrs.AbstractResourceServiceJaxrs<R,S>
- All Implemented Interfaces:
BasicService,BasicResourceService<R>,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
ActivityDefinitionServiceJaxrs,BinaryServiceJaxrs,BundleServiceJaxrs,CodeSystemServiceJaxrs,DocumentReferenceServiceJaxrs,EndpointServiceJaxrs,GroupServiceJaxrs,HealthcareServiceServiceJaxrs,LibraryServiceJaxrs,LocationServiceJaxrs,MeasureReportServiceJaxrs,MeasureServiceJaxrs,NamingSystemServiceJaxrs,OrganizationAffiliationServiceJaxrs,OrganizationServiceJaxrs,PatientServiceJaxrs,PractitionerRoleServiceJaxrs,PractitionerServiceJaxrs,ProvenanceServiceJaxrs,QuestionnaireResponseServiceJaxrs,QuestionnaireServiceJaxrs,ResearchStudyServiceJaxrs,StructureDefinitionServiceJaxrs,SubscriptionServiceJaxrs,TaskServiceJaxrs,ValueSetServiceJaxrs
public abstract class AbstractResourceServiceJaxrs<R extends org.hl7.fhir.r4.model.Resource,S extends BasicResourceService<R>>
extends AbstractServiceJaxrs<S>
implements BasicResourceService<R>, org.springframework.beans.factory.InitializingBean
-
Field Summary
Fields inherited from class dev.dsf.fhir.webservice.base.AbstractDelegatingBasicService
delegateFields inherited from class dev.dsf.fhir.webservice.base.AbstractBasicService
currentIdentityProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsestandard and conditional createjakarta.ws.rs.core.Responsedelete(jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers) conditional deletejakarta.ws.rs.core.Responsestandard deletejakarta.ws.rs.core.ResponsedeletePermanently(String deletePath, String id, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers) jakarta.ws.rs.core.ResponsegetValidateExisting(String validatePath, String id, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers) jakarta.ws.rs.core.ResponsegetValidateNew(String validate, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers) jakarta.ws.rs.core.Responsehistory(jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsepostValidateExisting(String validatePath, String id, org.hl7.fhir.r4.model.Parameters parameters, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers) jakarta.ws.rs.core.ResponsepostValidateNew(String validate, org.hl7.fhir.r4.model.Parameters parameters, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers) jakarta.ws.rs.core.Responseread by idjakarta.ws.rs.core.Responsesearch(jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers) search by request parameterjakarta.ws.rs.core.Responseupdate(String id, R resource, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers) standard updatejakarta.ws.rs.core.Responseconditional updatejakarta.ws.rs.core.Responsevread(String id, long version, jakarta.ws.rs.core.UriInfo uri, jakarta.ws.rs.core.HttpHeaders headers) read by id and versionMethods inherited from class dev.dsf.fhir.webservice.jaxrs.AbstractServiceJaxrs
afterPropertiesSetMethods inherited from class dev.dsf.fhir.webservice.base.AbstractDelegatingBasicService
setCurrentIdentityProviderMethods inherited from class dev.dsf.fhir.webservice.base.AbstractBasicService
getCurrentIdentityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.dsf.fhir.webservice.base.BasicService
setCurrentIdentityProviderMethods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
-
Constructor Details
-
AbstractResourceServiceJaxrs
-
-
Method Details
-
create
@POST @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response create(R resource, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) Description copied from interface:BasicResourceServicestandard and conditional create- Specified by:
createin interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>- Parameters:
resource- notnulluri- notnullheaders- notnull- Returns:
Responsedefined in https://www.hl7.org/fhir/http.html#create
-
read
@GET @Path("/{id}") @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response read(@PathParam("id") String id, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) Description copied from interface:BasicResourceServiceread by id- Specified by:
readin interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>- Parameters:
id- notnulluri- notnullheaders- notnull- Returns:
Responsedefined in https://www.hl7.org/fhir/http.html#read
-
vread
@GET @Path("/{id}/_history/{version}") @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response vread(@PathParam("id") String id, @PathParam("version") long version, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) Description copied from interface:BasicResourceServiceread by id and version- Specified by:
vreadin interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>- Parameters:
id- notnullversion->0uri- notnullheaders- notnull- Returns:
Responsedefined in https://www.hl7.org/fhir/http.html#vread
-
history
@GET @Path("/_history") @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response history(@Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) - Specified by:
historyin interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
-
history
@GET @Path("/{id}/_history") @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response history(@PathParam("id") String id, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) - Specified by:
historyin interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
-
update
@PUT @Path("/{id}") @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response update(@PathParam("id") String id, R resource, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) Description copied from interface:BasicResourceServicestandard update- Specified by:
updatein interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>- Parameters:
id- notnullresource- notnulluri- notnullheaders- notnull- Returns:
Responsedefined in https://www.hl7.org/fhir/http.html#update
-
update
@PUT @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response update(R resource, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) Description copied from interface:BasicResourceServiceconditional update- Specified by:
updatein interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>- Parameters:
resource- notnulluri- notnullheaders- notnull- Returns:
Responsedefined in https://www.hl7.org/fhir/http.html#update
-
delete
@DELETE @Path("/{id}") @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response delete(@PathParam("id") String id, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) Description copied from interface:BasicResourceServicestandard delete- Specified by:
deletein interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>- Parameters:
id- notnulluri- notnullheaders- notnull- Returns:
Responsedefined in https://www.hl7.org/fhir/http.html#delete
-
delete
@DELETE @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response delete(@Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) Description copied from interface:BasicResourceServiceconditional delete- Specified by:
deletein interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>- Parameters:
uri- notnullheaders- notnull- Returns:
Responsedefined in https://www.hl7.org/fhir/http.html#delete
-
search
@GET @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response search(@Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) Description copied from interface:BasicResourceServicesearch by request parameter- Specified by:
searchin interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>- Parameters:
uri- notnullheaders- notnull- Returns:
Responsedefined in https://www.hl7.org/fhir/http.html#search
-
postValidateNew
@POST @Path("/{validate : [$]validate(/)?}") @Consumes({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response postValidateNew(@PathParam("validate") String validate, org.hl7.fhir.r4.model.Parameters parameters, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) - Specified by:
postValidateNewin interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
-
getValidateNew
@GET @Path("/{validate : [$]validate(/)?}") @Consumes({"application/json+fhir","application/fhir+json","application/json","application/xml+fhir","application/fhir+xml","application/xml"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response getValidateNew(@PathParam("validate") String validate, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) - Specified by:
getValidateNewin interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
-
postValidateExisting
@POST @Path("/{id}/{validate : [$]validate(/)?}") @Consumes({"application/json+fhir","application/fhir+json","application/json","application/xml+fhir","application/fhir+xml","application/xml"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response postValidateExisting(@PathParam("validate") String validatePath, @PathParam("id") String id, org.hl7.fhir.r4.model.Parameters parameters, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) - Specified by:
postValidateExistingin interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
-
getValidateExisting
@GET @Path("/{id}/{validate : [$]validate(/)?}") @Consumes({"application/json+fhir","application/fhir+json","application/json","application/xml+fhir","application/fhir+xml","application/xml"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response getValidateExisting(@PathParam("validate") String validatePath, @PathParam("id") String id, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) - Specified by:
getValidateExistingin interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
-
deletePermanently
@POST @Path("/{id}/{delete : [$]permanent-delete(/)?}") @Consumes({"application/json+fhir","application/fhir+json","application/json","application/xml+fhir","application/fhir+xml","application/xml"}) @Produces({"application/xml+fhir","application/fhir+xml","application/xml","application/json+fhir","application/fhir+json","application/json","text/html"}) public jakarta.ws.rs.core.Response deletePermanently(@PathParam("delete") String deletePath, @PathParam("id") String id, @Context jakarta.ws.rs.core.UriInfo uri, @Context jakarta.ws.rs.core.HttpHeaders headers) - Specified by:
deletePermanentlyin interfaceBasicResourceService<R extends org.hl7.fhir.r4.model.Resource>
-