public final class PluginDependencySupport extends Object
ResolverPluginDependency.| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
Log.
|
| Modifier | Constructor and Description |
|---|---|
private |
PluginDependencySupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
addAttribute(IdPAttribute source,
Map<String,List<IdPAttributeValue<?>>> target)
Adds the values of the given attribute to the target collection of attribute values.
|
static Map<String,List<IdPAttributeValue<?>>> |
getAllAttributeValues(AttributeResolverWorkContext workContext,
Collection<ResolverPluginDependency> dependencies)
Gets the values from all dependencies.
|
static List<IdPAttributeValue<?>> |
getMergedAttributeValues(AttributeResolverWorkContext workContext,
Collection<ResolverPluginDependency> dependencies)
|
static List<IdPAttributeValue<?>> |
getMergedAttributeValues(AttributeResolverWorkContext workContext,
Collection<ResolverPluginDependency> dependencies,
String attributeDefinitionId)
Gets the values, as a single list, from all dependencies.
|
private static void |
mergeAttributes(Map<String,IdPAttribute> sources,
Map<String,List<IdPAttributeValue<?>>> target)
Adds the values of the attributes to the target collection of attribute values indexes by attribute ID.
|
private static void |
mergeAttributeValues(IdPAttribute source,
List<IdPAttributeValue<?>> target)
Adds the values of the given attribute to the set of attribute values.
|
@Deprecated @Nonnull @NonnullElements public static List<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 dependencies@Nonnull @NonnullElements public static List<IdPAttributeValue<?>> getMergedAttributeValues(@Nonnull AttributeResolverWorkContext workContext, @Nonnull@NonnullElements Collection<ResolverPluginDependency> dependencies, @Nonnull String attributeDefinitionId)
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 dependenciesattributeDefinitionId - the attributeID that these values will be associated with.public static Map<String,List<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 mergeAttributes(@Nonnull Map<String,IdPAttribute> sources, @Nullable Map<String,List<IdPAttributeValue<?>>> target)
sources - the source attributestarget - current set attribute values@Nonnull private static void addAttribute(@Nullable IdPAttribute source, @Nullable Map<String,List<IdPAttributeValue<?>>> target)
source - the source attributetarget - current set attribute values@Nonnull private static void mergeAttributeValues(@Nullable IdPAttribute source, @Nonnull List<IdPAttributeValue<?>> target)
source - the source attributetarget - current set attribute valuesCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.