On Oct 8, 2008, at 4:05 AM, pradeep reddy wrote:

I am sorry , i am digging a lot on this issue and i come to know that how much stupid question i asked. here comes my real question, if i want to get how many roles a user has, then , whether userprinciple object has all the roles to which a user has been assigned?

If want to access the SPI spring beans in my managed bean, how to do that?

You can use Jetspeed Services to get the User Manager service (bean), and from there get the roles for a user with an api. here is a tutorial:

http://portals.apache.org/tutorials/jetspeed-2/05/jetspeed-service.html


Because i can use the SPI class to find how many roles a user has.

Don't recommend using the SPI class but the high level UserManager or RoleManager services as the SPIs are going away in 2.2



I am currently using _user/<user-name> folder to place the default pages for the user. If i want to change the default pages based on the user role? then what configurations i need to make?


You can do this with the seed (XML) data when creating your portal, by assigning the profiling rule for a user or this can be accomplished in the user administration portlet, or with the self-registration portlet Here are some nice screen shots to help you, look for the "Default Profile for new user" field

http://portals.apache.org/jetspeed-2/faq.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to