|
Spring LDAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.ldap.filter.AbstractFilter
org.springframework.ldap.filter.PresentFilter
public class PresentFilter
Filter that allows the user to check for the existence of a attribute. For an
attribute to be 'present' it must contain a value. Attributes that do
not contain a value are 'NOT present'. To filter on attributes that
are 'NOT present' use the NotPresentFilter or use this filter
in combination with a NotFilter .
PresentFilter filter = new PresentFilter("foo");
System.out.println(filter.encode());
would result in:
(foo=*)
| Constructor Summary | |
|---|---|
PresentFilter(String attribute)
Creates a new instance of a present filter for a particular attribute. |
|
| Method Summary | |
|---|---|
StringBuffer |
encode(StringBuffer buff)
Encodes the filter to a StringBuffer. |
boolean |
equals(Object o)
All filters must implement equals. |
int |
hashCode()
All filters must implement 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 |
|---|
public PresentFilter(String attribute)
attribute - the attribute expected to be present (ie, contains a
value).| Method Detail |
|---|
public StringBuffer encode(StringBuffer buff)
Filter
encode in interface Filterencode in class AbstractFilterbuff - The StringBuffer to encode the filter to
public boolean equals(Object o)
Filter
equals in interface Filterequals in class Objecttrue if the objects are equal.public int hashCode()
Filter
hashCode in interface FilterhashCode in class ObjectObject.hashCode()
|
Spring LDAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||