<?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 Duplicity check during Site creation using siteService.hasSite(shortname) in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2748#M722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I understand - when I want to check duplicity during new site creation in Alfresco 5.1.1, I will use siteService.hasSite(shortname) which will go through all sites (even Private ones) and give me true/false result. This hasSite even checks sites in Trashcan where deleted sites with possible same shortname might be located.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT in my case siteService.hasSite returns "ok" result even if the site is already in trashcan and is letting me to create site with once used shortname of site in Trashcan which might lead to future issues for users using such "duplicated" site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to locate hasSite in classes in alfresco-repository-5.1.1.jar file but I was not able to find particular source code to see what this is doing and why does it not check trashcan or what does this query looks like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have someone experienced same behavior or have ideas why it's not checking the trashcan? Could this be related to index settings for&amp;nbsp;&lt;SPAN style="color: #6b6b6b; background-color: #ffffff;"&gt;archive://SpacesStore ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Vojtech&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2017 07:24:00 GMT</pubDate>
    <dc:creator>vojtechm</dc:creator>
    <dc:date>2017-01-10T07:24:00Z</dc:date>
    <item>
      <title>Duplicity check during Site creation using siteService.hasSite(shortname)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2748#M722</link>
      <description>Hello,as I understand - when I want to check duplicity during new site creation in Alfresco 5.1.1, I will use siteService.hasSite(shortname) which will go through all sites (even Private ones) and give me true/false result. This hasSite even checks sites in Trashcan where deleted sites with possible</description>
      <pubDate>Tue, 10 Jan 2017 07:24:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2748#M722</guid>
      <dc:creator>vojtechm</dc:creator>
      <dc:date>2017-01-10T07:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicity check during Site creation using siteService.hasSite(shortname)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2749#M723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not get a chance to debug through the code.However, you should be able to take a look at&amp;nbsp;the source code at&amp;nbsp;&lt;A class="link-titled" href="https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/COMMUNITYTAGS/5.1.a/root/projects/repository/source/java/org/alfresco/repo/site/SiteServiceImpl.java" title="https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/COMMUNITYTAGS/5.1.a/root/projects/repository/source/java/org/alfresco/repo/site/SiteServiceImpl.java" rel="nofollow noopener noreferrer"&gt;https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/COMMUNITYTAGS/5.1.a/root/projects/repository/source/java/or…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For other community versions, it can be traversed from&amp;nbsp;&lt;A class="" href="https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/COMMUNITYTAGS/5.1.a/root/projects/repository/source/java/org/alfresco/repo/site/SiteServiceImpl.java" style="color: #2989c5; text-decoration: underline;" title="https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/COMMUNITYTAGS/5.1.a/root/projects/repository/source/java/org/alfresco/repo/site/SiteServiceImpl.java" rel="nofollow noopener noreferrer"&gt;https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/COMMUNITYTAGS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 07:58:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2749#M723</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2017-01-10T07:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicity check during Site creation using siteService.hasSite(shortname)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2750#M724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As an FYI, you might be interested to know that this is a feature that is actually coming in 5.2... we've updated the site creation dialog to use a new Aikau version that performs dynamic checking to see whether or not the suggested site title and short name has already been used (and also checks private sites).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 08:11:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2750#M724</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2017-01-10T08:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicity check during Site creation using siteService.hasSite(shortname)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2751#M725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is great to know. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 12:34:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2751#M725</guid>
      <dc:creator>vojtechm</dc:creator>
      <dc:date>2017-01-10T12:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicity check during Site creation using siteService.hasSite(shortname)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2752#M726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You meant to say that feature is already here. 5.2 GA shipped - only Enterprise folks have to wait a bit longer...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 14:06:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2752#M726</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-01-10T14:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicity check during Site creation using siteService.hasSite(shortname)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2753#M727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is true &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 14:09:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/duplicity-check-during-site-creation-using-siteservice-hassite/m-p/2753#M727</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2017-01-10T14:09:12Z</dc:date>
    </item>
  </channel>
</rss>

