Search in sources :

Example 1 with EnvironmentSettings

use of com.evolveum.midpoint.studio.impl.EnvironmentSettings in project midpoint-studio by Evolveum.

the class EnvironmentsPanel method getFullSettings.

public EnvironmentSettings getFullSettings() {
    EnvironmentSettings settings = new EnvironmentSettings();
    List<Environment> envts = new ArrayList<>();
    getData().forEach(s -> envts.add(s.getObject()));
    settings.setEnvironments(envts);
    for (Selectable<Environment> e : getData()) {
        if (e.isSelected()) {
            settings.setSelectedId(e.getObject().getId());
            break;
        }
    }
    return settings;
}
Also used : EnvironmentSettings(com.evolveum.midpoint.studio.impl.EnvironmentSettings) ArrayList(java.util.ArrayList) Environment(com.evolveum.midpoint.studio.impl.Environment)

Aggregations

Environment (com.evolveum.midpoint.studio.impl.Environment)1 EnvironmentSettings (com.evolveum.midpoint.studio.impl.EnvironmentSettings)1 ArrayList (java.util.ArrayList)1