cancel
Showing results for 
Search instead for 
Did you mean: 

Modify Identity store Entry via VDS Extension Class

Former Member
0 Kudos

Hi Everyone,

There is a use case where I'm trying to modify one of the attributes for an entry in Idstore via VDS Extension Class.

I'm using the Class MICUtil and the following method MVDOperationResult to achieve this but so far have been unsuccessful:

MVDOperationResult modify(java.lang.String aDatabaseConnString, java.lang.String is_id, java.lang.String aID, java.lang.String aAttrValue, java.util.Vector aValues, boolean cacheConnections)

Modify entry in MIC Idstore

Parameters:

     aDatabaseConnString - JDBC Connection string

     is_id - Idstore ID

     aID - attrname (and see below) of the entry to modify

     aAttrValue - attrname to modify

     aValues - Vector of MVDModAttrValues

     cacheConnections - If true, cache the connection to the database

My code looks like the following where I set all the Parameters:

//Database, idstore casheconnection have already set

String Attribute = "Z_ATTRIBUTE"

Int setAttribute =  1;

String MSKEYVALUE = "TEST123"

Vector myVector = new Vector();

myVector.addElement(new Integer(setAttribute).toString());

MVDLogger.Debug("Updating Z_Attribute to : " + myVector.get(0));

MVDOperationResult resetcounter = MICUtil.modify(dsdatabase,idstore,MSKEYVALUE,Attribute,myVector, cacheconnection);

Does anyone know on how the Vector should look like for the method MVDOperationResult modify?

Or is there another way to modify an attribute for an entry in MIC Idstore via the extension class???

Any help would be appreciated.

Thank you,

KV

Accepted Solutions (0)

Answers (2)

Answers (2)

mvoros
Active Contributor
0 Kudos

Hi,

don't have any experience with this but I am guessing that vector needs to contains instances of class MVDModAttrValue. Check page 10 of this presentation. It briefly describes this class with its attributes. I would also play with aID and aAttrValue. They might have different meaning than what you think. But I am guessing here.

Cheers

former_member2987
Active Contributor
0 Kudos

Martin,

Excellent Document.  Thanks for sharing!

former_member2987
Active Contributor
0 Kudos

Hi Kautilya,

This is a pretty tough part of the IDM suite.

I assume you've looked at the JavaDoc?

Matt

Former Member
0 Kudos

Hi Matt,

Yes I have checked the JavaDoc.

With great help from Norman Nuernberger I have got a few other things working in the extension class except this one.

I will write a blog about it once resolved

KV