on 11-09-2007 7:34 PM
Hello all,
I would like to use UME API andd UserFactory to set the language for user...
Do you have some examples for english, spanish, french ?
Thanks a lot
regards
Hi Aurélien HENRY,
// You can get the 'UID' from the IUser object (unique name or unique id or hard code it)
String UID = "USER.CORP_LDAP.omcohen";
IUserMaint us = UMFactory.getUserFactory().getMutableUser(UID);
//Setting the Language
us.setLocale(Locale.ENGLISH); // For English
us.setLocale(new Locale("iw")); // For Hebrew
us.save();
us.commit();
//Checking
IUserMaint us1 = UMFactory.getUserFactory().getMutableUser(UID);
response.write("Lang "+us1.getLocale());
Regards,
Omri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.