<?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: Help 4 a simple query by the ecm wewebu library! in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/help-4-a-simple-query-by-the-ecm-wewebu-library/m-p/249140#M202270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Black.jack,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the javadoc of this method should be a good point to start here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; /** perform a simple search from an array of property values&lt;BR /&gt;* &lt;BR /&gt;* @param strClassName_p the object class to search for&lt;BR /&gt;* @param strResourceName_p the resource to search in, can be null to search the default resource&lt;BR /&gt;* @param rootpath_p the root path to search in, can be null to search all object's&lt;BR /&gt;* @param clauses_p an array of values operators and criteria names to apply to the search&lt;BR /&gt;* @param repository_p OwRepository the repository to search in&lt;BR /&gt;* @param sort_p the sort to apply, can be null&lt;BR /&gt;* @param propertynames_p the column properties to retrieve, can be null&lt;BR /&gt;* @param iMaxSize_p the max size of returned objects&lt;BR /&gt;* @param iVersionSelection_p int Selects the versions as defined in OwSearchTemplate.VERSION_SELECT_… or (OwSearchTemplate.VERSION_SELECT_DEFAULT or 0) to use default version&lt;BR /&gt;* @return OwObjectCollection&lt;BR /&gt;* @throws Exception&lt;BR /&gt;*/&lt;BR /&gt;public static OwObjectCollection doSimpleSearch(String strClassName_p, String strResourceName_p, String rootpath_p, OwSimpleSearchClause[] clauses_p, OwRepository repository_p, OwSort sort_p, Collection propertynames_p, int iMaxSize_p, int iVersionSelection_p) throws Exception&lt;BR /&gt;{&lt;BR /&gt;…&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;So for your simple example query "Select * from D:smileysurprised:wd:hrdocument WHERE owd:value = '1234', the call of the method could look like the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;OwEcmUtil.OwSimpleSearchClause searchClause = new OwEcmUtil.OwSimpleSearchClause("owd:value", OwSearchOperator.CRIT_OP_EQUAL, "1234");&lt;BR /&gt;&lt;BR /&gt;// create array of search criteria&lt;BR /&gt;OwEcmUtil.OwSimpleSearchClause[] whereClauses= new OwEcmUtil.OwSimpleSearchClause[] { searchClause };&lt;BR /&gt;&lt;BR /&gt;OwEcmUtil.doSimpleSearch("D:owd:hrdocument", "Main Repository", null, whereClauses, network, null, null, 20, OwSearchTemplate.VERSION_SELECT_DEFAULT)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This search example will be performed in the "Main Repository" of your connected ECM system. The query should return the desired documents, whereas a maximum of 20 documents will be returned and the latest document version will be returned only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you would have more WHERE conditions, you just would have to extend the whereClauses array. Furthermore I used some null values in this example, which you could change to limit the search on a specified folder/path or to sort the results by any property.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2012 08:04:07 GMT</pubDate>
    <dc:creator>deko</dc:creator>
    <dc:date>2012-11-13T08:04:07Z</dc:date>
    <item>
      <title>Help 4 a simple query by the ecm wewebu library!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-4-a-simple-query-by-the-ecm-wewebu-library/m-p/249139#M202269</link>
      <description>Hi guys,i'm trying to execute a simple CmisSQL query in OWD.I found in this library: com.wewebu.ow.server.app.OwEcmUtilthis method: doSimpleSearch(String, String, String, OwSimpleSearchClause[], OwRepository, OwSort, Collection, int, int)‍can anybody explain, maybe with an example, how can i obtain</description>
      <pubDate>Mon, 12 Nov 2012 19:10:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-4-a-simple-query-by-the-ecm-wewebu-library/m-p/249139#M202269</guid>
      <dc:creator>7joeblack8</dc:creator>
      <dc:date>2012-11-12T19:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help 4 a simple query by the ecm wewebu library!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-4-a-simple-query-by-the-ecm-wewebu-library/m-p/249140#M202270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Black.jack,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the javadoc of this method should be a good point to start here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; /** perform a simple search from an array of property values&lt;BR /&gt;* &lt;BR /&gt;* @param strClassName_p the object class to search for&lt;BR /&gt;* @param strResourceName_p the resource to search in, can be null to search the default resource&lt;BR /&gt;* @param rootpath_p the root path to search in, can be null to search all object's&lt;BR /&gt;* @param clauses_p an array of values operators and criteria names to apply to the search&lt;BR /&gt;* @param repository_p OwRepository the repository to search in&lt;BR /&gt;* @param sort_p the sort to apply, can be null&lt;BR /&gt;* @param propertynames_p the column properties to retrieve, can be null&lt;BR /&gt;* @param iMaxSize_p the max size of returned objects&lt;BR /&gt;* @param iVersionSelection_p int Selects the versions as defined in OwSearchTemplate.VERSION_SELECT_… or (OwSearchTemplate.VERSION_SELECT_DEFAULT or 0) to use default version&lt;BR /&gt;* @return OwObjectCollection&lt;BR /&gt;* @throws Exception&lt;BR /&gt;*/&lt;BR /&gt;public static OwObjectCollection doSimpleSearch(String strClassName_p, String strResourceName_p, String rootpath_p, OwSimpleSearchClause[] clauses_p, OwRepository repository_p, OwSort sort_p, Collection propertynames_p, int iMaxSize_p, int iVersionSelection_p) throws Exception&lt;BR /&gt;{&lt;BR /&gt;…&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;So for your simple example query "Select * from D:smileysurprised:wd:hrdocument WHERE owd:value = '1234', the call of the method could look like the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;OwEcmUtil.OwSimpleSearchClause searchClause = new OwEcmUtil.OwSimpleSearchClause("owd:value", OwSearchOperator.CRIT_OP_EQUAL, "1234");&lt;BR /&gt;&lt;BR /&gt;// create array of search criteria&lt;BR /&gt;OwEcmUtil.OwSimpleSearchClause[] whereClauses= new OwEcmUtil.OwSimpleSearchClause[] { searchClause };&lt;BR /&gt;&lt;BR /&gt;OwEcmUtil.doSimpleSearch("D:owd:hrdocument", "Main Repository", null, whereClauses, network, null, null, 20, OwSearchTemplate.VERSION_SELECT_DEFAULT)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This search example will be performed in the "Main Repository" of your connected ECM system. The query should return the desired documents, whereas a maximum of 20 documents will be returned and the latest document version will be returned only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you would have more WHERE conditions, you just would have to extend the whereClauses array. Furthermore I used some null values in this example, which you could change to limit the search on a specified folder/path or to sort the results by any property.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 08:04:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-4-a-simple-query-by-the-ecm-wewebu-library/m-p/249140#M202270</guid>
      <dc:creator>deko</dc:creator>
      <dc:date>2012-11-13T08:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help 4 a simple query by the ecm wewebu library!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-4-a-simple-query-by-the-ecm-wewebu-library/m-p/249141#M202271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&amp;nbsp; oh great!!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks you my friend!!!&amp;nbsp; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i'll try as soon as possible&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 23:03:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-4-a-simple-query-by-the-ecm-wewebu-library/m-p/249141#M202271</guid>
      <dc:creator>7joeblack8</dc:creator>
      <dc:date>2012-11-13T23:03:52Z</dc:date>
    </item>
  </channel>
</rss>

