cancel
Showing results for 
Search instead for 
Did you mean: 

Role based personalization of theme programitically

Former Member
0 Kudos
62

Hi

We have a requirement to use role based customization of themes.

If user logs in and having role1 assigned, then use them1

If user logs in and having role2 assigned, then use them2

One method which I already know is creating different desktops for these themes.

And use main rule to load theme accordingly.

But how can this be achieved programitically.

In portal which par file is executed after user gives his login details in login screen. (Which I guess will have to be modified)

As in this par file I will user Iuserfactory api to get assigned roles.

Thanks

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Saurabh,

You can check the following link.

Hope it helps.

Regards,

Khushboo

Former Member
0 Kudos

I will try it and then get back with my comments.

Thanks for replying.

hofmann
Active Contributor
0 Kudos

Hi,

why do you want to do this programatically? The portal offers a standard way to assign a theme to an user.

You should take a look at how the portal is doing this theme switch: the portal offers a standard way for customizing the theme. The administrator only assings x themes to the desktop, which one will get activated is a users choice (portal personalization for the end-user)

Search for how the personalization component is doing this, maybe you can reuse this code.

br

Tobias

Former Member
0 Kudos

Hi,

You can search for Login Module for this. But I did not understand what you want to do.

Former Member
0 Kudos

Saurabh,

there are many par files that will be called when portal is loading like com.sap.portal.navigation.masthead ,com.sap.portal.navigation.toplevel,com.sap.portal.navigation.contentarea

etc

Thanks

Bala Duvvuri