public final class PluginDependencySupport extends Object
ResolverPluginDependency.| Modifier | Constructor and Description |
|---|---|
private |
PluginDependencySupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
addAttributeValues(IdPAttribute source,
Map<String,Set<IdPAttributeValue<?>>> target)
Adds the values of the given attribute to the target collection of attribute values.
|
private static void |
addAttributeValues(IdPAttribute source,
Set<IdPAttributeValue<?>> target)
Adds the values of the given attribute to the set of attribute values.
|
private static void |
addAttributeValues(Map<String,IdPAttribute> sources,
Map<String,Set<IdPAttributeValue<?>>> target)
Adds the values of the attributes to the target collection of attribute values indexes by attribute ID.
|
static Map<String,Set<IdPAttributeValue<?>>> |
getAllAttributeValues(AttributeResolverWorkContext workContext,
Collection<ResolverPluginDependency> dependencies)
Gets the values from all dependencies.
|
static Set<IdPAttributeValue<?>> |
getMergedAttributeValues(AttributeResolverWorkContext workContext,
Collection<ResolverPluginDependency> dependencies)
Gets the values, as a single set, from all dependencies.
|
@Nonnull @NonnullElements public static Set<IdPAttributeValue<?>> getMergedAttributeValues(@Nonnull AttributeResolverWorkContext workContext, @Nonnull@NonnullElements Collection<ResolverPluginDependency> dependencies)
ResolverPluginDependency.getDependencyAttributeId() does not equal null). It
is therefore used inside Attribute definitions which only process a single attribute as input.
NOTE, this method does *not* actually trigger any attribute definition or data connector resolution, it only looks for the cached results of previously resolved plugins within the current work context.
workContext - current attribute resolver work contextdependencies - set of dependenciespublic static Map<String,Set<IdPAttributeValue<?>>> getAllAttributeValues(@Nonnull AttributeResolverWorkContext workContext, @Nonnull Collection<ResolverPluginDependency> dependencies)
getMergedAttributeValues(AttributeResolverWorkContext, Collection) for all attributes
resolved by all the given dependencies. This is therefore used when an attribute definition may have multiple
input attributes (for instance scripted or templated definitions).
NOTE, this method does *not* actually trigger any attribute definition or data connector resolution, it only looks for the cached results of previously resolved plugins within the current work context.
workContext - current attribute resolver work contextdependencies - set of dependencies@Nonnull private static void addAttributeValues(@Nonnull Map<String,IdPAttribute> sources, @Nullable Map<String,Set<IdPAttributeValue<?>>> target)
sources - the source attributestarget - current set attribute values@Nonnull private static void addAttributeValues(@Nullable IdPAttribute source, @Nullable Map<String,Set<IdPAttributeValue<?>>> target)
source - the source attributetarget - current set attribute values@Nonnull private static void addAttributeValues(@Nullable IdPAttribute source, @Nonnull Set<IdPAttributeValue<?>> target)
source - the source attributetarget - current set attribute valuesCopyright © 1999–2014. All rights reserved.