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