wt.query.commonsearch
Class ClientSearchHelper

java.lang.Object
  extended bywt.query.commonsearch.ClientSearchHelper

public class ClientSearchHelper
extends Object


Field Summary
static String DCA_ALL_SEARCH
           
static String DCA_APP_ID
           
static String DCA_COMPONENT_ID
           
static String DCA_CONTAINER_REF
           
static String DCA_FRAME_TITLE_LABEL
           
static String DCA_OBJECT_TYPE
           
static String DCA_SELECTOR_TYPE
           
private static String foundationSearchPage
           
private static String searchPage
           
private static String searchPicker
           
 
Constructor Summary
ClientSearchHelper()
           
 
Method Summary
private static String createSearchScript(String url)
           
static String getFoundationSearchURL(URLFactory urlFactory)
          Generate a proper URL to the CommonSearch page based on solution architecture and desired search capabilities.
static String getSearchPickerOpenScript(URLFactory urlFactory, String appID, String componentID, String objectType)
           
static String getSearchPickerOpenScript(URLFactory urlFactory, String appID, String componentID, String objectType, String selectorType)
           
static String getSearchPickerOpenScript(URLFactory urlFactory, String appID, String componentID, String objectType, String selectorType, String containerRef)
           
static String getSearchPickerOpenScript(URLFactory urlFactory, String appID, String componentID, String objectType, String selectorType, String containerRef, boolean allSearch)
          Generate a proper URL to the CommonSearchPicker based on solution architecture and desired search capabilities.
static String getSearchPickerURL(URLFactory urlFactory, String appID, String componentID, String objectType)
           
static String getSearchPickerURL(URLFactory urlFactory, String appID, String componentID, String objectType, String selectorType)
           
static String getSearchPickerURL(URLFactory urlFactory, String appID, String componentID, String objectType, String selectorType, String containerRef)
           
static String getSearchPickerURL(URLFactory urlFactory, String appID, String componentID, String objectType, String selectorType, String containerRef, boolean allSearch)
          Generate a proper URL to the CommonSearchPicker based on solution architecture and desired search capabilities.
static String getSearchPickerURL(URLFactory urlFactory, String appID, String componentID, String objectType, String selectorType, String containerRef, boolean allSearch, HashMap map)
           
static String getSolutionsSearchURL(URLFactory urlFactory)
          Generate a proper URL to the CommonSearch page based on solution architecture and desired search capabilities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searchPicker

private static final String searchPicker
See Also:
Constant Field Values

foundationSearchPage

private static final String foundationSearchPage
See Also:
Constant Field Values

searchPage

private static final String searchPage
See Also:
Constant Field Values

DCA_APP_ID

public static final String DCA_APP_ID
See Also:
Constant Field Values

DCA_COMPONENT_ID

public static final String DCA_COMPONENT_ID
See Also:
Constant Field Values

DCA_SELECTOR_TYPE

public static final String DCA_SELECTOR_TYPE
See Also:
Constant Field Values

DCA_OBJECT_TYPE

public static final String DCA_OBJECT_TYPE
See Also:
Constant Field Values

DCA_ALL_SEARCH

public static final String DCA_ALL_SEARCH
See Also:
Constant Field Values

DCA_CONTAINER_REF

public static final String DCA_CONTAINER_REF
See Also:
Constant Field Values

DCA_FRAME_TITLE_LABEL

public static final String DCA_FRAME_TITLE_LABEL
See Also:
Constant Field Values
Constructor Detail

ClientSearchHelper

public ClientSearchHelper()
Method Detail

getSearchPickerURL

public static String getSearchPickerURL(URLFactory urlFactory,
                                        String appID,
                                        String componentID,
                                        String objectType)

getSearchPickerURL

public static String getSearchPickerURL(URLFactory urlFactory,
                                        String appID,
                                        String componentID,
                                        String objectType,
                                        String selectorType)

getSearchPickerURL

public static String getSearchPickerURL(URLFactory urlFactory,
                                        String appID,
                                        String componentID,
                                        String objectType,
                                        String selectorType,
                                        String containerRef)

getSearchPickerURL

public static String getSearchPickerURL(URLFactory urlFactory,
                                        String appID,
                                        String componentID,
                                        String objectType,
                                        String selectorType,
                                        String containerRef,
                                        boolean allSearch)
Generate a proper URL to the CommonSearchPicker based on solution architecture and desired search capabilities. Params appID - This determines the solution the search is within. Defaults to Windchill componentID - This determines the search being asked to present. If null, then objectType must be present. Defaults to Foundation.allSearch objectType - Allow a user to select a single objectType that the picker should be constrained to selectorType - Allow a user to select a multiple or single select search results


getSearchPickerURL

public static String getSearchPickerURL(URLFactory urlFactory,
                                        String appID,
                                        String componentID,
                                        String objectType,
                                        String selectorType,
                                        String containerRef,
                                        boolean allSearch,
                                        HashMap map)

getSearchPickerOpenScript

public static String getSearchPickerOpenScript(URLFactory urlFactory,
                                               String appID,
                                               String componentID,
                                               String objectType)

getSearchPickerOpenScript

public static String getSearchPickerOpenScript(URLFactory urlFactory,
                                               String appID,
                                               String componentID,
                                               String objectType,
                                               String selectorType)

getSearchPickerOpenScript

public static String getSearchPickerOpenScript(URLFactory urlFactory,
                                               String appID,
                                               String componentID,
                                               String objectType,
                                               String selectorType,
                                               String containerRef)

getSearchPickerOpenScript

public static String getSearchPickerOpenScript(URLFactory urlFactory,
                                               String appID,
                                               String componentID,
                                               String objectType,
                                               String selectorType,
                                               String containerRef,
                                               boolean allSearch)
Generate a proper URL to the CommonSearchPicker based on solution architecture and desired search capabilities. Params appID - String value to determine the solution the search is within. Defaults to Windchill componentID - String value to determine the search being asked to present. If null, then objectType must be present. Defaults to Foundation.allSearch objectType - String value to allow a user to select a single objectType that the picker should be constrained to. This is the className of the object type in question selectorType - String value to allow a user to select a multiple or single select search results containerRef - String value to allow a user to constrain the search within a certain container allSearch - boolean value to allow user to include an "all" search capability within their picker


createSearchScript

private static String createSearchScript(String url)

getFoundationSearchURL

public static String getFoundationSearchURL(URLFactory urlFactory)
Generate a proper URL to the CommonSearch page based on solution architecture and desired search capabilities. Params


getSolutionsSearchURL

public static String getSolutionsSearchURL(URLFactory urlFactory)
Generate a proper URL to the CommonSearch page based on solution architecture and desired search capabilities. Params