<?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 Enforce no duplicates on an aspect property in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/enforce-no-duplicates-on-an-aspect-property/m-p/239248#M192378</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 have defined a custom content type of "product" which has a mandatory custom aspect of "sku" ie SKU being the product identifer and the primary key of a product. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to ensure that this SKU aspect is unique across that content type (product) ie no duplicate product documents are allowed in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I should be using an aspect because other document types also have sku such as "product images" and "product articles".&amp;nbsp; These types are allowed to have many documents with the same SKU (they are in fact child assocations of the "product" document which is effectively the golden source of our existing products)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to enforce a no duplicate aspect (sku) on just this document type whilst not for other document types?&amp;nbsp;&amp;nbsp;&amp;nbsp; I've seen use of &amp;lt;duplicates&amp;gt; tag on&amp;nbsp; child associations but haven't found it in the context of an aspect.&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;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jun 2009 14:41:45 GMT</pubDate>
    <dc:creator>rob2020</dc:creator>
    <dc:date>2009-06-18T14:41:45Z</dc:date>
    <item>
      <title>Enforce no duplicates on an aspect property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/enforce-no-duplicates-on-an-aspect-property/m-p/239248#M192378</link>
      <description>Hi,I have defined a custom content type of "product" which has a mandatory custom aspect of "sku" ie SKU being the product identifer and the primary key of a product. I'd like to ensure that this SKU aspect is unique across that content type (product) ie no duplicate product documents are allowed in</description>
      <pubDate>Thu, 18 Jun 2009 14:41:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/enforce-no-duplicates-on-an-aspect-property/m-p/239248#M192378</guid>
      <dc:creator>rob2020</dc:creator>
      <dc:date>2009-06-18T14:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce no duplicates on an aspect property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/enforce-no-duplicates-on-an-aspect-property/m-p/239249#M192379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Two options come to mind. First, you could write a custom constraint for the SKU property that would check to see if the value was already being used on an object of the product type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A second option would be to use use a behavior to check to see if the SKU has already been set on another product object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the constraint might be the first thing to try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 19:07:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/enforce-no-duplicates-on-an-aspect-property/m-p/239249#M192379</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2009-06-18T19:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce no duplicates on an aspect property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/enforce-no-duplicates-on-an-aspect-property/m-p/239250#M192380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will use your book which is sat on my desk right now as a reference whilst I give one of these a try.&amp;nbsp; I'm a big fan of your book by the way. It's fast tracked me into Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 13:22:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/enforce-no-duplicates-on-an-aspect-property/m-p/239250#M192380</guid>
      <dc:creator>rob2020</dc:creator>
      <dc:date>2009-06-19T13:22:38Z</dc:date>
    </item>
  </channel>
</rss>

