Package com.ibm.fhir.server.rest
Class FHIRRestInteractionResource
- java.lang.Object
-
- com.ibm.fhir.server.rest.FHIRRestInteractionBase
-
- com.ibm.fhir.server.rest.FHIRRestInteractionResource
-
- All Implemented Interfaces:
FHIRRestInteraction
- Direct Known Subclasses:
FHIRRestInteractionCreate,FHIRRestInteractionInvoke,FHIRRestInteractionPatch,FHIRRestInteractionUpdate,FHIRRestInteractionValidationResponse
public abstract class FHIRRestInteractionResource extends FHIRRestInteractionBase
Base for resource-orientedFHIRRestInteractionimplementations which include a validationResponseEntry.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFHIRRestInteractionResource(int entryIndex, FHIRPersistenceEvent event, Resource newResource, Bundle.Entry validationResponseEntry, String requestDescription, FHIRUrlParser requestURL, long initialTime)Protected constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIRPersistenceEventgetEvent()ResourcegetNewResource()Get the updated resource, or if null, the original resource.ResourcegetPrevResource()Get the previous resourceBundle.EntrygetValidationResponseEntry()voidsetNewResource(Resource resource)Setter for updatedResourcevoidsetPrevResource(Resource prevResource)Setter for prevResource-
Methods inherited from class com.ibm.fhir.server.rest.FHIRRestInteractionBase
getEntryIndex, getInitialTime, getRequestDescription, getRequestURL, getWarnings
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.server.rest.FHIRRestInteraction
accept
-
-
-
-
Constructor Detail
-
FHIRRestInteractionResource
protected FHIRRestInteractionResource(int entryIndex, FHIRPersistenceEvent event, Resource newResource, Bundle.Entry validationResponseEntry, String requestDescription, FHIRUrlParser requestURL, long initialTime)Protected constructor- Parameters:
entryIndex-event-newResource-validationResponseEntry-requestDescription-requestURL-initialTime-
-
-
Method Detail
-
getValidationResponseEntry
public Bundle.Entry getValidationResponseEntry()
- Returns:
- the validationResponseEntry
-
setNewResource
public void setNewResource(Resource resource)
Setter for updatedResource- Parameters:
resource-
-
getNewResource
public Resource getNewResource()
Get the updated resource, or if null, the original resource.- Returns:
- the most recent instance of the resource
-
setPrevResource
public void setPrevResource(Resource prevResource)
Setter for prevResource- Parameters:
prevResource-
-
getPrevResource
public Resource getPrevResource()
Get the previous resource- Returns:
-
getEvent
public FHIRPersistenceEvent getEvent()
- Returns:
- the event
-
-