Tuesday, 13 September 2011

code to update a attribute in OIM

public void updateofficecode(String uid,String locat){
System.out.println("Inside officecode method");
HashMap usermap=new HashMap();
HashMap code=new HashMap();
try{
usermap.put("Users.User ID", uid);
System.out.println("UID==>"+uid);
tcResultSet moresult=moUserUtility.findUsers(usermap);
System.out.println("Officecode==>"+officecode);
code.put("Users.User ID", uid);
code.put("Users.locat){",locat){);
moUserUtility.updateUser(moresult, code);
System.out.println("locat updated");

}catch(Exception e){
System.out.println("Exception occured-->"+e);

}
}

No comments:

Post a Comment