Class CommonUtil
- java.lang.Object
-
- com.ibm.fhir.operation.bulkdata.util.CommonUtil
-
public class CommonUtil extends Object
Common Util captures common methods
-
-
Constructor Summary
Constructors Constructor Description CommonUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIROperationException
buildExceptionWithIssue(String msg, IssueType issueType)
FHIROperationException
buildExceptionWithIssue(String msg, Throwable cause, IssueType issueType)
void
checkAllowed(FHIROperationContext operationContext, boolean isImport)
void
checkEnabled()
checks that bulkdata operation is enabledvoid
verifyAllowedType(String storageType)
checks the storage type is allowed.
-
-
-
Method Detail
-
checkEnabled
public void checkEnabled() throws FHIROperationException
checks that bulkdata operation is enabled- Throws:
FHIROperationException
-
checkAllowed
public void checkAllowed(FHIROperationContext operationContext, boolean isImport) throws FHIROperationException
- Parameters:
operationContext
-isImport
-- Throws:
FHIROperationException
-
verifyAllowedType
public void verifyAllowedType(String storageType) throws FHIROperationException
checks the storage type is allowed.- Parameters:
storageType
-- 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
-
-