Class ParameterHashVisitor
- java.lang.Object
-
- com.ibm.fhir.persistence.jdbc.util.ParameterHashVisitor
-
- All Implemented Interfaces:
ExtractedParameterValueVisitor
public class ParameterHashVisitor extends java.lang.Object implements ExtractedParameterValueVisitor
Compute a cryptographic hash of the visited parameters.
-
-
Constructor Summary
Constructors Constructor Description ParameterHashVisitor()
Public constructor.ParameterHashVisitor(boolean legacyWholeSystemSearchParamsEnabled)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBase64Hash()
Compute and return the hash.void
visit(CompositeParmVal compositeParameter)
Process a composite parameter valuevoid
visit(DateParmVal param)
Process a date parameter valuevoid
visit(LocationParmVal param)
Process a location parameter valuevoid
visit(NumberParmVal param)
Process a number parameter valuevoid
visit(QuantityParmVal param)
Process a quantity parameter valuevoid
visit(ReferenceParmVal param)
Process a reference parameter valuevoid
visit(StringParmVal param)
Process a string parameter valuevoid
visit(TokenParmVal param)
Process a token parameter value
-
-
-
Constructor Detail
-
ParameterHashVisitor
public ParameterHashVisitor()
Public constructor.
-
ParameterHashVisitor
public ParameterHashVisitor(boolean legacyWholeSystemSearchParamsEnabled)
Public constructor.- Parameters:
legacyWholeSystemSearchParamsEnabled
- if true, then update digest to ensure hash changes from when it is false; this can be removed when the legacyWholeSystemSearchParamsEnabled config setting is removed.
-
-
Method Detail
-
visit
public void visit(StringParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitor
Process a string parameter value- Specified by:
visit
in interfaceExtractedParameterValueVisitor
- Throws:
FHIRPersistenceException
-
visit
public void visit(NumberParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitor
Process a number parameter value- Specified by:
visit
in interfaceExtractedParameterValueVisitor
- Throws:
FHIRPersistenceException
-
visit
public void visit(DateParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitor
Process a date parameter value- Specified by:
visit
in interfaceExtractedParameterValueVisitor
- Throws:
FHIRPersistenceException
-
visit
public void visit(TokenParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitor
Process a token parameter value- Specified by:
visit
in interfaceExtractedParameterValueVisitor
- Throws:
FHIRPersistenceException
-
visit
public void visit(QuantityParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitor
Process a quantity parameter value- Specified by:
visit
in interfaceExtractedParameterValueVisitor
- Throws:
FHIRPersistenceException
-
visit
public void visit(LocationParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitor
Process a location parameter value- Specified by:
visit
in interfaceExtractedParameterValueVisitor
- Throws:
FHIRPersistenceException
-
visit
public void visit(ReferenceParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitor
Process a reference parameter value- Specified by:
visit
in interfaceExtractedParameterValueVisitor
- Throws:
FHIRPersistenceException
-
visit
public void visit(CompositeParmVal compositeParameter) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitor
Process a composite parameter value- Specified by:
visit
in interfaceExtractedParameterValueVisitor
- Throws:
FHIRPersistenceException
-
getBase64Hash
public java.lang.String getBase64Hash()
Compute and return the hash.- Returns:
- the hash string as Base64
-
-