cancel
Showing results for 
Search instead for 
Did you mean: 

get and set WPC::Region attribute

Former Member
0 Kudos

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é

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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é