Search in sources :

Example 1 with AppProperty

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;
}
Also used : AppProperty(password.pwm.AppProperty) LinkedHashMap(java.util.LinkedHashMap)

Aggregations

LinkedHashMap (java.util.LinkedHashMap)1 AppProperty (password.pwm.AppProperty)1