<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Restricting a menu item to a specific Space in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118739#M83745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi vasuki,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;actually, what I&amp;nbsp; can't understand is what Java class do I have to use in order to get the space name. If I had the space name, I would be able of comparing this name with my current space name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like that "Firmar" action appears only in Firmado space:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried this CompareSpace.java:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;package org.alfresco.web.action.evaluator;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.web.action.ActionEvaluator;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.web.bean.repository.Node;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class CompareSpace implements ActionEvaluator{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public boolean evaluate(Node node) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return (node.getName().equals("Firmado"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but it doesn't show anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance, Elena.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 11:52:33 GMT</pubDate>
    <dc:creator>elenaor</dc:creator>
    <dc:date>2007-10-29T11:52:33Z</dc:date>
    <item>
      <title>Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118732#M83738</link>
      <description>Hi, I have added a new menu item (using web-client-config-custom.xml) that will trigger a Javascript. Now, I would like to limit the Spaces that this menu item shows up…I assume I need to use the "evaluator" and "condition" attributes (config tag) to do this, but I cannot find any documentation on h</description>
      <pubDate>Tue, 25 Sep 2007 22:13:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118732#M83738</guid>
      <dc:creator>vasuki</dc:creator>
      <dc:date>2007-09-25T22:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118733#M83739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use either use the evaluator/condition couple in the config element (see &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Client_Configuration_Guide" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Client_Configuration_Guide&lt;/A&gt;&lt;SPAN&gt;) or the evaluator tag inside the action element (see &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Externalised_Client_Actions#Action_Definition_Config_Elements" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Externalised_Client_Actions#Action_Definition_Config_Elements&lt;/A&gt;&lt;SPAN&gt;) depending on how complex your visibility rule is.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 16:14:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118733#M83739</guid>
      <dc:creator>rivarola</dc:creator>
      <dc:date>2007-09-26T16:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118734#M83740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi rivarola,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I have seen those documents, but there is not much information on what evaluators are available (other than string-compare), and how to use them. For example, how exactly does string-compare work? Can it be used to restrict the config to a specific path? If yes, how can it be done?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 17:20:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118734#M83740</guid>
      <dc:creator>vasuki</dc:creator>
      <dc:date>2007-09-26T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118735#M83741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are 2 types of evaluators, one for config and one for actions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The evaluator for config determines whether the whole config block should be used depending on the object used when a config lookup is done. There is a small amount of information on this here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Config_Service" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Config_Service&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your scenario though it sounds like an action evaluator is more suited, documentation on these can be found here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Externalised_Client_Actions#Action_Definition_Config_Elements" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Externalised_Client_Actions#Action_Definition_Config_Elements&lt;/A&gt;&lt;SPAN&gt;. For some real examples of action evaluators look in the 'org.alfresco.web.action.evaluator' package.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 10:39:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118735#M83741</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-10-01T10:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118736#M83742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I would like to restrict an action to a specific space too. Did you finally achieve your purpose?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance. Elena&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 11:29:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118736#M83742</guid>
      <dc:creator>elenaor</dc:creator>
      <dc:date>2007-10-18T11:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118737#M83743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Elena,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, I was not able to achieve my goal using the Alfresco UI or XML customization out-of-the-box. As Gavin wrote, I needed to write a custom ActionEvaluator (Java class) that gets executed to check whether to display the menu item or not. Writing that Java class was easy enough, and once I put the .jar in the /WEB-INF/lib folder, I was able to use my custom ActionEvaluator without any problems. Let me know if you need more help…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vasuki.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 01:10:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118737#M83743</guid>
      <dc:creator>vasuki</dc:creator>
      <dc:date>2007-10-26T01:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118738#M83744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, vasuki. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going to try it. I hope not to have so much problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 11:30:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118738#M83744</guid>
      <dc:creator>elenaor</dc:creator>
      <dc:date>2007-10-26T11:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118739#M83745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi vasuki,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;actually, what I&amp;nbsp; can't understand is what Java class do I have to use in order to get the space name. If I had the space name, I would be able of comparing this name with my current space name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like that "Firmar" action appears only in Firmado space:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried this CompareSpace.java:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;package org.alfresco.web.action.evaluator;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.web.action.ActionEvaluator;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.web.bean.repository.Node;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class CompareSpace implements ActionEvaluator{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public boolean evaluate(Node node) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return (node.getName().equals("Firmado"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but it doesn't show anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance, Elena.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 11:52:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118739#M83745</guid>
      <dc:creator>elenaor</dc:creator>
      <dc:date>2007-10-29T11:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118740#M83746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your "evaluate" method is OK if the action is attached to the space itself (i.e. in the Create menu for instance) but if it is attached to a document in the space (like the "Edit" or "Show document details" actions), the node passed to the evaluate method is the document and not the parent space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case you can test either the name of the primary parent of the node (first option) or the name of the current space using the navigation bean (second option) :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp; public boolean evaluate(Node node) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FacesContext fc = FacesContext.getCurrentInstance();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServiceRegistry services = Repository.getServiceRegistry(fc);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NavigationBean navigator = (NavigationBean) FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeRef space = navigator.getCurrentNode().getNodeRef();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // check the current space name is "Firmado"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return "Firmado".equalsIgnoreCase((String) services.getNodeService().getProperty(space, ContentModel.PROP_NAME));&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 15:57:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118740#M83746</guid>
      <dc:creator>rivarola</dc:creator>
      <dc:date>2007-10-29T15:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118741#M83747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Elena,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds like rivarola knows a lot more about this stuff than I do. Here is the code I used since I wanted to restrict the action to a space and all of its subspaces:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public class MySpaceEvaluator implements ActionEvaluator&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public boolean evaluate(Node node)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (node.getPath().contains("MySpace"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 17:01:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118741#M83747</guid>
      <dc:creator>vasuki</dc:creator>
      <dc:date>2007-10-29T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118742#M83748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks vasuki, thanks rivarola.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works perfectly now!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elena&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 10:59:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118742#M83748</guid>
      <dc:creator>elenaor</dc:creator>
      <dc:date>2007-10-30T10:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118743#M83749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried your path comparison this morning and ran through an unexpected problem : the node.getPath method does not return the concatenation of the traversed node names, but the concatenation of the navigated &lt;/SPAN&gt;&lt;STRONG&gt;child association names&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result is the same… excepted when one of the nodes have been created with a copy/paste or cut/paste operation. In this case the new node name is the same as the source node (if pasted in another space) but the association name is &lt;/SPAN&gt;&lt;STRONG&gt;cm:move&lt;/STRONG&gt;&lt;SPAN&gt; (and not cm:[THE NAME OF THE NODE]).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Conclusion : if one of the node of the hierarchy is the result of a paste or move operation the comparison based on path may not have the expected result.&amp;nbsp; :twisted:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 11:49:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118743#M83749</guid>
      <dc:creator>rivarola</dc:creator>
      <dc:date>2007-10-31T11:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118744#M83750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello rivarola,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what you're talking about here.&amp;nbsp; But I tried to do a node.getPath() on a document called "TestingEvaluator" in a space called "MySpace" and this is what I got:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;/{&lt;A href="http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}MySpace/{http://www.alfresco.org/model/content/1.0}TestingEvaluator" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}MySpace/{http://www.alfresco.org/model/content/1.0}TestingEvaluator&lt;/A&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I copied the same document to a different space called "MyCopySpace". When I did a node.getPath() on the copy, this is what I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;/{&lt;A href="http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}MyCopySpace/{http://www.alfresco.org/model/content/1.0}TestingEvaluator" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}MyCopySpace/{http://www.alfresco.org/model/content/1.0}TestingEvaluator&lt;/A&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;So, as you can see, there is no difference in the path other than the name of the space, which was expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, my method of using node.getPath().contains(…) works on all nodes, whether copied or not…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2007 17:17:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118744#M83750</guid>
      <dc:creator>vasuki</dc:creator>
      <dc:date>2007-10-31T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118745#M83751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello vasuki,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems OK for the copy but try the Move action of the "Run action" wizard on a space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It changes the name of the child association holding the moved space. For instance I moved the "Workflow" space with original path :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/{&lt;A href="http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}Demo/{http://www.alfresco.org/model/content/1.0}Chantier1/{http://www.alfresco.org/model/content/1.0}Workflow" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}Demo/{http://www.alfresco.org/model/content/1.0}Chantier1/{http://www.alfresco.org/model/content/1.0}Workflow&lt;/A&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;to the Chantier2 space, and its path became :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/{&lt;A href="http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}Demo/{http://www.alfresco.org/model/content/1.0}Chantier2/{http://www.alfresco.org/model/content/1.0}move" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}Demo/{http://www.alfresco.org/model/content/1.0}Chantier2/{http://www.alfresco.org/model/content/1.0}move&lt;/A&gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The space name is still "Workflow" but its path does not contain "Workflow".&amp;nbsp; :roll:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2007 08:40:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118745#M83751</guid>
      <dc:creator>rivarola</dc:creator>
      <dc:date>2007-11-02T08:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118746#M83752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attempting to implement this in almost exactly the same way, but I'm getting an error to the catalina.out log file when I try to start Alfresco. Excerpted here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;14:47:41,798 ERROR [web.context.ContextLoader] Context initialization failed&lt;BR /&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webClientConfigService' defined in class path resource [alfresco/web-client-application-context.xml]: Invocation of init method failed; nested exception is org.alfresco.config.ConfigException: Unable to construct action 'approve' evaluator classname: org.alfresco.web.action.evaluator.SciRCFolderIsReview&lt;BR /&gt;Caused by: &lt;BR /&gt;org.alfresco.config.ConfigException: Unable to construct action 'approve' evaluator classname: org.alfresco.web.action.evaluator.SciRCFolderIsReview&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.web.config.ActionsElementReader.parseActionDefinition(ActionsElementReader.java:222)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.web.config.ActionsElementReader.parse(ActionsElementReader.java:92)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.xml.XMLConfigService.parseConfigElement(XMLConfigService.java:258)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.xml.XMLConfigService.parse(XMLConfigService.java:114)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.BaseConfigService.parse(BaseConfigService.java:221)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.xml.XMLConfigService.init(XMLConfigService.java:78)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;14:47:41,920 ERROR [[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener&lt;BR /&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webClientConfigService' defined in class path resource [alfresco/web-client-application-context.xml]: Invocation of init method failed; nested exception is org.alfresco.config.ConfigException: Unable to construct action 'approve' evaluator classname: org.alfresco.web.action.evaluator.SciRCFolderIsReview&lt;BR /&gt;Caused by: &lt;BR /&gt;org.alfresco.config.ConfigException: Unable to construct action 'approve' evaluator classname: org.alfresco.web.action.evaluator.SciRCFolderIsReview&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.web.config.ActionsElementReader.parseActionDefinition(ActionsElementReader.java:222)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.web.config.ActionsElementReader.parse(ActionsElementReader.java:92)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.xml.XMLConfigService.parseConfigElement(XMLConfigService.java:258)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.xml.XMLConfigService.parse(XMLConfigService.java:114)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.BaseConfigService.parse(BaseConfigService.java:221)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.xml.XMLConfigService.init(XMLConfigService.java:78)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;14:47:42,005 ERROR [[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener&lt;BR /&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webClientConfigService' defined in class path resource [alfresco/web-client-application-context.xml]: Invocation of init method failed; nested exception is org.alfresco.config.ConfigException: Unable to construct action 'approve' evaluator classname: org.alfresco.web.action.evaluator.SciRCFolderIsReview&lt;BR /&gt;Caused by: &lt;BR /&gt;org.alfresco.config.ConfigException: Unable to construct action 'approve' evaluator classname: org.alfresco.web.action.evaluator.SciRCFolderIsReview&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.web.config.ActionsElementReader.parseActionDefinition(ActionsElementReader.java:222)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.web.config.ActionsElementReader.parse(ActionsElementReader.java:92)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.xml.XMLConfigService.parseConfigElement(XMLConfigService.java:258)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.xml.XMLConfigService.parse(XMLConfigService.java:114)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.BaseConfigService.parse(BaseConfigService.java:221)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.config.xml.XMLConfigService.init(XMLConfigService.java:78)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Nov 26, 2007 2:47:42 PM org.apache.catalina.core.StandardContext start&lt;BR /&gt;SEVERE: Error listenerStart&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my .jar:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;package org.alfresco.web.action.evaluator;&lt;BR /&gt;&lt;BR /&gt;import org.alfresco.web.action.ActionEvaluator;&lt;BR /&gt;import org.alfresco.web.bean.repository.Node;&lt;BR /&gt;&lt;BR /&gt;public class SciRCFolderIsReview implements ActionEvaluator&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public boolean evaluate(Node node)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (node.getPath().contains("Ready for Review"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;} &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 19:24:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118746#M83752</guid>
      <dc:creator>paullewon</dc:creator>
      <dc:date>2007-11-26T19:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118747#M83753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your code looks ok, so the only thing I can assume is that Alfresco is unable to find your custom class in the classpath. Where are you placing your .jar file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vasuki.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 19:44:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118747#M83753</guid>
      <dc:creator>vasuki</dc:creator>
      <dc:date>2007-11-26T19:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118748#M83754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vasuki,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's in /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 19:57:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118748#M83754</guid>
      <dc:creator>paullewon</dc:creator>
      <dc:date>2007-11-26T19:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118749#M83755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, that should be the right place! Can you post the relevant section of your web-client-application-context.xml file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, note that I made my changes to a different config file - web-client-config-custom.xml - maybe you are updating the wrong file? I am not an expert on the many config files in Alfresco, but I'm just throwing this out there as a possibility.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 20:03:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118749#M83755</guid>
      <dc:creator>vasuki</dc:creator>
      <dc:date>2007-11-26T20:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118750#M83756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm…I reference my evaluator in my web-client-config-custom.xml in /opt/alfresco/tomcat/shared/classes/alfresco/extension:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;action id="approve"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;evaluator&amp;gt;org.alfresco.web.action.evaluator.SciRCFolderIsReview&amp;lt;/evaluator&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label&amp;gt;Approve&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;onclick&amp;gt;javascript:myhandler&amp;lt;/onclick&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– script attribute for specifying a javascript file to execute - by Path or NodeRef –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;/Company Home/Data Dictionary/Scripts/SciRC_Status_to_Publishable.js&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– params specify the &amp;lt;f:param&amp;gt; tags to be generated as children of the action component –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– accessable by an ActionEvent handler or passed directly as href/script URL arguments –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;params&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="id"&amp;gt;#{actionContext.id}&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/params&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/action&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing a necessary customization to /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/web-client-application-context.xml ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 20:11:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118750#M83756</guid>
      <dc:creator>paullewon</dc:creator>
      <dc:date>2007-11-26T20:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting a menu item to a specific Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118751#M83757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Paul - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything looks fine to my eye. Based on your error message, the only possibilities I see are that the evaluator class is not being found in the classpath, or the XML has some errors in it (parsing problem). But after reading your replies, I don't see how either is possible. Unless your JAR file is somehow not correctly packaged - I noticed you used an alfresco package name for your class - maybe this is a problem? If it is an XML parsing issue, you may want to remove one line at a time from the action configuration, and see if the error goes away…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 03:01:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restricting-a-menu-item-to-a-specific-space/m-p/118751#M83757</guid>
      <dc:creator>vasuki</dc:creator>
      <dc:date>2007-11-27T03:01:21Z</dc:date>
    </item>
  </channel>
</rss>

