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;
}
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()));
}
Aggregations