Class ParameterHashVisitor
- java.lang.Object
 - 
- org.linuxforhealth.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.StringgetBase64Hash()Compute and return the hash.voidvisit(CompositeParmVal compositeParameter)Process a composite parameter valuevoidvisit(DateParmVal param)Process a date parameter valuevoidvisit(LocationParmVal param)Process a location parameter valuevoidvisit(NumberParmVal param)Process a number parameter valuevoidvisit(QuantityParmVal param)Process a quantity parameter valuevoidvisit(ReferenceParmVal param)Process a reference parameter valuevoidvisit(StringParmVal param)Process a string parameter valuevoidvisit(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:ExtractedParameterValueVisitorProcess a string parameter value- Specified by:
 visitin interfaceExtractedParameterValueVisitor- Throws:
 FHIRPersistenceException
 
- 
visit
public void visit(NumberParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitorProcess a number parameter value- Specified by:
 visitin interfaceExtractedParameterValueVisitor- Throws:
 FHIRPersistenceException
 
- 
visit
public void visit(DateParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitorProcess a date parameter value- Specified by:
 visitin interfaceExtractedParameterValueVisitor- Throws:
 FHIRPersistenceException
 
- 
visit
public void visit(TokenParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitorProcess a token parameter value- Specified by:
 visitin interfaceExtractedParameterValueVisitor- Throws:
 FHIRPersistenceException
 
- 
visit
public void visit(QuantityParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitorProcess a quantity parameter value- Specified by:
 visitin interfaceExtractedParameterValueVisitor- Throws:
 FHIRPersistenceException
 
- 
visit
public void visit(LocationParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitorProcess a location parameter value- Specified by:
 visitin interfaceExtractedParameterValueVisitor- Throws:
 FHIRPersistenceException
 
- 
visit
public void visit(ReferenceParmVal param) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitorProcess a reference parameter value- Specified by:
 visitin interfaceExtractedParameterValueVisitor- Throws:
 FHIRPersistenceException
 
- 
visit
public void visit(CompositeParmVal compositeParameter) throws FHIRPersistenceException
Description copied from interface:ExtractedParameterValueVisitorProcess a composite parameter value- Specified by:
 visitin interfaceExtractedParameterValueVisitor- Throws:
 FHIRPersistenceException
 
- 
getBase64Hash
public java.lang.String getBase64Hash()
Compute and return the hash.- Returns:
 - the hash string as Base64
 
 
 - 
 
 -