Thomas Mortagne wrote:
> Hi all,
> 
> Actually application descriptor contains a field that list all 
> document application contains.
> 
> I would like to add to Application Manager a way to be able to add 
> "all the documents of space SpaceName" for example.

That would be a nice feature indeed.

I started using the ApplicationManager for the XWiki help desk app. The
management of translations is really handy! I'm adding "{table}" at
the beginning and the end of the list of properties for a better display.

> I already implemented a solution and I would like you to comment and 
> me to modify if needed.
> 
> When XWikiApplication.resolveDocumentsNames is called, it list all 
> document and one by one look if the document name is between "[" and 
> "]", if so it consider document name as sql matching string usable 
> with "like". So for example you will add "[XWiki.%]" if you want to 
> add all documents in the XWiki space to the application document
> list.

Sounds ok to me, but do we really need the brackets?

Couldn't we simply write this type of list:
XAppManager.%|XAppResources.Translations

It would then be parsed and submitted to the sql engine directly,
couldn't it? We could use the "like" clause for all occurrencies, or
check whether each occurrence contains the character '%' in case the
"like" clause is more heavy than an exact match clause.

> This feature is supported for "documents list" and also "document
> list to include"

Actually, what's the purpose of the field "document list to include" and
"document links"? I couldn't find the info from the online documentation
at http://www.xwiki.org/xwiki/bin/view/Code/ApplicationManagerApplication

Cheers

Stéphane

> WDYT ?
> 


-- 
Stéphane Laurière
[EMAIL PROTECTED]

XWiki http://www.xwiki.com
http://concerto.xwiki.com
http://nepomuk.semanticdesktop.org





_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to