Package com.ptc.windchill.option.server
Class OptionsClientHelper
java.lang.Object
com.ptc.windchill.option.server.OptionsClientHelper
A helper for Options clients.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<ChoiceSuggestionBean> getSuggestionsForContext(WTContainerRef containerRef, String searchTerm, int max_result) Returns the the collection of Suggest Result.static Collection<ChoiceSuggestionBean> getSuggestionsForOptionSet(ObjectReference optionSetRef, WTContainerRef containerRef, String searchTerm, int max_result) Returns the the collection of Suggest Result.static Collection<ChoiceSuggestionBean> getSuggestionsForOptionSet(ObjectReference optionSetRef, WTContainerRef containerRef, String searchTerm, int max_result, boolean suggestAliasExpression) Returns the the collection of Suggest Result.static booleanChecks if the choice display preference for rules and expression is set to Number
Supported API: true
-
Method Details
-
getSuggestionsForContext
public static Collection<ChoiceSuggestionBean> getSuggestionsForContext(WTContainerRef containerRef, String searchTerm, int max_result) throws WTException Returns the the collection of Suggest Result. suggest result contains information of Choice/Alias. Example:Choice Name, Option Name, Container Name
Supported API: true- Parameters:
searchTerm- -The string used to search choices/aliases in the specified containermax_result- - Number of suggestions to be fetched from query to show on UIcontainer- - The WTContainer to find suggestions- Returns:
- The Collection of SuggestResult
- Throws:
WTException- if a called method does
-
getSuggestionsForOptionSet
public static Collection<ChoiceSuggestionBean> getSuggestionsForOptionSet(ObjectReference optionSetRef, WTContainerRef containerRef, String searchTerm, int max_result) throws WTException Returns the the collection of Suggest Result. suggest result contains information of Choice/Alias. Example:Choice Name, Option Name, Container Name
Supported API: true- Parameters:
optionSetRef- - The ObjectReference to find suggestionscontainerRef- - The WTContainerRef to find suggestionssearchTerm- -The string used to search choices/aliases in the specified containermax_result- - Number of suggestions to be fetched from query to show on UI- Returns:
- The Collection of SuggestResult
- Throws:
WTException- if a called method does
-
getSuggestionsForOptionSet
public static Collection<ChoiceSuggestionBean> getSuggestionsForOptionSet(ObjectReference optionSetRef, WTContainerRef containerRef, String searchTerm, int max_result, boolean suggestAliasExpression) throws WTException Returns the the collection of Suggest Result. suggest result contains information of Choice/Alias. Example:Choice Name, Option Name, Container Name
Supported API: true- Parameters:
optionSetRef- - The ObjectReference to find suggestionscontainerRef- - The WTContainerRef to find suggestionssearchTerm- -The string used to search choices/aliases in the specified containermax_result- - Number of suggestions to be fetched from query to show on UIfindAliasSuggestions- - boolean to control suggestion of alias expressions- Returns:
- The Collection of SuggestResult
- Throws:
WTException- if a called method does
-
isNumberBasedDisplayEnabled
Checks if the choice display preference for rules and expression is set to Number
Supported API: true- Returns:
- true/false based on the preference
- Throws:
WTException- if a called method does
-