I don’t have an opinion on this yet. I’ll follow what you guys says is best.

 

-Vincent

 

From: Sergiu Dumitriu [mailto:sergiu.dumitriu@gmail.com]
Sent: dimanche 31 décembre 2006 02:35
To: xwiki-dev@objectweb.org
Subject: [xwiki-dev] [vote] Missing searchDocumentsNames functionality

 

com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNames supports a selectColumns parameter which is supposed to specify which columns should be selected.

This parameter is used when building the select string, but the columns are not included in the returned list, so this parameter just makes a bigger select string and increases the execution time.

In order to include the specified columns in the result, I propose this:
- if selectedColumns is the empty string, keep the previous behavior (return a list of document names)
- if selectedColumns is not empty, then return a list of hashmaps, with the column name as the key, with a special name for the document name (for example docname)