<?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: Adding Custom Action in Share Using Predefined Evaluators in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-action-in-share-using-predefined-evaluators/m-p/268956#M222086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it.&amp;nbsp; Thanks guys.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2012 13:45:26 GMT</pubDate>
    <dc:creator>vamirr</dc:creator>
    <dc:date>2012-05-08T13:45:26Z</dc:date>
    <item>
      <title>Adding Custom Action in Share Using Predefined Evaluators</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-action-in-share-using-predefined-evaluators/m-p/268953#M222083</link>
      <description>I'm adding a custom action in share based on its mimetype.&amp;nbsp;&amp;nbsp;&amp;nbsp; Can I use the IsMimetype evaluator directly or do I have to make a child of that declared in another bean?I'd like this action to only show on zip files.&amp;nbsp;&amp;nbsp; In my Share config, I'm trying to use IsMimetype directly by feeding it a mimetype</description>
      <pubDate>Tue, 08 May 2012 13:15:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-action-in-share-using-predefined-evaluators/m-p/268953#M222083</guid>
      <dc:creator>vamirr</dc:creator>
      <dc:date>2012-05-08T13:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Custom Action in Share Using Predefined Evaluators</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-action-in-share-using-predefined-evaluators/m-p/268954#M222084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One obvious problem is that the mimetype for zip files is actually &lt;/SPAN&gt;&lt;STRONG&gt;application/zip&lt;/STRONG&gt;&lt;SPAN&gt;, not ZIP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 13:33:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-action-in-share-using-predefined-evaluators/m-p/268954#M222084</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2012-05-08T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Custom Action in Share Using Predefined Evaluators</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-action-in-share-using-predefined-evaluators/m-p/268955#M222085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;'ZIP' is not a valid MIME type, as Mike says. See &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Internet_media_type" rel="nofollow noopener noreferrer"&gt;http://en.wikipedia.org/wiki/Internet_media_type&lt;/A&gt;&lt;SPAN&gt; for background reading.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But to answer your main question, you do need to declare your Spring bean (for the evaluator) in a separate file to your action declaration, since the latter is Alfresco-specific rather than Spring config.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't mention which file you have placed the config above in, but the simplest approach is normally to place custom Alfresco config in share-config-custom.xml and custom Spring config in a *-context.xml file, both under tomcat/shared/alfresco/web-extension.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 13:34:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-action-in-share-using-predefined-evaluators/m-p/268955#M222085</guid>
      <dc:creator>wabson</dc:creator>
      <dc:date>2012-05-08T13:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Custom Action in Share Using Predefined Evaluators</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-action-in-share-using-predefined-evaluators/m-p/268956#M222086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it.&amp;nbsp; Thanks guys.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 13:45:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-action-in-share-using-predefined-evaluators/m-p/268956#M222086</guid>
      <dc:creator>vamirr</dc:creator>
      <dc:date>2012-05-08T13:45:26Z</dc:date>
    </item>
  </channel>
</rss>

