Package com.ibm.fhir.operation.erase
Class EraseOperation
- java.lang.Object
-
- com.ibm.fhir.server.operation.spi.AbstractOperation
-
- com.ibm.fhir.operation.erase.EraseOperation
-
- All Implemented Interfaces:
FHIROperation
public class EraseOperation extends AbstractOperation
Custom Operation to Erase a specific instance or instance-version of the FHIR Resource and it's history and values table supported by the IBM FHIR Server.
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.server.operation.spi.AbstractOperation
definition
-
-
Constructor Summary
Constructors Constructor Description EraseOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OperationDefinition
buildOperationDefinition()
protected Parameters
doInvoke(FHIROperationContext operationContext, Class<? extends Resource> resourceType, String logicalId, String versionId, Parameters parameters, FHIRResourceHelpers resourceHelper)
This is the method that concrete subclasses must implement to perform the operation logic.OperationDefinition
generateOperationDefinition(FHIRParser parser)
Parser generates the OperationDefinition-
Methods inherited from class com.ibm.fhir.server.operation.spi.AbstractOperation
buildExceptionWithIssue, buildExceptionWithIssue, countParameters, findOpDefParameter, getDefinition, getName, getParameter, getParameterDefinitions, getParameters, getResourceTypeNames, invoke, isAbstractResourceTypesDisallowed, isAdditionalMethodAllowed, validateInputParameters, validateOperationContext, validateOutputParameters, validateParameters
-
-
-
-
Method Detail
-
buildOperationDefinition
protected OperationDefinition buildOperationDefinition()
- Specified by:
buildOperationDefinition
in classAbstractOperation
-
doInvoke
protected Parameters doInvoke(FHIROperationContext operationContext, Class<? extends Resource> resourceType, String logicalId, String versionId, Parameters parameters, FHIRResourceHelpers resourceHelper) throws FHIROperationException
Description copied from class:AbstractOperation
This is the method that concrete subclasses must implement to perform the operation logic.- Specified by:
doInvoke
in classAbstractOperation
- Returns:
- the Parameters object to return or null if there is no response Parameters object to return
- Throws:
FHIROperationException
-
generateOperationDefinition
public OperationDefinition generateOperationDefinition(FHIRParser parser)
Parser generates the OperationDefinition- Parameters:
parser
-- Returns:
-
-