edu.vt.middleware.ldap.handler
Class SearchCriteria

java.lang.Object
  extended by edu.vt.middleware.ldap.handler.SearchCriteria

public class SearchCriteria
extends Object

SearchCriteria contains the attributes used to perform ldap searches.

Version:
$Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
Author:
Middleware Services

Constructor Summary
SearchCriteria()
          Default constructor.
SearchCriteria(String s)
          Creates a new search criteria with the supplied dn.
 
Method Summary
 String getDn()
          Gets the dn.
 String getFilter()
          Gets the filter.
 Object[] getFilterArgs()
          Gets the filter arguments.
 Attributes getMatchAttrs()
          Gets the match attributes.
 String[] getReturnAttrs()
          Gets the return attributes.
 void setDn(String s)
          Sets the dn.
 void setFilter(String s)
          Sets the filter.
 void setFilterArgs(Object[] o)
          Sets the filter arguments.
 void setMatchAttrs(Attributes a)
          Sets the match attributes.
 void setReturnAttrs(String[] s)
          Sets the return attributes.
 String toString()
          This returns a string representation of this search criteria.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchCriteria

public SearchCriteria()
Default constructor.


SearchCriteria

public SearchCriteria(String s)
Creates a new search criteria with the supplied dn.

Parameters:
s - to set dn
Method Detail

getDn

public String getDn()
Gets the dn.

Returns:
dn

setDn

public void setDn(String s)
Sets the dn.

Parameters:
s - to set dn

getFilter

public String getFilter()
Gets the filter.

Returns:
filter

setFilter

public void setFilter(String s)
Sets the filter.

Parameters:
s - to set filter

getFilterArgs

public Object[] getFilterArgs()
Gets the filter arguments.

Returns:
filter args

setFilterArgs

public void setFilterArgs(Object[] o)
Sets the filter arguments.

Parameters:
o - to set filter argumets

getReturnAttrs

public String[] getReturnAttrs()
Gets the return attributes.

Returns:
return attributes

setReturnAttrs

public void setReturnAttrs(String[] s)
Sets the return attributes.

Parameters:
s - to set return attributes

getMatchAttrs

public Attributes getMatchAttrs()
Gets the match attributes.

Returns:
match attributes

setMatchAttrs

public void setMatchAttrs(Attributes a)
Sets the match attributes.

Parameters:
a - to set match attributes

toString

public String toString()
This returns a string representation of this search criteria.

Overrides:
toString in class Object
Returns:
String


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.