Package com.evolveum.midpoint.schema
Class SelectorOptions<T>
- java.lang.Object
-
- com.evolveum.midpoint.schema.SelectorOptions<T>
-
- All Implemented Interfaces:
DebugDumpable
,ShortDumpable
,Serializable
public class SelectorOptions<T> extends Object implements Serializable, DebugDumpable, ShortDumpable
- Author:
- semancik
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description SelectorOptions(ObjectSelector selector, T options)
SelectorOptions(T options)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Constructor Detail
-
SelectorOptions
public SelectorOptions(ObjectSelector selector, T options)
-
SelectorOptions
public SelectorOptions(T options)
-
-
Method Detail
-
create
public static <T> SelectorOptions<T> create(UniformItemPath path, T options)
-
create
public static <T> SelectorOptions<T> create(T options)
-
createCollection
public static <T> Collection<SelectorOptions<T>> createCollection(UniformItemPath path, T options)
-
createCollection
public static <T> Collection<SelectorOptions<T>> createCollection(T options)
-
createCollection
public static <T> Collection<SelectorOptions<T>> createCollection(T options, UniformItemPath... paths)
-
getSelector
public ObjectSelector getSelector()
-
getOptions
public T getOptions()
-
getItemPath
@NotNull public @NotNull UniformItemPath getItemPath(UniformItemPath emptyPath)
-
findRootOptions
public static <T> T findRootOptions(Collection<SelectorOptions<T>> options)
Returns options that apply to the "root" object. I.e. options that have null selector, null path, empty path, ... Must return 'live object' that could be modified.
-
updateRootOptions
public static <T> Collection<SelectorOptions<T>> updateRootOptions(Collection<SelectorOptions<T>> options, Consumer<T> updater, Supplier<T> newValueSupplier)
-
findOptionsForPath
@NotNull public static <T> @NotNull Collection<T> findOptionsForPath(Collection<SelectorOptions<T>> options, @NotNull @NotNull UniformItemPath path)
Finds all the options for given path. TODO could there be more than one? Returns live objects that could be modified by client.
-
isRoot
public boolean isRoot()
-
isRetrievedFullyByDefault
public static boolean isRetrievedFullyByDefault(Class<?> objectType)
-
hasToLoadPath
public static boolean hasToLoadPath(@NotNull @NotNull ItemPath path, Collection<SelectorOptions<GetOperationOptions>> options)
-
hasToLoadPath
public static boolean hasToLoadPath(@NotNull @NotNull ItemPath path, Collection<SelectorOptions<GetOperationOptions>> options, boolean defaultValue)
-
filterRetrieveOptions
public static List<SelectorOptions<GetOperationOptions>> filterRetrieveOptions(Collection<SelectorOptions<GetOperationOptions>> options)
-
extractOptionValues
public static <T> Map<T,Collection<UniformItemPath>> extractOptionValues(Collection<SelectorOptions<GetOperationOptions>> options, Function<GetOperationOptions,T> supplier, PrismContext prismContext)
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
shortDump
public void shortDump(StringBuilder sb)
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
-