rkm258 Posted March 3, 2009 Share Posted March 3, 2009 Hi, I tried updating/adding User Profile Attributes. But i just donot see the changes in the JasperServer database in jiprofileattribute table. Let me know if there is anything wrong that i'am doing. For ex: I tried updating a user's attribute value as below, but i donot see the changes User u = userService.getUser(ctx,userName); List l = u.getAttributes(); ProfileAttribute p = (ProfileAttribute)l.get(0); //Obtained the first attribute p.setAttrValue("newValue"); //New value to a attribute userService.putUser(ctx,u); //Saving changes to user Ram Link to comment Share on other sites More sharing options...
rkm258 Posted March 3, 2009 Author Share Posted March 3, 2009 Hi, Based on the documentation in ultimate guides, it seems the values in this profile attribute table, jiprofileattribute of JasperServer database, have to be entered manually and cannot be done through the API. Correct me if i'am wrong. Any inputs will be of help, as i need these attributes to define each and every user of my system.ThanksRam Link to comment Share on other sites More sharing options...
Solution swood Posted March 10, 2009 Solution Share Posted March 10, 2009 There is a ProfileAttributeService that can maintain these attributes. We should extend the User and Role APIs to allow updates like you were attempting. ShermanJaspersoft Link to comment Share on other sites More sharing options...
wildman8888 Posted June 11, 2012 Share Posted June 11, 2012 how do you declare userservice in userService.getUser? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now