on 01-30-2008 11:36 AM
Hello all,
I want to create an IView which enables a user to change his region which is evaluted by the Web Page Composer. I know there already exists an IView in the EP which offers this to an user but I need to create an own one, while I want to custemize the appearance und implement some other functionality.
Till now I use the
request.getUser()
method to retrive the current user and a instance of
IUserFactory
to retrive a mutable user object. But there exists no method to change the region attribute. What can I do?
Thank you in advance
René
Hello,
I solved the problem by my self. The hint is that some user attributes can be accessed by the generic method getAttribute( String namespace, String attributename) which is offered by the IPrincipial interface. The only thing to know is the name of the attribute and the namespace in which it is store in the User Management Engine (UME). Releated to my question the attribute name and namespace of the wpc:region attribute is:
namespace: wpc_wcm
attributename: wpc_wcm_region
Further, to set a value to this attribute, the method setAttribute( String namespace, String attributename, String[] value) can be used. This method is offered by the IUserMaint interface.
greetings
René
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.