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 pièces jointes sont établis à l'attention exclusive de
leurs destinataires et sont confidentiels. Si vous recevez ce message par
erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur.
L'internet ne permettant pas d'assurer l'intégrité de ce message, le contenu de
ce message ne représente en aucun cas un engagement de la part de Leroy Merlin.
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm