Package com.sun.identity.idm
Class RepoSearchResults
- java.lang.Object
-
- com.sun.identity.idm.RepoSearchResults
-
public class RepoSearchResults extends Object
This classRepoSearchResultsprovides to obtain the search results.
-
-
Field Summary
Fields Modifier and Type Field Description protected interrorCodeprotected MapresultsMapprotected SetsearchResultsstatic intSIZE_LIMIT_EXCEEDEDCode used to indicate that the search was unsuccessful as the size limit exceeded during the search process.static intSUCCESSCode used to indicate a successful searchstatic intTIME_LIMIT_EXCEEDEDCode used to indicate that the search was unsuccessful as the time limit exceeded during the search process.static intUNDEFINED_RESULT_COUNTValue returned when the total number of search results could not be obtained.
-
Constructor Summary
Constructors Constructor Description RepoSearchResults(Set results, int errorCode, Map map, IdType type)Constructs theRepoSearchResultsobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Method which returns the error code of search.MapgetResultAttributes()Method which returns the search results as a map containing AMIdentity objects as key and the attribute value String.SetgetSearchResults()Method which returns the search results as an ordered set.IdTypegetType()
-
-
-
Field Detail
-
SUCCESS
public static final int SUCCESS
Code used to indicate a successful search- See Also:
- Constant Field Values
-
SIZE_LIMIT_EXCEEDED
public static final int SIZE_LIMIT_EXCEEDED
Code used to indicate that the search was unsuccessful as the size limit exceeded during the search process.- See Also:
- Constant Field Values
-
TIME_LIMIT_EXCEEDED
public static final int TIME_LIMIT_EXCEEDED
Code used to indicate that the search was unsuccessful as the time limit exceeded during the search process.- See Also:
- Constant Field Values
-
UNDEFINED_RESULT_COUNT
public static final int UNDEFINED_RESULT_COUNT
Value returned when the total number of search results could not be obtained.- See Also:
- Constant Field Values
-
searchResults
protected Set searchResults
-
resultsMap
protected Map resultsMap
-
errorCode
protected int errorCode
-
-
Method Detail
-
getResultAttributes
public Map getResultAttributes()
Method which returns the search results as a map containing AMIdentity objects as key and the attribute value String. The attribute value is a Set.- Returns:
- Map containing DN's as the key and Maps of attribute-values of the attributes specified as part of the search. The Maps contains attribute names as keys and Set containing values of those attributes. Returns an empty Map if no attributes were specified as part of search request.
-
getSearchResults
public Set getSearchResults()
Method which returns the search results as an ordered set.- Returns:
- Set of DNs of matching the search criteria
-
getErrorCode
public int getErrorCode()
Method which returns the error code of search.- Returns:
- Error code of search. The possible values are
SUCCESS,SIZE_LIMIT_EXCEEDEDandTIME_LIMIT_EXCEEDED - See Also:
SUCCESS,SIZE_LIMIT_EXCEEDED,TIME_LIMIT_EXCEEDED
-
getType
public IdType getType()
-
-