private void executeResolveOptions(@NotNull Containerable containerable, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult result) { if (options == null) { return; } for (SelectorOptions<GetOperationOptions> option: options) { if (GetOperationOptions.isResolve(option.getOptions())) { ObjectSelector selector = option.getSelector(); if (selector != null) { ItemPath path = selector.getPath(); ItemPath.checkNoSpecialSymbolsExceptParent(path); executeResolveOption(containerable, path, option, task, result); } } } }
public GetOperationOptions findLookupTableGetOption(Collection<SelectorOptions<GetOperationOptions>> options) { Collection<SelectorOptions<GetOperationOptions>> filtered = SelectorOptions.filterRetrieveOptions(options); for (SelectorOptions<GetOperationOptions> option : filtered) { ObjectSelector selector = option.getSelector(); if (selector == null) { // Ignore this. These are top-level options. There will not // apply to lookup table continue; } if (LookupTableType.F_ROW.equivalent(selector.getPath())) { return option.getOptions(); } } return null; }
public static boolean isExplicitlyIncluded(UniformItemPath path, Collection<SelectorOptions<GetOperationOptions>> options) { List<SelectorOptions<GetOperationOptions>> retrieveOptions = filterRetrieveOptions(options); if (retrieveOptions.isEmpty()) { return false; } for (SelectorOptions<GetOperationOptions> option : retrieveOptions) { ObjectSelector selector = option.getSelector(); if (selector != null) { UniformItemPath selected = selector.getPath(); if (!isPathInSelected(path, selected)) { continue; } } RetrieveOption retrieveOption = option.getOptions().getRetrieve(); switch (retrieveOption) { case INCLUDE: return true; case EXCLUDE: case DEFAULT: default: return false; } } return false; }
private static SelectorQualifiedGetOptionType selectorOptionToSelectorQualifiedGetOptionType(SelectorOptions<GetOperationOptions> selectorOption) { OptionObjectSelectorType selectorType = selectorToSelectorType(selectorOption.getSelector()); GetOperationOptionsType getOptionsType = getOptionsToGetOptionsType(selectorOption.getOptions()); SelectorQualifiedGetOptionType selectorOptionType = new SelectorQualifiedGetOptionType(); selectorOptionType.setOptions(getOptionsType); selectorOptionType.setSelector(selectorType); return selectorOptionType; }
ObjectSelector selector = option.getSelector(); if (selector != null) { UniformItemPath selected = selector.getPath();