@Test public void testCheckAllowedTotalSizeForTenantOrSystem() throws FHIROperationException { BulkDataImportUtil.checkAllowedTotalSizeForTenantOrSystem(1); assertTrue(true); }
public static void checkAllowedTotalSizeForTenantOrSystem(Integer inputSize) throws FHIROperationException { Integer tenantCount = FHIRConfigHelper.getIntProperty(FHIRConfiguration.PROPERTY_BULKDATA_BATCHJOB_MAX_INPUT_PER_TENANT, BulkDataConstants.IMPORT_MAX_DEFAULT_INPUTS); if (tenantCount == null || tenantCount < inputSize) { throw buildExceptionWithIssue( "$import maximum input per bulkdata import request 'fhirServer/bulkdata/maxInputPerRequest'", IssueType.INVALID); } }
BulkDataImportUtil { public static void checkAllowedTotalSizeForTenantOrSystem(Integer inputSize) throws FHIROperationException { Integer tenantCount = FHIRConfigHelper.getIntProperty(FHIRConfiguration.PROPERTY_BULKDATA_BATCHJOB_MAX_INPUT_PER_TENANT, BulkDataConstants.IMPORT_MAX_DEFAULT_INPUTS); if (tenantCount == null || tenantCount < inputSize) { throw buildExceptionWithIssue( "$import maximum input per bulkdata import request 'fhirServer/bulkdata/maxInputPerRequest'", IssueType.INVALID); } } }
BulkDataImportUtil { public static void checkAllowedTotalSizeForTenantOrSystem(Integer inputSize) throws FHIROperationException { Integer tenantCount = FHIRConfigHelper.getIntProperty(FHIRConfiguration.PROPERTY_BULKDATA_BATCHJOB_MAX_INPUT_PER_TENANT, BulkDataConstants.IMPORT_MAX_DEFAULT_INPUTS); if (tenantCount == null || tenantCount < inputSize) { throw buildExceptionWithIssue( "$import maximum input per bulkdata import request 'fhirServer/bulkdata/maxInputPerRequest'", IssueType.INVALID); } } private  BulkDataImportUtil(); }
BulkDataImportUtil { public static void checkAllowedTotalSizeForTenantOrSystem(Integer inputSize) throws FHIROperationException { Integer tenantCount = FHIRConfigHelper.getIntProperty(FHIRConfiguration.PROPERTY_BULKDATA_BATCHJOB_MAX_INPUT_PER_TENANT, BulkDataConstants.IMPORT_MAX_DEFAULT_INPUTS); if (tenantCount == null || tenantCount < inputSize) { throw buildExceptionWithIssue( "$import maximum input per bulkdata import request 'fhirServer/bulkdata/maxInputPerRequest'", IssueType.INVALID); } } private  BulkDataImportUtil(); static FHIROperationException buildExceptionWithIssue(String msg, IssueType issueType); static FHIROperationException buildExceptionWithIssue(String msg, Throwable cause, IssueType issueType); static String retrieveInputFormat(Parameters parameters); static String retrieveInputSource(Parameters parameters); static List<Input> retrieveInputs(Parameters parameters); static void checkAllowedTotalSizeForTenantOrSystem(Integer inputSize); static void verifyUrlAllowed(String url); static StorageDetail retrieveStorageDetails(Parameters parameters); }
BulkDataImportUtil { public static void checkAllowedTotalSizeForTenantOrSystem(Integer inputSize) throws FHIROperationException { Integer tenantCount = FHIRConfigHelper.getIntProperty(FHIRConfiguration.PROPERTY_BULKDATA_BATCHJOB_MAX_INPUT_PER_TENANT, BulkDataConstants.IMPORT_MAX_DEFAULT_INPUTS); if (tenantCount == null || tenantCount < inputSize) { throw buildExceptionWithIssue( "$import maximum input per bulkdata import request 'fhirServer/bulkdata/maxInputPerRequest'", IssueType.INVALID); } } private  BulkDataImportUtil(); static FHIROperationException buildExceptionWithIssue(String msg, IssueType issueType); static FHIROperationException buildExceptionWithIssue(String msg, Throwable cause, IssueType issueType); static String retrieveInputFormat(Parameters parameters); static String retrieveInputSource(Parameters parameters); static List<Input> retrieveInputs(Parameters parameters); static void checkAllowedTotalSizeForTenantOrSystem(Integer inputSize); static void verifyUrlAllowed(String url); static StorageDetail retrieveStorageDetails(Parameters parameters);  }