Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Laurent RUAUD
Shared and user preferences
22 de Maio de 2008 00:33
Resposta

Laurent RUAUD

Ranking: New Member

Mensagens: 22

Data de entrada: 5 de Maio de 2008

Mensagens recentes

Hi all.

I'm a bit confused as how Liferay manage portlet preferences.
There are several options that I though I understood but while testing them, I didn't get what I was expected.
Maybe I'm also not clear with communities/users/pages/layouts and such.

Is someone able to tell me if my following conclusions are right?

1. A portlet with preferences-company-wide set to true will always share its preferences between all users/communities and pages.
2. On personnal pages, user can be consider both as a user and as an admin, thus preferences-owned-by-group will have no effects on personnal pages.
3. Instanceable portlet instances can be considered as different portlets, thus preferences-unique-per-layout has no effects and preferences will always be unique across all pages.

Then, to have the following behaviour, do my according configurations are correct?

1. My CMS portlet should display a different content for each instance and should only be configurable by an administrator. instanceable=true, pref-company-wide=false, pref-unique-per-layout=true, pref-owned-by-group=true

2. My RSS portlet (not the liferay's one) displays the user's list of feeds ; feeds being choosen in a list defined by an admin.
instanceable=false, pref-company-wide=false, pref-unique-per-layout=false, pref-owned-by-group=true
I think this one is not possible as Liferay doesn't support both user unique preferences and user shared preferences at the same time.

Please, any help will be very helpful.
Thanks in advance.

Laurent.
Laurent RUAUD
RE: Shared and user preferences
29 de Maio de 2008 00:19
Resposta

Laurent RUAUD

Ranking: New Member

Mensagens: 22

Data de entrada: 5 de Maio de 2008

Mensagens recentes

I made lots of tests in order to answer my questions and here are the results.
May it help anybody else.

For non instanceable portlet, I got the following:
  1. owned-by-group=false, unqiue-per-layout=false: shared for a user between pages and communities, different for each user
  2. owned-by-group=false, unqiue-per-layout=true: different for each page and each user, and thus each community
  3. owned-by-group=true, unqiue-per-layout=false: shared inside a community (all users and pages), different for each community
  4. owned-by-group=true, unqiue-per-layout=true: shared for users but different for each page
  5. company-wide=true: shared for users, pages and communities


For instanceable portlet, things changed a bit and I got the following:
  1. owned-by-group=false, unqiue-per-layout=false: different for each page and each user, and thus each community
  2. owned-by-group=false, unqiue-per-layout=true: different for each page and each user, and thus each community
  3. owned-by-group=true, unqiue-per-layout=false: shared inside a community (all users and pages), different for each community
  4. owned-by-group=true, unqiue-per-layout=true: shared for users but different for each instance
  5. company-wide=true: shared for users, pages and communities


Cheers.
kuhajeyan gunaratnam
RE: Shared and user preferences
5 de Dezembro de 2008 00:05
Resposta

kuhajeyan gunaratnam

Ranking: New Member

Mensagens: 15

Data de entrada: 24 de Setembro de 2008

Mensagens recentes

Thanks dude it helped me!
Amit Kumar Singh
RE: Shared and user preferences
29 de Maio de 2011 21:35
Resposta

Amit Kumar Singh

Ranking: Junior Member

Mensagens: 71

Data de entrada: 11 de Outubro de 2010

Mensagens recentes

Laurent RUAUD:
I made lots of tests in order to answer my questions and here are the results.
May it help anybody else.

For non instanceable portlet, I got the following:
  1. owned-by-group=false, unqiue-per-layout=false: shared for a user between pages and communities, different for each user
  2. owned-by-group=false, unqiue-per-layout=true: different for each page and each user, and thus each community
  3. owned-by-group=true, unqiue-per-layout=false: shared inside a community (all users and pages), different for each community
  4. owned-by-group=true, unqiue-per-layout=true: shared for users but different for each page
  5. company-wide=true: shared for users, pages and communities


For instanceable portlet, things changed a bit and I got the following:
  1. owned-by-group=false, unqiue-per-layout=false: different for each page and each user, and thus each community
  2. owned-by-group=false, unqiue-per-layout=true: different for each page and each user, and thus each community
  3. owned-by-group=true, unqiue-per-layout=false: shared inside a community (all users and pages), different for each community
  4. owned-by-group=true, unqiue-per-layout=true: shared for users but different for each instance
  5. company-wide=true: shared for users, pages and communities


Cheers.



Thanks dear but it's not working for me. I have the group pages for organization. Now suppose two user A & B are existing. User A has draged the portlet X on page. Now when User B will get login, he is also able to see the X portlet. But i don't want to show the X portlet to User B. Please let me know how can i configured the group pages for same organization members.
Christophe Cariou
RE: Shared and user preferences
24 de Outubro de 2011 06:49
Resposta

Christophe Cariou

Ranking: Junior Member

Mensagens: 40

Data de entrada: 1 de Outubro de 2007

Mensagens recentes

Hello Laurent,

does it work only for new portlet plugins or can it be applied to liferay legacy portlets ?

For example, making the AssetPublisher portlet user-customisable on common pages ?

Regards
Laurent RUAUD
RE: Shared and user preferences
28 de Outubro de 2011 00:09
Resposta

Laurent RUAUD

Ranking: New Member

Mensagens: 22

Data de entrada: 5 de Maio de 2008

Mensagens recentes

This applies to every portlet but I'm not sure legacy portlets have been developed to store user preferences.
It's up portlet developer to decide to use this storage system or any other (don't know for AssetPublisher portlet).
Alireza Zare
RE: Shared and user preferences
29 de Junho de 2012 05:13
Resposta

Alireza Zare

Ranking: Regular Member

Mensagens: 108

Data de entrada: 3 de Setembro de 2010

Mensagens recentes

Supper!
<preferences-company-wide>true</preferences-company-wide> Works fine!

Thanks a lot