Class BulkDataExportUtil
- java.lang.Object
-
- com.ibm.fhir.operation.bulkdata.util.BulkDataExportUtil
-
public class BulkDataExportUtil extends Object
BulkData Util captures common methods
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FHIROperationExceptionbuildOperationException(String errMsg, IssueType issueType)static javax.ws.rs.core.MediaTypecheckAndConvertToMediaType(Parameters parameters)static InstantcheckAndExtractSince(Parameters parameters)static StringcheckAndValidateJob(Parameters parameters)checks and validates the job.static List<String>checkAndValidateTypeFilters(Parameters parameters)static List<String>checkAndValidateTypes(Parameters parameters)static BulkDataConstants.ExportTypecheckExportType(FHIROperationContext.Type type, Class<? extends Resource> resourceType)Check the Export Type is valid and converts to intermediate enumstatic StringdecryptBatchJobId(String strToDecrypt, SecretKeySpec key)static StringencryptBatchJobId(String strToEncrypt, SecretKeySpec key)static ParametersgetOutputParametersWithJson(PollingLocationResponse resource)
-
-
-
Method Detail
-
checkExportType
public static BulkDataConstants.ExportType checkExportType(FHIROperationContext.Type type, Class<? extends Resource> resourceType)
Check the Export Type is valid and converts to intermediate enum- Parameters:
type-resourceType-- Returns:
-
checkAndConvertToMediaType
public static javax.ws.rs.core.MediaType checkAndConvertToMediaType(Parameters parameters) throws FHIROperationException
- Throws:
FHIROperationException
-
buildOperationException
public static FHIROperationException buildOperationException(String errMsg, IssueType issueType)
-
checkAndExtractSince
public static Instant checkAndExtractSince(Parameters parameters)
- Parameters:
parameters-- Returns:
- Throws:
FHIROperationException
-
checkAndValidateTypes
public static List<String> checkAndValidateTypes(Parameters parameters) throws FHIROperationException
- Throws:
FHIROperationException
-
checkAndValidateTypeFilters
public static List<String> checkAndValidateTypeFilters(Parameters parameters) throws FHIROperationException
- Throws:
FHIROperationException
-
getOutputParametersWithJson
public static Parameters getOutputParametersWithJson(PollingLocationResponse resource) throws Exception
- Throws:
Exception
-
checkAndValidateJob
public static String checkAndValidateJob(Parameters parameters) throws FHIROperationException
checks and validates the job.- Parameters:
parameters-- Returns:
- Throws:
FHIROperationException
-
encryptBatchJobId
public static String encryptBatchJobId(String strToEncrypt, SecretKeySpec key)
-
decryptBatchJobId
public static String decryptBatchJobId(String strToDecrypt, SecretKeySpec key)
-
-