[
http://jira.nuxeo.org/browse/NXP-1367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31980#action_31980
]
Florent Guillaume commented on NXP-1367:
----------------------------------------
To have a different UI for different users, you could do the following:
- define a theme for each UI (or a different page of the same theme).
- define a new negociation scheme for the theme by defining a new class
implementing org.nuxeo.theme.negotiation.Scheme, there are many examples for
instance org.nuxeo.ecm.webapp.theme.negotiation.LocalTheme or
org.nuxeo.theme.jsf.negotiation.theme.CookieValue,
- register that scheme in a strategy, and use that strategy in your
theme-contrib.xml, see the default
nuxeo-platform-webapp-core/src/main/resources/OSGI-INF/theme-contrib.xml where
the nuxeo5 strategy is defined and used.
So your Scheme implementation must check the group of the current user, it can
do so with something like:
ExternalContext externalContext = ((FacesContext)
context).getExternalContext();
NuxeoPrincipal principal = (NuxeoPrincipal)
externalContext.getUserPrincipal();
then check the groups of the principal.
> profil acces
> ------------
>
> Key: NXP-1367
> URL: http://jira.nuxeo.org/browse/NXP-1367
> Project: Nuxeo Enterprise Platform 5
> Issue Type: Question
> Components: Web UI
> Reporter: Jean-Paul Mochet
> Assignee: Thierry Delprat
>
> Hi,
> Is it possible (what is the computing effort cost) to access a web UI with
> different profils ?
> For example we want to allow two users (the first administrator, the second
> user) having two diffent profils to access the same projet with different web
> UI vues.
> Best regards
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets