This weblog is a step by step guide to creating a namespace filter for your KM repostiory.
Create a empty portal project using wizard inside NWDS
Select the project that was created above and using KM wizard to create the KM namespace filter.
Open up your java file for filter. In my case it is ExcludeTemp.java. It should look following.
Now, you need to modify the method filter(). This is where you code to hide certain files/folder by looking at their name. In my case i am hiding files with certain file extension (.back, .tmp, … )
Deploy your component to your portal and assign it the repository that needs to be filtered
The changes in above step should affect the KM immediately but if it doesn’t then restart your portal.
BAM!!! You got yourself a namespace filter