use of org.codice.ddf.admin.common.fields.common.ContextPath in project admin-console-beta by connexta.
the class GetWhiteListContexts method performFunction.
@Override
public ListField<ContextPath> performFunction() {
List<String> whiteListStrs = getWhitelistContexts(configuratorFactory.getConfigReader());
ListField<ContextPath> whiteListedField = new ListFieldImpl<>(ContextPath.class);
for (String whiteListStr : whiteListStrs) {
ContextPath newContextPath = new ContextPath();
newContextPath.setValue(whiteListStr);
whiteListedField.add(newContextPath);
}
return whiteListedField;
}
Aggregations