on 12-10-2008 3:06 PM
Hi
Is it possible to update attributes e.g Language in UME via security.api ?.
Thanks
Damien
Thanks guys, points awarded ! ..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Actually i have nt tried that but have an idea that theer is an attribute for locale.
Anyway if ur issue is resolved.
Plz close the thread.
Thanks & regrads,
Lokesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Actually for setting the language i am not sure but we have a predefined attribute locale.
For doing this .
IUserFactory userfact = UMFactory.getUserFactory();
String userid = "test";
IUserMaint user = userfact.getMutableUser(userfact.getUserByLogonID(userid).getUniqueID());
user.setCity("Hyderabad");
user.setLocale("EN");
user.setFirstNmae("lokesh");
user.setFirstNmae("Kamana");
user.commit();
Thanks & Regards,
Lokesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Damien,
Lokesh has given good input but user.setLocale("EN"); may not work as such because method setLocale
public boolean setLocale(java.util.Locale locale).
does not accept String parameter.
I tried it following way and it worked for me.
IUserMaint user = UMFactory.getUserFactory().getMutableUser(UMFactory.getUserFactory().getUserByLogonID("userid").getUniqueID());
Locale deLocale = new Locale("de", "DE");
user.setLocale(deLocale);
user.commit();
Obviously, "userid" needs to be replaced with a real User ID.
After this, refresh the browser and all navigation for user mapped to userid will be in German. You can get more information about Locale [here|http://java.sun.com/developer/technicalArticles/J2SE/locale/].
Hope it helps,
Vishwas.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.