<
From version < 9.1 >
edited by Vincent Massol
on 2012/04/12
To version < 10.1 >
edited by Vincent Massol
on 2012/04/12
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -30,6 +30,26 @@
30 30  If the user doesn't set explicitly the Hidden setting value in his profile, he won't see hidden documents by default. Thus seeing hidden documents is an explicit choice.
31 31  )))
32 32  
33 +To test this feature do the following:
34 +* Log as Admin on your wiki (or any user having edit rights)
35 +* Create a Page, say in ##Sandbox.HiddenFeatureTest## and put the following content in wiki edition mode:(((
36 +{{code}}
37 +{{velocity}}
38 +#set ($items = $services.query.xwql("where doc.name like 'S%'").setFilter("hidden").execute())
39 +There are $items.size() documents starting with 'S'
40 +
41 +#foreach ($item in $items)
42 +* [[$item]]
43 +#end
44 +{{/velocity}}
45 +{{/code}}
46 +)))
47 +* It'll print the number of matching documents (31 in a XWiki Enterprise 4.0 RC 1 with the default XAR) and the list of matching documents
48 +* Then go to ##Main.Search## (for example), edit the page and check the Hidden checkbox and save
49 +* Go back to the ##Sandbox.HiddenFeatureTest## page and verify there's one less document printed now (it should say 30 in a XWiki Enterprise 4.0 RC 1 with the default XAR)
50 +* Then go to your user profile and select "Display Hidden Documents" to "Yes"
51 +* Go back to the ##Sandbox.HiddenFeatureTest## page and verify it's listing all documents again (it should say 31 in a XWiki Enterprise 4.0 RC 1 with the default XAR)
52 +
33 33  === Changes in the ComponentManager API ===
34 34  
35 35  The new ##lookupComponent## method (which we had introduced in 4.0M1 with the introduction of Generics support) has been renamed to ##getInstance##. New ##getInstanceList## and ##getInstanceMap## has also been introduced to replace ##lookupList## and ##lookupMap##.

Get Connected