Class V2ConfigurationImpl
- java.lang.Object
-
- org.linuxforhealth.fhir.operation.bulkdata.config.impl.AbstractSystemConfigurationImpl
-
- org.linuxforhealth.fhir.operation.bulkdata.config.impl.V2ConfigurationImpl
-
- All Implemented Interfaces:
ConfigurationAdapter
public class V2ConfigurationImpl extends AbstractSystemConfigurationImpl
Starting with FHIR Server version 4.6
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.operation.bulkdata.config.impl.AbstractSystemConfigurationImpl
DEFAULT_AZURE_OBJ_MAX_RESOURCE_COUNT, DEFAULT_AZURE_OBJ_MAX_SIZE_MB, DEFAULT_COS_OBJ_MAX_RESOURCE_COUNT, DEFAULT_COS_OBJ_MAX_SIZE_MB, DEFAULT_FILE_MAX_RESOURCE_COUNT, DEFAULT_FILE_MAX_SIZE_MB, DEFAULT_PAGE_SIZE, IMPORT_INFLY_RATE_NUMOFFHIRRESOURCES, IMPORT_NUMOFFHIRRESOURCES_PERREAD
-
-
Constructor Summary
Constructors Constructor Description V2ConfigurationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCoreApiBatchPassword()
java.lang.String
getCoreApiBatchTrustStore()
java.lang.String
getCoreApiBatchTrustStorePassword()
java.lang.String
getCoreApiBatchUrl()
java.lang.String
getCoreApiBatchUser()
java.lang.String
getStorageProviderAuthType(java.lang.String provider)
java.lang.String
getStorageProviderAuthTypeHmacAccessKey(java.lang.String provider)
java.lang.String
getStorageProviderAuthTypeHmacSecretKey(java.lang.String provider)
java.lang.String
getStorageProviderAuthTypeIamApiKey(java.lang.String provider)
java.lang.String
getStorageProviderAuthTypeIamApiResourceInstanceId(java.lang.String provider)
java.lang.String
getStorageProviderAuthTypePassword(java.lang.String provider)
java.lang.String
getStorageProviderAuthTypeUsername(java.lang.String provider)
java.lang.String
getStorageProviderBucketName(java.lang.String provider)
gets the StorageProvider's bucket name for cos sources.java.lang.String
getStorageProviderEndpointExternal(java.lang.String provider)
get the external endpoint for the storage provider.java.lang.String
getStorageProviderEndpointInternal(java.lang.String provider)
get the internal endpoint for the storage provider.java.lang.String
getStorageProviderLocation(java.lang.String provider)
gets the location of the cos endpoint.java.lang.String
getStorageProviderType(java.lang.String provider)
gets the StorageProvider type which aligns with the StorageTypeboolean
getStorageProviderUsesRequestAccessToken(java.lang.String provider)
reports back to the client if the StorageProvider supports requestAccessTokensjava.util.List<java.lang.String>
getStorageProviderValidBaseUrls(java.lang.String provider)
gets the StorageProvider's valid base urls for HTTPS sources.boolean
isFastExport()
indicating if it's the new fast exportboolean
isStorageProviderAuthTypeBasic(java.lang.String provider)
boolean
isStorageProviderAuthTypeHmac(java.lang.String provider)
boolean
isStorageProviderAuthTypeIam(java.lang.String provider)
boolean
legacy()
identifies the configuration as legacy or not.boolean
shouldStorageProviderAllowAllResources(java.lang.String provider)
allows multiple resources in a single file.boolean
shouldStorageProviderCheckDuplicate(java.lang.String provider)
boolean
shouldStorageProviderCollectOperationOutcomes(java.lang.String provider)
boolean
shouldStorageProviderCreate(java.lang.String provider)
boolean
shouldStorageProviderValidateBaseUrl(java.lang.String provider)
boolean
shouldStorageProviderValidateResources(java.lang.String provider)
-
Methods inherited from class org.linuxforhealth.fhir.operation.bulkdata.config.impl.AbstractSystemConfigurationImpl
enabled, enableSkippableUpdates, getApplicationName, getBaseFileLocation, getCoreAzureObjectResourceCountThreshold, getCoreAzureObjectSizeThreshold, getCoreBatchIdEncryptionKey, getCoreCosObjectResourceCountThreshold, getCoreCosObjectSizeThreshold, getCoreCosPartUploadTriggerSize, getCoreCosRequestTimeout, getCoreCosSocketTimeout, getCoreCosTcpKeepAlive, getCoreFastMaxReadTimeout, getCoreFileResourceCountThreshold, getCoreFileSizeThreshold, getCoreFileWriteTriggerSize, getCoreIamEndpoint, getCoreMaxPartitions, getCorePageSize, getDefaultExportProvider, getDefaultImportProvider, getEndOfFileDelimiter, getImportInflyRateNumberOfFhirResources, getImportNumberOfFhirResourcesPerRead, getInputLimit, getJobXMLName, getModuleName, getOperationOutcomeProvider, getPresignedUrlExpiry, getS3HostStyleByStorageProvider, getStorageProviderAuthTypeConnectionString, getStorageProviderStorageType, getTenant, hasStorageProvider, isStorageProviderAuthTypeConnectionString, isStorageProviderHmacPresigned, isStorageTypeAllowed, registerRequestContext, shouldCoreApiBatchTrustAll, shouldCoreCosUseServerTruststore
-
-
-
-
Method Detail
-
legacy
public boolean legacy()
Description copied from interface:ConfigurationAdapter
identifies the configuration as legacy or not.- Returns:
-
getCoreApiBatchUrl
public java.lang.String getCoreApiBatchUrl()
- Returns:
- the local batch api URL
-
getCoreApiBatchUser
public java.lang.String getCoreApiBatchUser()
- Returns:
- the local batch api user, it should be an admin
-
getCoreApiBatchPassword
public java.lang.String getCoreApiBatchPassword()
- Returns:
- the local batch api user password
-
getCoreApiBatchTrustStore
public java.lang.String getCoreApiBatchTrustStore()
- Returns:
- the local batch api user password
-
getCoreApiBatchTrustStorePassword
public java.lang.String getCoreApiBatchTrustStorePassword()
- Returns:
- the local batch api user password
-
getStorageProviderType
public java.lang.String getStorageProviderType(java.lang.String provider)
Description copied from interface:ConfigurationAdapter
gets the StorageProvider type which aligns with the StorageType- Returns:
-
getStorageProviderValidBaseUrls
public java.util.List<java.lang.String> getStorageProviderValidBaseUrls(java.lang.String provider)
Description copied from interface:ConfigurationAdapter
gets the StorageProvider's valid base urls for HTTPS sources.- Returns:
-
getStorageProviderBucketName
public java.lang.String getStorageProviderBucketName(java.lang.String provider)
Description copied from interface:ConfigurationAdapter
gets the StorageProvider's bucket name for cos sources.- Returns:
-
getStorageProviderLocation
public java.lang.String getStorageProviderLocation(java.lang.String provider)
Description copied from interface:ConfigurationAdapter
gets the location of the cos endpoint.- Returns:
-
getStorageProviderEndpointInternal
public java.lang.String getStorageProviderEndpointInternal(java.lang.String provider)
Description copied from interface:ConfigurationAdapter
get the internal endpoint for the storage provider.- Returns:
-
getStorageProviderEndpointExternal
public java.lang.String getStorageProviderEndpointExternal(java.lang.String provider)
Description copied from interface:ConfigurationAdapter
get the external endpoint for the storage provider.- Returns:
-
getStorageProviderAuthType
public java.lang.String getStorageProviderAuthType(java.lang.String provider)
- Returns:
-
isStorageProviderAuthTypeIam
public boolean isStorageProviderAuthTypeIam(java.lang.String provider)
- Returns:
-
getStorageProviderAuthTypeIamApiKey
public java.lang.String getStorageProviderAuthTypeIamApiKey(java.lang.String provider)
- Returns:
-
getStorageProviderAuthTypeIamApiResourceInstanceId
public java.lang.String getStorageProviderAuthTypeIamApiResourceInstanceId(java.lang.String provider)
- Returns:
-
isStorageProviderAuthTypeHmac
public boolean isStorageProviderAuthTypeHmac(java.lang.String provider)
- Returns:
-
getStorageProviderAuthTypeHmacAccessKey
public java.lang.String getStorageProviderAuthTypeHmacAccessKey(java.lang.String provider)
- Returns:
-
getStorageProviderAuthTypeHmacSecretKey
public java.lang.String getStorageProviderAuthTypeHmacSecretKey(java.lang.String provider)
- Returns:
-
isStorageProviderAuthTypeBasic
public boolean isStorageProviderAuthTypeBasic(java.lang.String provider)
- Returns:
-
getStorageProviderAuthTypeUsername
public java.lang.String getStorageProviderAuthTypeUsername(java.lang.String provider)
- Returns:
-
getStorageProviderAuthTypePassword
public java.lang.String getStorageProviderAuthTypePassword(java.lang.String provider)
- Returns:
-
shouldStorageProviderValidateBaseUrl
public boolean shouldStorageProviderValidateBaseUrl(java.lang.String provider)
- Returns:
-
shouldStorageProviderCollectOperationOutcomes
public boolean shouldStorageProviderCollectOperationOutcomes(java.lang.String provider)
- Returns:
-
shouldStorageProviderCheckDuplicate
public boolean shouldStorageProviderCheckDuplicate(java.lang.String provider)
- Returns:
-
shouldStorageProviderValidateResources
public boolean shouldStorageProviderValidateResources(java.lang.String provider)
- Returns:
-
shouldStorageProviderCreate
public boolean shouldStorageProviderCreate(java.lang.String provider)
- Returns:
-
isFastExport
public boolean isFastExport()
Description copied from interface:ConfigurationAdapter
indicating if it's the new fast export- Returns:
-
getStorageProviderUsesRequestAccessToken
public boolean getStorageProviderUsesRequestAccessToken(java.lang.String provider)
Description copied from interface:ConfigurationAdapter
reports back to the client if the StorageProvider supports requestAccessTokens- Returns:
-
shouldStorageProviderAllowAllResources
public boolean shouldStorageProviderAllowAllResources(java.lang.String provider)
Description copied from interface:ConfigurationAdapter
allows multiple resources in a single file.- Returns:
-
-