Creates a Filter instance from a filter expression.
A filter expression is based on RFC1960 LDAP filter expressions.
Some examples of filter expressions are:
(name=test) Property name must have the value test case sensitive.
(name=*) Property name must have a value (must exist).
(keywords=wizard) Property keywords must have the value wizard.
If keywords is of type array. This means that one value of the array must match the condition.
(name=test*) Property name must start with test.
(startLevel <= 10) Property startLevel must be less than or equal to 10.
(startLevel >= 10) Property startLevel must be greater than or equal to 10.
(! (startLevel = 10)) Property startLevel must not be equal to 10. This is the NOT operator.
(& (startLevel < 10) (startLevel > 8)) Property startLevel must be less then 10 and greater then 8.
This is the AND operator.
(| (startLevel < 10) (startLevel > 10)) Property startLevel must be less then 10 or greater then 10.
This is the OR operator.
(name~=test) Property name must be equal to test case insensitive,
so it matches test, TEST, and TesT for example.
(name~=test*) Property name must start with test but case insensitive,
so it matches testab, TESTab, and TesTaB for example.
Creates a Filter instance from a filter expression.
A filter expression is based on RFC1960 LDAP filter expressions.
Some examples of filter expressions are:
(name=test)Propertynamemust have the valuetestcase sensitive.(name=*)Propertynamemust have a value (must exist).(keywords=wizard)Propertykeywordsmust have the valuewizard. Ifkeywordsis of type array. This means that one value of the array must match the condition.(name=test*)Propertynamemust start withtest.(startLevel <= 10)PropertystartLevelmust be less than or equal to 10.(startLevel >= 10)PropertystartLevelmust be greater than or equal to 10.(! (startLevel = 10))PropertystartLevelmust not be equal to 10. This is theNOToperator.(& (startLevel < 10) (startLevel > 8))PropertystartLevelmust be less then 10 and greater then 8. This is theANDoperator.(| (startLevel < 10) (startLevel > 10))Property startLevel must be less then 10 or greater then 10. This is theORoperator.(name~=test)Propertynamemust be equal totestcase insensitive, so it matchestest,TEST, andTesTfor example.(name~=test*)Propertynamemust start withtestbut case insensitive, so it matchestestab,TESTab, andTesTaBfor example.