Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Predicate type (basic:Predicate prior to V3.2) is a PolicyRule which returns true if a supplied condition/predicate Spring bean evaluates to true. The bean must be of type Predicate<ProfileRequestContext>, and the software includes a large variety of existing examples as well as the ability to implement new ones via scripts.

See here the ExternalAttributePluginActivationConditions topic for some more details.

In the vast majority of cases, using this plugin requires additional native Spring configuration outside of the main filter policy where the plugin is used. You can define the bean(s) required in the global.xml file, or to scope them more "correctly", you can create your own resource and add it to the collection Spring resources loaded into the AttributeFilterService via services.xml

...

NameTypeDescription
rulePredicateRefBean referenceRequired, name of an externally-defined Spring Bean of type Predicate<ProfileRequestContext>
contextStrategyRefBean referenceOptional, advanced setting to supply an alternative lookup function to locate the ProfileRequestContext, this is the name of an externally-defined Spring Bean of type Function<AttributeFilterContext,ProfileRequestContext>

Child Elements

None

Example

...