Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Overview

Identified by type="Template", this AttributeResolver plugs values from one or more existing attributes into a template string that can combine the original attributes into a new attribute.

To use this plugin, the plugins.so shared library must be loaded via the <OutOfProcess> element's <Library> element.

The template syntax consists of a string containing simple tokens of the form $id where "id" is the attribute ID whose value should be plugged into the string. The attributes to combine are specified in a sources XML attribute (see below). The new attribute is named with a dest XML attribute.

The first attribute object found with a particular ID is used, and all of the attributes supplied must contain the same number of values, or the plugin is not applied. It works best with simple combinations of single-valued attributes.

Reference

Attributes

Name

Type

Req?

Description

sourceswhitespace-delimited list of stringsY

Identifies the attribute IDs of the input attribute(s) to process

dest stringY

Used as the ID of the attribute created by the plugin

Child Element

Name

Cardinality

Description

<Template>Exactly 1

The content of the element is the template string to apply in constructing the new attribute's value(s)

Example

Template example
<AttributeResolver type="Template" sources="givenName sn" dest="displayName">
    <Template>$givenName $sn</Template>
</AttributeResolver>
  • No labels