Class CommonUtil
- java.lang.Object
 - 
- com.ibm.fhir.operation.bulkdata.util.CommonUtil
 
 
- 
public class CommonUtil extends java.lang.ObjectCommon Util captures common methods 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommonUtil.TypeType 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 FHIROperationExceptionbuildExceptionWithIssue(java.lang.String msg, IssueType issueType)static FHIROperationExceptionbuildExceptionWithIssue(java.lang.String msg, java.lang.Throwable cause, IssueType issueType)voidcheckAllowed(FHIROperationContext operationContext, boolean isImport)voidcheckEnabled()checks that bulkdata operation is enabledvoidverifyAllowedType(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 FHIROperationExceptionchecks 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 FHIROperationExceptionchecks 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
 
 - 
 
 -