Search in sources :

Example 1 with ContextPath

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;
}
Also used : ListFieldImpl(org.codice.ddf.admin.common.fields.base.ListFieldImpl) ContextPath(org.codice.ddf.admin.common.fields.common.ContextPath)

Aggregations

ListFieldImpl (org.codice.ddf.admin.common.fields.base.ListFieldImpl)1 ContextPath (org.codice.ddf.admin.common.fields.common.ContextPath)1