[ 
https://issues.apache.org/jira/browse/FELIX-1441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846339#action_12846339
 ] 

Felix Meschberger commented on FELIX-1441:
------------------------------------------

hmm, was a bit confused, sorry.....

> I'm not sure shall we resolve this issue now or leave it until server-side 
> filtering is implemented .. someday? 

At first, I would say "yes". What worries me is the term "someday" ;-)

I could imagine a very simple server side filtering like this:

  * client enters an LDAP filter string and sends request
  * on server side the filter is applied to the bundles:
        Filter f = bundleContext.createFilter(filterString);
        for(Bundle b: bundleContext.getBundles()) {
            if (f.matches(b.getHeaders()) {
               --- do include
            }
        }

This could be hooked into the BundlesServlet where it gets the list of bundles 
to return: On line 505 we could do:

     final Bundle[] bundles;
     if (bundle != null) {
        bundles = new Bundle[]{ bundle };
     } else if (filterString) {
        bundles = filterBundles(allBundles);
     } else {
        bundles = allBundles;
     }

WDYT ?

> Search manifest entries of bundles
> ----------------------------------
>
>                 Key: FELIX-1441
>                 URL: https://issues.apache.org/jira/browse/FELIX-1441
>             Project: Felix
>          Issue Type: New Feature
>          Components: Web Console
>            Reporter: Sahoo
>            Assignee: Valentin Valchev
>             Fix For: webconsole-3.0.0
>
>         Attachments: 2010-03-08 15 00 24.png, 
> bundles-filter-template-i18n_status.patch, bundles.zip
>
>
> It will be good have an ability to have a search facility which searches 
> bundle manifest entries of all installed bundles.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to