use of password.pwm.AppProperty in project pwm by pwm-project.
the class Configuration method readAllNonDefaultAppProperties.
public Map<AppProperty, String> readAllNonDefaultAppProperties() {
final LinkedHashMap<AppProperty, String> nonDefaultProperties = new LinkedHashMap<>();
for (final AppProperty loopProperty : AppProperty.values()) {
final String configuredValue = readAppProperty(loopProperty);
final String defaultValue = loopProperty.getDefaultValue();
if (configuredValue != null && !configuredValue.equals(defaultValue)) {
nonDefaultProperties.put(loopProperty, configuredValue);
}
}
return nonDefaultProperties;
}
Aggregations