Package com.evolveum.midpoint.schema
Class SearchResultMetadata
- java.lang.Object
-
- com.evolveum.midpoint.schema.SearchResultMetadata
-
- All Implemented Interfaces:
DebugDumpable
,ShortDumpable
,Serializable
,Cloneable
public class SearchResultMetadata extends Object implements Serializable, DebugDumpable, ShortDumpable, Cloneable
Objects of this type are considered READ ONLY.- Author:
- semancik
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description SearchResultMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResultMetadata
approxNumberOfAllResults(Integer approxNumberOfAllResults)
SearchResultMetadata
clone()
String
debugDump(int indent)
boolean
equals(Object o)
Integer
getApproxNumberOfAllResults()
Returns the approximate number of all results that would be returned for the filter if there was no paging limitation.String
getPagingCookie()
Returns the paging cookie.int
hashCode()
boolean
isPartialResults()
Flag indicating whether the search returned partial results.SearchResultMetadata
pagingCookie(String pagingCookie)
SearchResultMetadata
partialResults(boolean partialResults)
void
setApproxNumberOfAllResults(Integer approxNumberOfAllResults)
void
setPagingCookie(String pagingCookie)
Sets paging cookie.void
setPartialResults(boolean partialResults)
void
shortDump(StringBuilder sb)
Show the content of the object intended for diagnostics.String
toString()
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Method Detail
-
getPagingCookie
public String getPagingCookie()
Returns the paging cookie. The paging cookie is used for optimization of paged searches. The presence of the cookie may allow the data store to correlate queries and associate them with the same server-side context. This may allow the data store to reuse the same pre-computed data. We want this as the sorted and paged searches may be quite expensive. It is expected that the cookie returned from the search will be passed back in the options when the next page of the same search is requested.
-
setPagingCookie
public void setPagingCookie(String pagingCookie)
Sets paging cookie. The paging cookie is used for optimization of paged searches. The presence of the cookie may allow the data store to correlate queries and associate them with the same server-side context. This may allow the data store to reuse the same pre-computed data. We want this as the sorted and paged searches may be quite expensive. It is expected that the cookie returned from the search will be passed back in the options when the next page of the same search is requested.
-
pagingCookie
public SearchResultMetadata pagingCookie(String pagingCookie)
-
getApproxNumberOfAllResults
public Integer getApproxNumberOfAllResults()
Returns the approximate number of all results that would be returned for the filter if there was no paging limitation. This property is optional and it is informational only. The implementation should return it only if it is extremely cheap to get the information (e.g. if it is part of the response anyway). The number may be approximate. The intended use of this value is to optimize presentation of the data (e.g. to set approximate size of scroll bars, page counts, etc.)
-
setApproxNumberOfAllResults
public void setApproxNumberOfAllResults(Integer approxNumberOfAllResults)
-
approxNumberOfAllResults
public SearchResultMetadata approxNumberOfAllResults(Integer approxNumberOfAllResults)
-
isPartialResults
public boolean isPartialResults()
Flag indicating whether the search returned partial results. If set to false then all the results requested by the query were returned. If set to true then only some results requested by the query were returned.
-
setPartialResults
public void setPartialResults(boolean partialResults)
-
partialResults
public SearchResultMetadata partialResults(boolean partialResults)
-
shortDump
public void shortDump(StringBuilder sb)
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
clone
public SearchResultMetadata clone()
-
-