On 16/05/2012 09:53, Fabio Martelli wrote: > Il giorno 16/mag/2012, alle ore 09.46, ernst Developer ha scritto: > >> Hi, >> >> As I understand it, Syncope supports the concept of derived attributes. >> Derived attributes are configured using apache commons Jexl. >> >> The scenario I am working on at the moment is: >> >> * We have a map of values containing keys that represent values we >> receive in a multivalued attribute; >> * We need to translate the values from the multivalued attribute, by a >> look-up in the map, and produce the value for the corresponding entry in the >> map as result; >> * The resulting derived attribute should contain the list of values, >> based upon the lookup; >> >> Does the Syncope derived attributes implementation support this scenario? If >> so, could you please clarify things for me? > Hi Ernst, > derived attribute implementation doesn't support this scenario.
JEXL expressions defining derived schema are evaluated against plain attribute values [1]: if an user has name: 'Francesco' surname: 'Chicchiriccò' and there is a cn derived schema defined as "name + ' ' + surname", then this user will have cn: 'Francesco Chicchiriccò' Regards. [1] https://cwiki.apache.org/confluence/display/SYNCOPE/Schema%2C+attributes+and+mapping#Schema%2Cattributesandmapping-Attribute -- Francesco Chicchiriccò Apache Cocoon PMC and Apache Syncope PPMC Member http://people.apache.org/~ilgrosso/
