|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netegrity.sdk.dmsapi.SmDmsSearch
public class SmDmsSearch
Represents a configuration object for a search operation.
You can perform searches against LDAP directories and directories based on ODBC databases.setFilter().
| Field Summary | |
|---|---|
static int |
Back
The search should look back from the current position. |
static int |
Forward
The search should start from the current position. |
static int |
Refresh
The search should be performed again. |
static int |
Reset
The search should start from the beginning. |
| Constructor Summary | |
|---|---|
SmDmsSearch()
Creates an SmDmsSearch object. |
|
SmDmsSearch(java.lang.String filter)
Creates an SmDmsSearch object for a specified search filter. |
|
SmDmsSearch(java.lang.String filter,
java.lang.String root)
Creates an SmDmsSearch object for a specified
search filter and starting point. |
|
SmDmsSearch(java.lang.String filter,
java.lang.String root,
int maxItems)
Creates an SmDmsSearch object for a specified search filter,
search starting point, and maximum number of records that
can be returned from a single search operation. |
|
SmDmsSearch(java.lang.String filter,
java.lang.String root,
java.lang.String[] propertyNames)
Creates an SmDmsSearch object for a specified search filter,
search starting point, and a list of properties to be retrieved. |
|
SmDmsSearch(java.lang.String filter,
java.lang.String root,
java.lang.String[] propertyNames,
int maxItems)
Creates an SmDmsSearch object for a specified search filter,
search starting point, a list of properties to be retrieved, and the maximum
number of records that can be returned. |
|
| Method Summary | |
|---|---|
void |
clearResults()
Clears the search result Vector. |
int |
getClassId()
Gets the object class identifier. |
java.lang.String |
getFilter()
Gets the search filter criteria. |
int |
getMaxItems()
Gets the maximum number of result set items to display at one time. |
int |
getMaxResults()
Gets the maximum number of records that can be returned from a single user directory search operation. |
int |
getNextItem()
Gets the number of the item to start with when displaying the next set of records. |
int |
getNumberItemsFound()
Gets the number of items found during the current search. |
int |
getNumberItemsReturned()
Gets the number of items retrieved from the current search. |
int |
getPreviousItem()
Gets the number of the item to start with when displaying the previous set of records. |
java.lang.String[] |
getPropertyNames()
Gets the list of property names to search for. |
java.util.Vector |
getResults()
Returns a list of SmDmsObject objects with the distinguished names
of items found in the search. |
java.lang.String |
getRoot()
Gets the user directory branch where the search should start. |
int |
getScope()
Gets the scope of the search. |
int |
getTimeout()
Gets the maximum time in seconds that the Policy Server can spend searching the user directory for results. |
void |
readProperties(java.util.Hashtable properties)
Copies the search criteria properties from properties to this object. |
void |
setClassId(int classId)
Sets the object class identifier. |
void |
setFilter(java.lang.String filter)
Sets the search filter criteria. |
void |
setMaxItems(int maxItems)
Sets the maximum number of result set items to display at one time. |
void |
setMaxResults(int nMaxResults)
Sets the maximum number of records that can be returned from a single user directory search operation. |
void |
setNextItem(int nextItem)
Sets the number of the item to start with when displaying the next set of records. |
void |
setPreviousItem(int previousItem)
Sets the number of the item to start with when displaying the previous set of records. |
void |
setPropertyNames(java.lang.String[] propertyNames)
Sets the list of property names to search for. |
void |
setRoot(java.lang.String root)
Sets the user directory branch where the search should start. |
void |
setScope(int scope)
Sets the scope of a search in LDAP directories. |
void |
setTimeout(int timeout)
Sets the maximum time in seconds that the Policy Server can spend searching the user directory for results. |
void |
writeProperties(java.util.Hashtable properties)
Copies the search criteria properties from this object to properties. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int Reset
public static final int Forward
public static final int Back
public static final int Refresh
| Constructor Detail |
|---|
public SmDmsSearch()
SmDmsSearch object.
public SmDmsSearch(java.lang.String filter)
Creates an SmDmsSearch object for a specified search filter.
filter - The filter that specifies the search criteria.
For more information, see
setFilter().
public SmDmsSearch(java.lang.String filter,
java.lang.String root)
SmDmsSearch object for a specified
search filter and starting point.
filter - Filter specifying the search criteria.
For more information, see
setFilter().root - The starting point of the search.
public SmDmsSearch(java.lang.String filter,
java.lang.String root,
int maxItems)
SmDmsSearch object for a specified search filter,
search starting point, and maximum number of records that
can be returned from a single search operation.
filter - Filter specifying the search criteria.
For more information, see
setFilter().root - The starting point of the search.maxItems - The maximum number of records that can be
returned from a single user directory search operation.
public SmDmsSearch(java.lang.String filter,
java.lang.String root,
java.lang.String[] propertyNames)
SmDmsSearch object for a specified search filter,
search starting point, and a list of properties to be retrieved.
filter - Filter specifying the search criteria.
For more information, see
setFilter().root - The starting point of the search.propertyNames - The list of property names to be retrieved.
public SmDmsSearch(java.lang.String filter,
java.lang.String root,
java.lang.String[] propertyNames,
int maxItems)
SmDmsSearch object for a specified search filter,
search starting point, a list of properties to be retrieved, and the maximum
number of records that can be returned.
filter - Filter specifying the search criteria.
For more information, see
setFilter().root - The starting point of the search.propertyNames - The list of property names to be retrieved.maxItems - The maximum number of records that can be
returned from a single user directory search operation.| Method Detail |
|---|
public int getMaxItems()
public void setMaxItems(int maxItems)
maxItems - The maximum number of result set items to display at one time.public int getClassId()
public void setClassId(int classId)
classId - The object class identifier.public int getScope()
public void setScope(int scope)
scope - The scope of the search.public int getMaxResults()
public void setMaxResults(int nMaxResults)
maxItems - The maximum number of records that can be returned
from a single user directory search operation.public int getTimeout()
public void setTimeout(int timeout)
timeout - The maximum time in seconds that the Policy Server
can spend searching the user directory for results.public int getNumberItemsFound()
public int getNumberItemsReturned()
public int getNextItem()
getMaxItems()
to determine the number of records to display at one time.
public void setNextItem(int nextItem)
getMaxItems()
to determine the number of records to display at one time.
nextItem - The start item when displaying the next set of records.public int getPreviousItem()
getMaxItems()
to determine the number of records to display at one time.
public void setPreviousItem(int previousItem)
getMaxItems()
to determine the number of records to display at one time.
previousItem - The start item when displaying the previous set of records.public java.lang.String getFilter()
public void setFilter(java.lang.String filter)
Sets the search filter criteria.
How you construct the search filter depends on the following circumstances:SmDmsCursor
object to the search method, use a fully defined SQL
SELECT statement.
SmDmsCursor
object to the search method, use a partial SQL
SELECT statement consisting only of
FROM and WHERE clauses.
SmDmsCursor
object to the search method, the DMS API constructs the complete
SQL SELECT statement from various sources, as follows:
FROM and WHERE
clauses are taken from the filter parameter
of the setFilter() method or SmDmsSearch
constructor.
SELECT columns portion
of the query is taken from attributes specified in
either of the following parameters:
propertyNames parameter of
setPropertyNames()
when an SmDmsSearch object is passed to an
SmDmsOrganization.search... method.
attrNames parameter of a
getGroups() or getMembers() method.
ORDER BY keywords portion of the query
is taken from the order of the attributes you specify in the
sort parameter of the
SmDmsCursor constructor.
filter - The search filter criteria.public java.lang.String getRoot()
public void setRoot(java.lang.String root)
root - The starting point of the search.public java.lang.String[] getPropertyNames()
public void setPropertyNames(java.lang.String[] propertyNames)
propertyNames - The list of property names to search for.public java.util.Vector getResults()
SmDmsObject objects with the distinguished names
of items found in the search. The first element of the
Vector will be an SmDmsSearchResultParams
object containing the search result parameters.
public void clearResults()
Vector.
public void writeProperties(java.util.Hashtable properties)
properties.
properties - The hashtable where the properties of this
object will be copied.public void readProperties(java.util.Hashtable properties)
properties to this object.
properties - The hashtable where the properties will be copied from.
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||