Spring LDAP

org.springframework.ldap.filter
Class GreaterThanOrEqualsFilter

java.lang.Object
  extended by org.springframework.ldap.filter.AbstractFilter
      extended by org.springframework.ldap.filter.CompareFilter
          extended by org.springframework.ldap.filter.GreaterThanOrEqualsFilter
All Implemented Interfaces:
Filter

public class GreaterThanOrEqualsFilter
extends CompareFilter

A filter to compare >=. LDAP RFC does not allow > comparison. The following code:

 GreaterThanOrEqualsFilter filter = new GreaterThanOrEqualsFilter("cn", "Some CN");
 System.out.println(filter.ecode());
 
would result in:
 (cn>=Some CN)
 

Author:
Mattias Hellborg Arthursson

Constructor Summary
GreaterThanOrEqualsFilter(String attribute, int value)
           
GreaterThanOrEqualsFilter(String attribute, String value)
           
 
Method Summary
protected  String getCompareString()
          Implement this method in subclass to return a String representing the operator.
 
Methods inherited from class org.springframework.ldap.filter.CompareFilter
encode, encodeValue, equals, hashCode
 
Methods inherited from class org.springframework.ldap.filter.AbstractFilter
encode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GreaterThanOrEqualsFilter

public GreaterThanOrEqualsFilter(String attribute,
                                 String value)

GreaterThanOrEqualsFilter

public GreaterThanOrEqualsFilter(String attribute,
                                 int value)
Method Detail

getCompareString

protected String getCompareString()
Description copied from class: CompareFilter
Implement this method in subclass to return a String representing the operator. The EqualsFilter.getCompareString() would for example return an equals sign, "=".

Specified by:
getCompareString in class CompareFilter
Returns:
the String to use as operator in the comparison for the specific subclass.

Spring LDAP