Package com.appiancorp.suiteapi.common
Class SuggestParam
java.lang.Object
com.appiancorp.suiteapi.common.SuggestParam
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDefault constructorSuggestParam
(SuggestParam param) Convenience creator used for cloningSuggestParam
instances.SuggestParam
(Long type, String[] displayProperties, String[] searchProperties, String[] sortProperties) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillInFromParent
(SuggestParam parent) String[]
String[]
String[]
getType()
boolean
Returns whether a "contains query" should be executed when searching for suggestions.boolean
Returns whether a "space query" should be executed when searching for suggestions.void
setDisplayProperties
(String[] displayProperties) void
setFilters
(SuggestParam.SuggestFilter[] filters) void
setIncludeAllDescendants
(Boolean includeAllDescendants) void
setRootItems
(LocalObject[] rootItem) void
setRunContainsQuery
(boolean runContainsQuery) Specify whether a "contains query" should be executed when searching for suggestions.void
setRunSpaceQuery
(boolean runSpaceQuery) Specify whether a "space query" should be executed when searching for suggestions.void
setSearchProperties
(String[] searchProperties) void
setSortProperties
(String[] sortProperties) void
-
Constructor Details
-
SuggestParam
public SuggestParam()Default constructor -
SuggestParam
public SuggestParam(Long type, String[] displayProperties, String[] searchProperties, String[] sortProperties) Constructs a new instance.- Parameters:
type
- the Appian type this suggest representsdisplayProperties
- the list of display properties; these are the properties being requested for the typesearchProperties
- the list of object properties to search acrosssortProperties
- the list of object properties that are sortable for suggest requests- See Also:
-
SuggestParam
Convenience creator used for cloningSuggestParam
instances. This creator is useful when you intend to copy and edit a constant param template.
-
-
Method Details
-
isRunSpaceQuery
public boolean isRunSpaceQuery()Returns whether a "space query" should be executed when searching for suggestions.- See Also:
-
setRunSpaceQuery
public void setRunSpaceQuery(boolean runSpaceQuery) Specify whether a "space query" should be executed when searching for suggestions. Executing a space query allows matching items whose name does not start with the search term, but whose name contains the search term somewhere in the middle and after a space. For example, given the items ["Date", "Time", "Date and Time", "MyTimeDataType", "MyDataType (Time)"] and the search term "time": - Without space query enabled, the results will be 1 item: ["Time"]. - With space query enabled, the results will be 2 items: ["Time", "Date and Time"].- Parameters:
runSpaceQuery
- true if a "space query" should be executed, and false otherwise
-
isRunContainsQuery
public boolean isRunContainsQuery()Returns whether a "contains query" should be executed when searching for suggestions.- See Also:
-
setRunContainsQuery
public void setRunContainsQuery(boolean runContainsQuery) Specify whether a "contains query" should be executed when searching for suggestions. Executing a contains query allows matching items whose names do not start with the search term, but whose name contains the search term somewhere in the middle.- Parameters:
runContainsQuery
- true if a "contains query" should be executed, and false otherwise
-
getIncludeAllDescendants
-
setIncludeAllDescendants
-
getRootItems
-
setRootItems
-
getType
-
setType
-
getDisplayProperties
-
setDisplayProperties
-
getSortProperties
-
setSortProperties
-
getFilters
-
setFilters
-
getSearchProperties
-
setSearchProperties
-
fillInFromParent
-