Daniel CERQUEIRA | 7 May 17:17
Picon
Favicon

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

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
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
>   
Daniel CERQUEIRA | 7 May 17:50
Picon
Favicon

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

Yes obviously !!! ...



2008/5/7 Olivier Adam <olivier.adam <at> ac-rennes.fr>:
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-FQDHc1wsLCVwsnTB6eHLfA@public.gmane.orgm
http://lists.nuxeo.com/mailman/listinfo/ecm
 




--
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
Florent Guillaume | 8 May 13:05

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

This should work.
Are you sure your component (.xml file) is read and you don't have a  
duplicate component id?
Please check the logs for your jar name and see if there are any error  
messages just below its deployment.

Florent

On 7 May 2008, at 17:19, Daniel CERQUEIRA wrote:

> 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

--

-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87
Daniel CERQUEIRA | 13 May 10:44
Picon
Favicon

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

Yes, my component "actions-contrib.xml" is read because i defined :

<action id="CURRENT_SELECTION_ADDTOLIST" enabled="false">
    </action>

    <action id="CURRENT_SELECTION_TRASH" enabled="false">
    </action>
<action id="CLIPBOARD_PASTE" enabled="false">
    </action>
 <action id="CURRENT_SELECTION_COPY" enabled="false">
    </action>

The buttons "copy", "paste", "delete" and "add to liste" are not enabled in the application.
But "logout" is always shown and the logs are any error messages.


it's the good "id" called ? Can we really to hide "Logout"?

 <action id="logout" enabled="false" />

Thx



2008/5/8 Florent Guillaume <fg-CQNGlVZ5l00AvxtiuMwx3w@public.gmane.org>:
This should work.
Are you sure your component (.xml file) is read and you don't have a duplicate component id?
Please check the logs for your jar name and see if there are any error messages just below its deployment.

Florent


On 7 May 2008, at 17:19, Daniel CERQUEIRA wrote:

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 _______________________________________________

--
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87






--
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