Class ResultDetails
java.lang.Object
com.sas.services.information.search.ResultDetails
public class ResultDetails
extends Object
Used for controlling the amount of information to include on each resulting object when
performing a search.
Typical usage is to use one of the pre-defined styles. However, applications can construct a new instance if it's necessary to configure additional information to be returned.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionStringstatic ResultDetailsReturns the default value for the specific set of details to include for each object retrieved from the server.Returns the maximum number of objects to include in the results.Returns the specified SortOrder, or the default order if one has not been set.StringReturns the template to apply when retrieving the objects from the server.booleanbooleanbooleanbooleanprotected voidsetContentsModified(boolean modified) voidsetDatesIncluded(boolean include) voidsetDescriptionIncluded(boolean include) voidsetKeywordsIncluded(boolean include) voidsetResponsiblePartiesIncluded(boolean include) voidSets the maximum number of objects to include in the results.voidsetSortOrder(SortOrder[] order) Sets the SortOrder to apply to the search results.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_sortOrder
-
-
Constructor Details
-
ResultDetails
public ResultDetails()Creates a new ResultDetails instance. Users can create their own ResultDetails instance.
-
-
Method Details
-
getInstance
Returns the default value for the specific set of details to include for each object retrieved from the server. Default in Name and Type.- Returns:
- object details
-
setDescriptionIncluded
public void setDescriptionIncluded(boolean include) -
setDatesIncluded
public void setDatesIncluded(boolean include) -
setKeywordsIncluded
public void setKeywordsIncluded(boolean include) -
setResponsiblePartiesIncluded
public void setResponsiblePartiesIncluded(boolean include) -
isDescriptionIncluded
public boolean isDescriptionIncluded() -
isDatesIncluded
public boolean isDatesIncluded() -
isKeywordsIncluded
public boolean isKeywordsIncluded() -
isResponsiblePartiesIncluded
public boolean isResponsiblePartiesIncluded() -
getTemplate
public String getTemplate()Returns the template to apply when retrieving the objects from the server. Note, callers of this method will have to wrap the returned string within a beginning and end "" tag. - Returns:
- omr template
-
setContentsModified
protected void setContentsModified(boolean modified) -
getFolderAttributesForTemplate
public String getFolderAttributesForTemplate() -
setResultLimit
Sets the maximum number of objects to include in the results. Limits the search results returned which is not the actual number of results returned from the server. This is a client side limit.- Parameters:
limit- maximum limit
-
getResultLimit
Returns the maximum number of objects to include in the results.- Returns:
- ResultLimit
-
setSortOrder
Sets the SortOrder to apply to the search results. The specified sorting algorithm will apply to all items in the result set.- Parameters:
order-
-
getSortOrder
Returns the specified SortOrder, or the default order if one has not been set.- Returns:
- SortOrder
-