use of com.evolveum.midpoint.schema.ObjectSelector in project midpoint by Evolveum.
the class LookupTableHelper method findLookupTableGetOption.
public GetOperationOptions findLookupTableGetOption(Collection<SelectorOptions<GetOperationOptions>> options) {
final ItemPath tablePath = new ItemPath(LookupTableType.F_ROW);
Collection<SelectorOptions<GetOperationOptions>> filtered = SelectorOptions.filterRetrieveOptions(options);
for (SelectorOptions<GetOperationOptions> option : filtered) {
ObjectSelector selector = option.getSelector();
if (selector == null) {
// apply to lookup table
continue;
}
ItemPath selected = selector.getPath();
if (tablePath.equivalent(selected)) {
return option.getOptions();
}
}
return null;
}
Aggregations