Foros de discusión

Company limit for portlet

thumbnail
Pius Onobhayedo, modificado hace 11 años.

Company limit for portlet

Junior Member Mensajes: 25 Fecha de incorporación: 23/04/09 Mensajes recientes
Hello all,

I would like to restrict some portlets deployed on Liferay 6.1 to specific companies (with different company ids) set up on the portal. Is there a way to do that? I know that company-limit can be indicated for themes. Is there an equivalent setting for portlets?

Thank you.
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Company limit for portlet

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
The simple way is to create different roles for companyId and assign portlet permissions.
Gopinath Guptha, modificado hace 11 años.

RE: Company limit for portlet

Junior Member Mensajes: 25 Fecha de incorporación: 10/08/10 Mensajes recientes
Hi, Can you let me know how you are able achieve this for themes?

Regards,
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Company limit for portlet

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
If you have a new question, please create a new thread. I won't be answering you further on this thread and would appreciate if you do not reply to this thread again on your question.

Check look-and-feel.xml
http://docs.liferay.com/portal/6.0/definitions/liferay-look-and-feel_6_0_0.dtd.org.html


<!--
The company-limit element specifies a list of company ids that can access the
themes in this LAF archive. If company-limit is not set, then every company in
the portal has access to all of the themes in this LAF archive. If company-limit
is set, then the company ids will be included or excluded based on the
company-includes and company-excludes elements. If there is a disagreement
between company-includes and company-excludes, company-excludes takes
precedence.
-->
<!ELEMENT company-limit (company-includes?, company-excludes?)>

<!--
The company-includes element specifies a list of company ids that will have
access to the themes in this LAF archive.
-->
<!ELEMENT company-includes (company-id*)>

<!--
The company-excludes element specifies a list of company ids that will not have
access to the themes in this LAF archive.
-->
<!ELEMENT company-excludes (company-id*)>

<!--
The company-id element must have either the name or pattern attributes
specified. If the name attribute is specified, then the exact company id is
either included or excluded, depending on whether the company-id element is
inside the company-includes element or company-excludes element. If the pattern
attribute is specified, then a regular expression match is applied to the
pattern which will determine whether a company id is included or excluded.
-->
<!ELEMENT company-id (#PCDATA)>
thumbnail
Orin Fink, modificado hace 9 años.

RE: Company limit for portlet

Junior Member Mensajes: 65 Fecha de incorporación: 25/03/10 Mensajes recientes
Hitoshi,

Thanks for pointing to the DTD and the information therein. However, I was looking at this and have a question regarding what is necessary here. If in fact the actual company id (the unique id that is assigned by the portal arbitrarily) is needed, then this would be difficult to manage as the IDs would likely be different across different dev/qa/stg/prod environment. Do you have an example of this being used in the real world? It would be ideal if the company include/exclude could be based off from the webId that might be easier and/or more consistent.

Any insight? Thanks for your input as always.