<?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: Restrict custom aspect to specific mimetype or cm:content type in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/restrict-custom-aspect-to-specific-mimetype-or-cm-content-type/m-p/284060#M237190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you could add a policy that prevents the aspect being added to unwanted types or mimetypes.&amp;nbsp;&amp;nbsp; There's nothing in the model that will prevent aspects being added.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2015 23:45:00 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2015-01-06T23:45:00Z</dc:date>
    <item>
      <title>Restrict custom aspect to specific mimetype or cm:content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restrict-custom-aspect-to-specific-mimetype-or-cm-content-type/m-p/284059#M237189</link>
      <description>Is there a way to restrict a custom aspect to only being applied to a node of type cm:content, or better to a specific mimetype ?It would be great if this could be specified directly in the mycustom-model.xml.</description>
      <pubDate>Tue, 06 Jan 2015 20:41:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restrict-custom-aspect-to-specific-mimetype-or-cm-content-type/m-p/284059#M237189</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2015-01-06T20:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict custom aspect to specific mimetype or cm:content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restrict-custom-aspect-to-specific-mimetype-or-cm-content-type/m-p/284060#M237190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you could add a policy that prevents the aspect being added to unwanted types or mimetypes.&amp;nbsp;&amp;nbsp; There's nothing in the model that will prevent aspects being added.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 23:45:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restrict-custom-aspect-to-specific-mimetype-or-cm-content-type/m-p/284060#M237190</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2015-01-06T23:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict custom aspect to specific mimetype or cm:content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/restrict-custom-aspect-to-specific-mimetype-or-cm-content-type/m-p/284061#M237191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From the "policy" point of view, what's the best practice for preventing the aspect from being added to unwanted situation ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, I am just throwing an error on relevant policy methods onAddAspect, onBefore.. etc. This is preventing the aspect from being added, but the user is getting a standard message. So, the questions in detail:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ul&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;li&amp;gt;Are there any alternatives other than throwing a runtime error in policy method ?&amp;lt;/li&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;li&amp;gt;If not, I am completely missing how can I customize the error message&amp;lt;/li&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ul&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 13:24:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/restrict-custom-aspect-to-specific-mimetype-or-cm-content-type/m-p/284061#M237191</guid>
      <dc:creator>leonardo_celati</dc:creator>
      <dc:date>2015-01-26T13:24:31Z</dc:date>
    </item>
  </channel>
</rss>

