Search in sources :

Example 1 with ObjectTypesConverter

use of com.evolveum.midpoint.studio.util.ObjectTypesConverter in project midpoint-studio by Evolveum.

the class MidPointSettingsPanel method getSettings.

public MidPointSettings getSettings() {
    MidPointSettings settings = MidPointSettings.createDefaultSettings();
    // we don't want to replace projectId with random id
    settings.setProjectId(this.settings.getProjectId());
    settings.setDowloadFilePattern(downloadPattern.getText());
    settings.setGeneratedFilePattern(generatedPattern.getText());
    settings.setPrintRestCommunicationToConsole(logRestCommunication.isSelected());
    if (StringUtils.isNumeric(restClientTimeout.getText())) {
        settings.setRestResponseTimeout(Integer.parseInt(restClientTimeout.getText()));
    }
    ObjectTypesConverter converter = new ObjectTypesConverter();
    settings.setDownloadTypesInclude(converter.fromString(typesIncluded.getText()));
    settings.setDownloadTypesExclude(converter.fromString(typesExcluded.getText()));
    settings.setTypesToDownloadLimit(Integer.parseInt(typesDownloadLimit.getText()));
    return settings;
}
Also used : ObjectTypesConverter(com.evolveum.midpoint.studio.util.ObjectTypesConverter) MidPointSettings(com.evolveum.midpoint.studio.impl.MidPointSettings)

Example 2 with ObjectTypesConverter

use of com.evolveum.midpoint.studio.util.ObjectTypesConverter in project midpoint-studio by Evolveum.

the class MidPointSettingsPanel method initInputFields.

private void initInputFields() {
    downloadPattern.setText(settings.getDowloadFilePattern());
    generatedPattern.setText(settings.getGeneratedFilePattern());
    logRestCommunication.setSelected(settings.isPrintRestCommunicationToConsole());
    restClientTimeout.setText(Integer.toString(settings.getRestResponseTimeout()));
    ObjectTypesConverter converter = new ObjectTypesConverter();
    typesIncluded.setText(converter.toString(settings.getDownloadTypesInclude()));
    typesExcluded.setText(converter.toString(settings.getDownloadTypesExclude()));
    typesDownloadLimit.setText(Integer.toString(settings.getTypesToDownloadLimit()));
}
Also used : ObjectTypesConverter(com.evolveum.midpoint.studio.util.ObjectTypesConverter)

Aggregations

ObjectTypesConverter (com.evolveum.midpoint.studio.util.ObjectTypesConverter)2 MidPointSettings (com.evolveum.midpoint.studio.impl.MidPointSettings)1