28 Aug 08:34
WebEngine App Action Isolation
From: <damien.metzler@...>
Subject: WebEngine App Action Isolation
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2008-08-28 06:36:12 GMT
Subject: WebEngine App Action Isolation
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2008-08-28 06:36:12 GMT
Hello,
Using Nuxeo Web Engine, we developp serveral apps that coexist together. In one app (the default one for instance), the Workspace object has several actions like create_page, delete, print. In another app we want that the behavior of the Workspace is handled differently.
Let's say we have a "Layout" app that handles layout objects that are stored in default-domain/workspaces/layout/
The container of all our layouts is a Workspace but we don't want the delete action to be activated, so in the webapp config we deactivate the delete action.
Our problem is that the delete action is disabled in the default application two. One solution to that would be of course to contribute a LayoutRoot document type but is this the right solution or is there a way to isolate webengine apps actions ?
Here is our webapp config :
<extension target="org.nuxeo.ecm.webengine.WebEngineComponent"
point="application-mapping">
<mapping path="/layout/" webapp="layout" document="/default-domain/workspaces/layout/">
</mapping>
</extension>
<extension target="org.nuxeo.ecm.webengine.WebEngineComponent" point="binding">
<binding type="Layout" objectId="Layout"/>
<binding type="Workspace" objectId="LayWorkspace"/>
</extension>
<extension target="org.nuxeo.ecm.webengine.WebEngineComponent" point="webObject">
<object id="LayWorkspace" extends="WebObject">
<actions>
<action id="print" enabled="true">
<permission expression="Read" />
<category>ADMIN_TB_ACTIONS</category>
</action>
<action id="delete" enabled="false" />
<action id="create_page" enabled="false" / >
<action id="addlayout" enabled="true">
<permission expression="Write AND facet=Folderish" />
<category>ADMIN_TB_ACTIONS</category>
</action>
</actions>
</object>
</extension>
--
Damien METZLER
SIF - Leroy Merlin France
Ce message et toutes les pieces jointes sont etablis a l'attention exclusive de leurs destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. L'internet ne permettant pas d'assurer l'integrite de ce message, le contenu de ce message ne represente en aucun cas un engagement de la part de Leroy Merlin.
_______________________________________________ ECM mailing list ECM@... http://lists.nuxeo.com/mailman/listinfo/ecm
RSS Feed