on 02-16-2015 11:13 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kautilya,
This is a pretty tough part of the IDM suite.
I assume you've looked at the JavaDoc?
Matt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.