Changed return type of SystemManagement.getConfigurationValue()
* changed Return type to wrapper object, adding additional meta data stored in the database * updated all calls of this method * updated function calls in tests * verified correct execution of correspending tests Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
This commit is contained in:
committed by
Nonnenmacher Fabian
parent
f2e7cdb92a
commit
07fce42469
@@ -66,7 +66,7 @@ abstract class AbstractAuthenticationTenantConfigurationItem extends VerticalLay
|
||||
*/
|
||||
@Override
|
||||
public boolean isConfigEnabled() {
|
||||
boolean b = systemManagement.getConfigurationValue(configurationKey, Boolean.class);
|
||||
final boolean b = systemManagement.getConfigurationValue(configurationKey, Boolean.class).getValue();
|
||||
return b;
|
||||
}
|
||||
|
||||
|
||||
@@ -153,13 +153,15 @@ public class CertificateAuthenticationConfigurationItem extends AbstractAuthenti
|
||||
configurationEnabledChange = false;
|
||||
configurationCaRootAuthorityChanged = false;
|
||||
|
||||
configurationEnabled = getSystemManagement().getConfigurationValue(getConfigurationKey(), Boolean.class);
|
||||
configurationEnabled = getSystemManagement().getConfigurationValue(getConfigurationKey(), Boolean.class)
|
||||
.getValue();
|
||||
caRootAuthorityTextField.setValue(getCaRootAuthorityValue());
|
||||
}
|
||||
|
||||
private String getCaRootAuthorityValue() {
|
||||
return getSystemManagement()
|
||||
.getConfigurationValue(TenantConfigurationKey.AUTHENTICATION_MODE_HEADER_AUTHORITY_NAME, String.class);
|
||||
.getConfigurationValue(TenantConfigurationKey.AUTHENTICATION_MODE_HEADER_AUTHORITY_NAME, String.class)
|
||||
.getValue();
|
||||
}
|
||||
|
||||
private void setDetailVisible(final boolean visible) {
|
||||
|
||||
@@ -168,12 +168,12 @@ public class GatewaySecurityTokenAuthenticationConfigurationItem extends Abstrac
|
||||
|
||||
private String getSecurityTokenName() {
|
||||
return getSystemManagement().getConfigurationValue(
|
||||
TenantConfigurationKey.AUTHENTICATION_MODE_GATEWAY_SECURITY_TOKEN_NAME, String.class);
|
||||
TenantConfigurationKey.AUTHENTICATION_MODE_GATEWAY_SECURITY_TOKEN_NAME, String.class).getValue();
|
||||
}
|
||||
|
||||
private String getSecurityTokenKey() {
|
||||
return getSystemManagement().getConfigurationValue(
|
||||
TenantConfigurationKey.AUTHENTICATION_MODE_GATEWAY_SECURITY_TOKEN_KEY, String.class);
|
||||
TenantConfigurationKey.AUTHENTICATION_MODE_GATEWAY_SECURITY_TOKEN_KEY, String.class).getValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -96,6 +96,7 @@ public class TargetSecurityTokenAuthenticationConfigurationItem extends Abstract
|
||||
@Override
|
||||
public void undo() {
|
||||
configurationEnabledChange = false;
|
||||
configurationEnabled = getSystemManagement().getConfigurationValue(getConfigurationKey(), Boolean.class);
|
||||
configurationEnabled = getSystemManagement().getConfigurationValue(getConfigurationKey(), Boolean.class)
|
||||
.getValue();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user