Foren

Company limit for portlet

thumbnail
Pius Onobhayedo, geändert vor 11 Jahren.

Company limit for portlet

Junior Member Beiträge: 25 Beitrittsdatum: 23.04.09 Neueste Beiträge
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, geändert vor 11 Jahren.

RE: Company limit for portlet

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
The simple way is to create different roles for companyId and assign portlet permissions.
Gopinath Guptha, geändert vor 11 Jahren.

RE: Company limit for portlet

Junior Member Beiträge: 25 Beitrittsdatum: 10.08.10 Neueste Beiträge
Hi, Can you let me know how you are able achieve this for themes?

Regards,
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Company limit for portlet

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
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, geändert vor 9 Jahren.

RE: Company limit for portlet

Junior Member Beiträge: 65 Beitrittsdatum: 25.03.10 Neueste Beiträge
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.