on 07-22-2011 1:08 PM
Hi Experts,
I am new to portal development. I have a requirement to access a custom ume attribute in my portal masthead.
I used the IUser,IUserContext, IPortalComponentContext and IPortalComponentProfile Interface for this but no joy. For whatever attribute I access it returns only null either it be standard or custom ume attribute.
To get an Custom UME attribute specific to a logged in user what is the method i should use ??
What is the simplest method by which I can get and the set this attribute in my portal masthead par file.
All suggestions are highly appreciated.
Note: I referred the Forum for similar threads and cannot find a one matching my requirement, either it goes as reading UME attribute in Webdypro or some thing else.
Regards
Anand Sekar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Got the required output
The code line to be used is
IUserMaint userMaint = (IUserMaint)userFact.getMutableUser(username.getUniqueID());
Thanks for all your support.
Regards
Anand Sekar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arun,
Thanks for your reply.
Now I am able to fetch my Custom attribute. Now I tried to set the attribute with a value.
The problem i face here is I am not able to get an instance of logged in user in my userMaint object.
The coding goes like this
IUserMaint userMaint = ???? ;
boolean a = userMaint.setAttribute("com.sap.security.core.usermanagement","xxx",yyyy);
How should i bring in the current user data in userMaint object so that I will set the attribute for the user.
Aniticipating your help at the earliest.
Thanks in Advance
Regards
Anand Sekar
All suggestions are highly appreciated!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.