Search in sources :

Example 1 with ObjectSelector

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;
}
Also used : GetOperationOptions(com.evolveum.midpoint.schema.GetOperationOptions) ObjectSelector(com.evolveum.midpoint.schema.ObjectSelector) SelectorOptions(com.evolveum.midpoint.schema.SelectorOptions)

Aggregations

GetOperationOptions (com.evolveum.midpoint.schema.GetOperationOptions)1 ObjectSelector (com.evolveum.midpoint.schema.ObjectSelector)1 SelectorOptions (com.evolveum.midpoint.schema.SelectorOptions)1