Message Boards

How to separate layout sets by user's roles?

thumbnail
Zheng Han, modified 16 Years ago.

How to separate layout sets by user's roles?

Junior Member Posts: 27 Join Date: 5/14/07 Recent Posts
HI,

As we know,one user may have more than one role(not default roles) at a time.

In my case,each role of a user was attached with many portlets.

The result is that there are too many portlets in one page,if a user have more than one role.(suppose users are not smart enough to close even one of them...)

I can't use tabs to separate them,since tabs are used for other purpose.

So I think I must put portlets attached with different roles to different layout sets.

Giving each user one or more communities respect to their role,and use these communities' private layout to separate portlets with different roles can be a solution.But it causes performance problem when the amount of user get larger and larger.

Is there any better solutions?

Thanks for reading this long post...

thanks a again for help!
thumbnail
Roman Hoyenko, modified 16 Years ago.

RE: How to separate layout sets by user's roles?

Liferay Master Posts: 878 Join Date: 10/8/07 Recent Posts
I don't think you need to use roles for portlet management.

As you said, communities is a better approach. You can create user groups and different communities. You can put your portlets on different communities pages and assign user groups to communities. Then users that belong to different communities will only see the communities they supposed to see. And you won't have too many portlets in one place.
thumbnail
Zheng Han, modified 16 Years ago.

RE: How to separate layout sets by user's roles?

Junior Member Posts: 27 Join Date: 5/14/07 Recent Posts
nice to see ya again!

Yes , it's a good way .

The question is , how to make these layouts private for each user?

I must give users permission to add ,close portlets, and these actions should not affect other user in the same "group"...emoticon
thumbnail
Roman Hoyenko, modified 16 Years ago.

RE: How to separate layout sets by user's roles?

Liferay Master Posts: 878 Join Date: 10/8/07 Recent Posts
Zheng Han:
nice to see ya again!

Yes , it's a good way .

The question is , how to make these layouts private for each user?

I must give users permission to add ,close portlets, and these actions should not affect other user in the same "group"...emoticon


Well, you can create community and add only one user there. It would be his "private" community, because he is only one seeing it.
thumbnail
Zheng Han, modified 16 Years ago.

RE: How to separate layout sets by user's roles?

Junior Member Posts: 27 Join Date: 5/14/07 Recent Posts
Roman Hoyenko:

Well, you can create community and add only one user there. It would be his "private" community, because he is only one seeing it.


Then, what will happen when the amount of users get larger and larger?

Someone in this forum said it would cause performance problem.

Is that true?
thumbnail
Roman Hoyenko, modified 16 Years ago.

RE: How to separate layout sets by user's roles?

Liferay Master Posts: 878 Join Date: 10/8/07 Recent Posts
Well, that's the downside of all the users being able to have their own community.

I don't think it will get too slow though. Even if it is thousands of users db queries should be pretty fast.

You can try to create a couple of thousands of users and communities progrmatically and see how it works.
thumbnail
Zheng Han, modified 16 Years ago.

RE: How to separate layout sets by user's roles?

Junior Member Posts: 27 Join Date: 5/14/07 Recent Posts
emoticonthanks

I'll try.