Class BulkDataImportUtil
- java.lang.Object
-
- com.ibm.fhir.operation.bulkdata.util.BulkDataImportUtil
-
public class BulkDataImportUtil extends Object
BulkData Import Util captures common methods
-
-
Constructor Summary
Constructors Constructor Description BulkDataImportUtil(Parameters parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIROperationExceptionbuildExceptionWithIssue(String msg, IssueType issueType)FHIROperationExceptionbuildExceptionWithIssue(String msg, Throwable cause, IssueType issueType)voidcheckAllowedTotalSizeForTenantOrSystem(Integer inputSize)check the allowed total size for tenant and systemStringretrieveInputFormat()processes the parameter inputFormat from the Parameters object and evaluationContext.List<Input>retrieveInputs()processes the retrieve inputs from the Parameters object and evaluationContext.StringretrieveInputSource()processes the retrieveInputSource from the parameters object and evaluationContext.StorageDetailretrieveStorageDetails()voidverifyUrlAllowed(String url)verify url is allowed.
-
-
-
Constructor Detail
-
BulkDataImportUtil
public BulkDataImportUtil(Parameters parameters) throws FHIROperationException
- Throws:
FHIROperationException
-
-
Method Detail
-
retrieveInputFormat
public String retrieveInputFormat() throws FHIROperationException
processes the parameter inputFormat from the Parameters object and evaluationContext.- Returns:
- Throws:
FHIROperationException
-
retrieveInputSource
public String retrieveInputSource() throws FHIROperationException
processes the retrieveInputSource from the parameters object and evaluationContext.- Returns:
- Throws:
FHIROperationException
-
retrieveInputs
public List<Input> retrieveInputs() throws FHIROperationException
processes the retrieve inputs from the Parameters object and evaluationContext.- Returns:
- Throws:
FHIROperationException
-
checkAllowedTotalSizeForTenantOrSystem
public void checkAllowedTotalSizeForTenantOrSystem(Integer inputSize) throws FHIROperationException
check the allowed total size for tenant and system- Parameters:
inputSize-- Throws:
FHIROperationException
-
verifyUrlAllowed
public void verifyUrlAllowed(String url) throws FHIROperationException
verify url is allowed.- Parameters:
url-- Throws:
FHIROperationException
-
retrieveStorageDetails
public StorageDetail retrieveStorageDetails() throws FHIROperationException
- Throws:
FHIROperationException
-
buildExceptionWithIssue
public FHIROperationException buildExceptionWithIssue(String msg, IssueType issueType) throws FHIROperationException
- Throws:
FHIROperationException
-
buildExceptionWithIssue
public FHIROperationException buildExceptionWithIssue(String msg, Throwable cause, IssueType issueType) throws FHIROperationException
- Throws:
FHIROperationException
-
-