<?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: Uniqueness constraint over content based on custom aspect properties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290310#M243440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I configured a custom aspect, this aspect contains multiples properties.&amp;nbsp; I need create an uniqueness constraint based in the properties of my custom aspect.&amp;nbsp; When I upload a document, the uniqueness constraint should not allow upload document with the same properties of other documents.&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;Andres&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2014 04:56:41 GMT</pubDate>
    <dc:creator>arpa1986</dc:creator>
    <dc:date>2014-04-23T04:56:41Z</dc:date>
    <item>
      <title>Uniqueness constraint over content based on custom aspect properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290308#M243438</link>
      <description>HiI have defined a custom aspect that contains multiple properties.&amp;nbsp; Is it possible to enforce a no duplicate content based in the properties of the custom aspect?Thanks,Andres</description>
      <pubDate>Wed, 23 Apr 2014 02:27:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290308#M243438</guid>
      <dc:creator>arpa1986</dc:creator>
      <dc:date>2014-04-23T02:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Uniqueness constraint over content based on custom aspect properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290309#M243439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is your requirement and what are you trying to implement?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 04:32:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290309#M243439</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-23T04:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Uniqueness constraint over content based on custom aspect properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290310#M243440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I configured a custom aspect, this aspect contains multiples properties.&amp;nbsp; I need create an uniqueness constraint based in the properties of my custom aspect.&amp;nbsp; When I upload a document, the uniqueness constraint should not allow upload document with the same properties of other documents.&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;Andres&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 04:56:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290310#M243440</guid>
      <dc:creator>arpa1986</dc:creator>
      <dc:date>2014-04-23T04:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Uniqueness constraint over content based on custom aspect properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290311#M243441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can suggest you work around to achevie the same. What you need to do is need to fire DB query on 'alf_node_properties' in query you can use qname_id in where clause and check if any node has already contains same property value for given qname_id. You can first find qname_id of your custom peroperty from 'alf_qname' table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT * FROM alf_node_properties WHERE qname_id=2 AND string_value = '!!!000CD_123'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure about performance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dhaval Joshi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CIGNEX Datamatics&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 07:33:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290311#M243441</guid>
      <dc:creator>iamdhavaljoshi</dc:creator>
      <dc:date>2014-04-23T07:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Uniqueness constraint over content based on custom aspect properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290312#M243442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it posible configure this uniqueness constraint into XML configuration of alfrescon installation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andres&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 21:12:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290312#M243442</guid>
      <dc:creator>arpa1986</dc:creator>
      <dc:date>2014-04-23T21:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Uniqueness constraint over content based on custom aspect properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290313#M243443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;According to me there is no such configuration in xml for unqueness, You have write some custom code to implement it. But you can also try below given solution. I hope it will workl for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Solution:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can create custom table which will have all the fields for which you want no duplication. Fields are declared as not null and no duplicate. Create this custom table inside &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now implement nodeservice policy for create node and update node properties. Everytime when new node get created or property of node get updated, we need to push same inot custom table. Now we have &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uniquness constraints implemented for each field so if there is duplicate entry it will throw duplicate value exception. Handle exception as per your business requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to me it's better possible solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dhaval Joshi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CIGNEX Datamatics&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 04:47:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/uniqueness-constraint-over-content-based-on-custom-aspect/m-p/290313#M243443</guid>
      <dc:creator>iamdhavaljoshi</dc:creator>
      <dc:date>2014-04-24T04:47:35Z</dc:date>
    </item>
  </channel>
</rss>

