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 FHIROperationException
buildOperationException(String errMsg, IssueType issueType)
static javax.ws.rs.core.MediaType
checkAndConvertToMediaType(Parameters parameters)
static Instant
checkAndExtractSince(Parameters parameters)
static String
checkAndValidateJob(Parameters parameters)
checks and validates the job.static List<String>
checkAndValidateTypeFilters(Parameters parameters)
static List<String>
checkAndValidateTypes(Parameters parameters)
static BulkDataConstants.ExportType
checkExportType(FHIROperationContext.Type type, Class<? extends Resource> resourceType)
Check the Export Type is valid and converts to intermediate enumstatic String
decryptBatchJobId(String strToDecrypt, SecretKeySpec key)
static String
encryptBatchJobId(String strToEncrypt, SecretKeySpec key)
static Parameters
getOutputParametersWithJson(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)
-
-