How to assign roles using SPML 2 API

Hello Experts,

I'm attempting to assign roles and organisations to user while creating them (using AddRequest) through SPML2 interface of IDM 7.0.

The problem is that IDM 7.0 seems to expect role information to come in the form of a datatype implementing java.util.List interface (e.g. ArrayList), but in the open SPML 2 toolkit there doesn't seem to be a way to construct input data that'll hold ArrayList datatype. All it offers is String datatype, by means of DSMLAttr or DSMLValue classes.

Could someone explain where I'm going wrong here, preferably with some sample code to do it the correct way.

Thanks in advance,

-Anand

[669 byte] By [AndyDeva] at [2007-11-27 3:44:30]
# 1

Problem Solved !!!

The data-type conversion needs to be performed in the SPML2 Person Form. Add a Field called waveset.roles and map it to the SPML2 attribute name being used in ur client. It's best done through a rule.....

If anybody is facing similar problem and need more details....please email me @ iamanand@yours.com

AndyDeva at 2007-7-12 8:48:10 > top of Java-index,Web & Directory Servers,Directory Servers...