Skip to Content
author's profile photo Former Member
Former Member

get and set WPC::Region attribute

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é

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 03:52 PM

    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é

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.