Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "IdAS String Filters"
(New page: ==Problem== While the current IFilter, IFilterAssertion (and sub-interfaces) are adequate to perform complex searches across an IdAS context, it is cumbersome to code to them. Furthermore...) |
(→ABNF) |
||
Line 7: | Line 7: | ||
The following ABNF could be used to represent filters as strings. Note that I simply looked at the way today's IFilter is and extrapolated an ABNF. | The following ABNF could be used to represent filters as strings. Note that I simply looked at the way today's IFilter is and extrapolated an ABNF. | ||
+ | <pre> | ||
filter = LP filteritem RP | filter = LP filteritem RP | ||
filteritem = assertion / and / or / not | filteritem = assertion / and / or / not | ||
Line 16: | Line 17: | ||
resource = | resource = | ||
value = | value = | ||
+ | </pre> | ||
===XML=== | ===XML=== |
Revision as of 19:31, 29 July 2008
Contents
Problem
While the current IFilter, IFilterAssertion (and sub-interfaces) are adequate to perform complex searches across an IdAS context, it is cumbersome to code to them. Furthermore, there is currently no way to represent a filter using a string such that it could be passed easily across a wire protocol
Proposals
ABNF
The following ABNF could be used to represent filters as strings. Note that I simply looked at the way today's IFilter is and extrapolated an ABNF.
filter = LP filteritem RP filteritem = assertion / and / or / not assertion = comparator SP resource SP value and = AMP 1*filter or = BAR 1*filter not = EXC filter comparator = resource = value =