Olivier Adam | 7 May 17:48
Picon

Re: Action id="logout" in the actions-contrib.xml

Does the META-INF/MANIFEST.MF file contains the component name 
"org.nuxeo.ecm.actions" in the Require-Bundle property ?

For example :
--------------------------------------

Manifest-Version: 1.0
Bundle-ManifestVersion: 1
Bundle-Name: WEB ACAREN Plugin
Bundle-SymbolicName: fr.gouv.education.acrennes.web;singleton:=true
Bundle-Version: 1.0.0
Bundle-Vendor: Nuxeo
Provide-Package: fr.gouv.education.acrennes.web
Require-Bundle: org.nuxeo.ecm.webapp.core,
 org.nuxeo.ecm.platform.ui,
 org.nuxeo.ecm.webapp.ui,
 org.nuxeo.ecm.platform.archive.web,
 org.nuxeo.ecm.platform.notification.web,
 org.nuxeo.ecm.platform.notification.core,
 org.nuxeo.ecm.platform.archive.web,
 org.nuxeo.ecm.platform.io.web,
 org.nuxeo.ecm.platform.filemanager.core,
 org.nuxeo.ecm.actions,
 org.nuxeo.ecm.platform.forum
Nuxeo-Component:
 OSGI-INF/acaren-actions-contrib.xml,
 OSGI-INF/acaren-ecm-types-contrib.xml,
 OSGI-INF/acaren-directories-contrib.xml,
 OSGI-INF/acaren-htmleditor-contrib.xml,
 OSGI-INF/acaren-searchui-contrib.xml,
 OSGI-INF/acaren-search-types-contrib.xml,
 OSGI-INF/acaren-querymodel-contrib.xml,
 OSGI-INF/acaren-notification-contrib.xml,
 OSGI-INF/acaren-nxfilemanager-plugins-contrib.xml
Nuxeo-RequiredBy: org.nuxeo.ecm.war

Daniel CERQUEIRA a écrit :
> Hi all,
>
> I try to define the  <action id="logout"> at false (enabled="false") 
> in the "actions-contrib.xml" for not to show in the header 
> (USER_SERVICES) " Log out " and " Log in ".
> But I always see in the header "Log out " and "Log in".
>
> It's normal?
>
> Thx
>
>
> *_My XML CODE_
>
> *actions-contrib.xml
> ------------------------------------------------------------------------------------------*
> *
> <extension target="org.nuxeo.ecm.platform.actions.ActionService"
>     point="actions">
> ....
> ...
> ...
>
>   <action id="logout" enabled="false" />
>
> ...
> ...
> ...
>
> </extension>
>
>
> *
> _The NUXEO CODE_*
>
> actions-contrib.xml
> ----------------------------------------------------------------------------------------------------
> <extension target="org.nuxeo.ecm.platform.actions.ActionService"
>     point="actions">
>
>     <!-- server actions -->
>
>     <action id="user_dashboard" link="user_dashboard" enabled="true"
>       label="command.user_dashboard" order="10">
>       <category>USER_SERVICES</category>
>       <filter id="user_dashboard_enabled">
>         <rule grant="true">
>           <condition>#{userServicesContext.dashboardEnabled}</condition>
>         </rule>
>       </filter>
>     </action>
>
>     <action id="logout" link="#{loginLogoutAction.logout}" enabled="true"
>       label="command.logout" order="200">
>       <category>USER_SERVICES</category>
>     </action>
>
>     <action id="user_manager" link="#{userManagerActions.viewUsers}"
>       enabled="true" label="command.manageMembers" order="20">
>       <category>USER_SERVICES</category>
>       <filter id="user_manager">
>           <rule grant="true">
>               
> <condition>#{userServicesContext.userManagerEnabled}</condition>
>           </rule>
>       </filter>
>     </action>
>
> .....
> ....
> ....
>   </extension>
>
>
>
> -- 
> CERQUEIRA Daniel
> Asyres
> 6, 8, 10 rue Troyon
> 92316 Sèvres
> Tel : 01.55.64.05.64
> ------------------------------------------------------------------------
>
> _______________________________________________
> ECM mailing list
> ECM@...
> http://lists.nuxeo.com/mailman/listinfo/ecm
>   

Gmane