|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.picker.PickerUtilities
com.ptc.windchill.cadx.common.picker.PickerSearcherUtilities
Supported API: false
Extendable: false
Constructor Summary | |
PickerSearcherUtilities()
|
Method Summary | |
QueryResult |
filterResults(SortedEnumeration enumResults)
|
QueryResult |
findResults(String[] criteriaFilter)
Searches based on criteria specified for all versions of objects. |
void |
generateSearchForm()
Supported API: false |
void |
getButtonHTML(StringBuffer output,
String action,
String freeText,
String resourceKey,
String resourceClass,
String attributeName)
First the output StringBuffer is printed to standard out. |
private void |
getCheckFormJavaScript(StringBuffer output)
|
private Vector |
getDisplayAttributes(Vector outputAttributes,
ClassInfo contextInfo)
|
private void |
getIncludeTrlUtlsJavaScript(StringBuffer output)
|
protected Vector |
getInputAttributes(int query_type)
Returns the input attributes for the specified query type from the configured picker search attribute list. |
protected Vector |
getInputProcessing(int query_type)
Returns the input processing information for the specified query type from the configured picker search attribute list. |
protected Vector |
getLegalValueList(String method_name)
Returns a Vector of legal value strings to be used in the drop down list. |
protected Vector |
getOutputProcessing(int query_type)
Returns the output processing information for the specified query type from the configured picker search attribute list. |
protected SearchAttributeListDelegate |
getPickerSearchAttributeList()
Returns the configured picker search attribute list. |
protected Vector |
getPropertyDescriptors(Vector attributes,
Class className)
Returns the property descriptors for the specified vector of class attributes from the configured picker search attribute list. |
protected Vector |
getPropertyDescriptors(Vector attributes,
Vector classes)
Returns the property descriptors for the specified vector of class attributes for the classes in the classes vector from the configured picker search attribute list. |
private Vector |
getSearchCriteria(String[] criteriaFilter,
ClassInfo contextInfo)
Return the search criteria based on the form fields. |
void |
getSelectHTML(StringBuffer output,
String name,
Vector values)
Supported API: false |
void |
getSelectHTML(StringBuffer output,
String name,
Vector values,
String freeText)
|
protected String |
getSortByCommandString(String tableName,
String sortPref)
Returns ColumnSortService.SORT_BY command string. |
protected Vector |
getSortKeys(int queryType,
String sortPref)
|
protected String |
getSortPref(String tableName)
Return valid single value SearchPreference sort preference in the format of |
void |
getTextBoxHTML(StringBuffer output,
String name,
String value,
int size)
Supported API: false |
void |
getTextBoxHTML(StringBuffer output,
String name,
String value,
int size,
String freeText)
Supported API: false |
protected Vector |
getValueList(PropertyDescriptor pd)
Tries to generate a Vector of legal value strings to be used in the drop down list. |
protected boolean |
inArray(String value,
String[] array)
|
boolean |
isFindResults()
Returns true if the FIND_RESULTS property is set to "true"; false is returned otherwise. |
boolean |
isUseSearchSort()
Return useSearchSort property value of true or false. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(PickerSearcherUtilities thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected void |
setSearchFilter(SearchTask st)
Sets filter to SearchTask.CHANGEABLE_VERSIONS if isChangebalesOnly() returns true. |
void |
setUseSearchSort(boolean userPref)
Set useSearchSort property value. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String SEARCH_PREFS_ACTION_VALUE
public static final String PICKER_SEARCHER_TABLE_NAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private SearchAttributeListDelegate searcherAttrList
private static final String HTML_SEARCH_RESOURCE
private String criteriaUnSelectedAndValidateScript
private String criteriaSelectedScript
private String criteriaUnSelectedScript
private String criteriaChangedScript
public static final int LONG_TEXTBOX
public static final int SHORT_TEXTBOX
public static final String FIND_USERS_ACTION
protected static String SEARCH_PREFERENCES_SORT_PREF_DELIM
public static final String SEARCH_PREFS_WINDCHILL_ACTION_VALUE
public static final String SEARCH_NON_WPDM_ALL_SORT_KEY
public static final String PICKER_SEARCHER_PAGE_PROP_COOKIE_KEY
public static final String PICKER_SEARCHER_USE_SEARCH_SORT_PREF_PROP_KEY
public static final String PICKER_SEARCHER_SEARCH_FORM_ACTION_VALUE
protected static final String SEARCH_PREFERENCES_ASCENDING
protected static final String SEARCH_PREFERENCES_DESCENDING
Constructor Detail |
public PickerSearcherUtilities()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class PickerUtilities
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class PickerUtilities
input
-
IOException
ClassNotFoundException
protected boolean readVersion(PickerSearcherUtilities thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public QueryResult findResults(String[] criteriaFilter) throws WTException
criteriaFilter
- Array of keys to filter from the criteria form data.
WTException
public void generateSearchForm() throws WTException, WTIntrospectionException
WTException
WTIntrospectionException
public void getTextBoxHTML(StringBuffer output, String name, String value, int size)
output
- name
- value
- size
- public void getButtonHTML(StringBuffer output, String action, String freeText, String resourceKey, String resourceClass, String attributeName)
output
- action
- freeText
- resourceKey
- resourceClass
- attributeName
- protected Vector getLegalValueList(String method_name) throws WTException
method_name
-
WTException
protected Vector getValueList(PropertyDescriptor pd)
pd
-
protected Vector getInputAttributes(int query_type) throws WTException
query_type
-
WTException
protected Vector getInputProcessing(int query_type) throws WTException
query_type
-
WTException
protected Vector getPropertyDescriptors(Vector attributes, Class className) throws WTException
attributes
- className
-
WTException
protected SearchAttributeListDelegate getPickerSearchAttributeList() throws WTException
getPickerSearchAttributeList
in class PickerUtilities
WTException
protected Vector getOutputProcessing(int query_type) throws WTException
query_type
-
WTException
protected Vector getPropertyDescriptors(Vector attributes, Vector classes) throws WTException
attributes
- classes
-
WTException
public void getSelectHTML(StringBuffer output, String name, Vector values)
output
- name
- values
- public boolean isFindResults()
protected String getSortByCommandString(String tableName, String sortPref)
getSortByCommandString
in class PickerUtilities
tableName
- sortPref
-
protected String getSortPref(String tableName)
tableName
-
public void getTextBoxHTML(StringBuffer output, String name, String value, int size, String freeText)
output
- name
- value
- size
- freeText
- private void getCheckFormJavaScript(StringBuffer output)
private void getIncludeTrlUtlsJavaScript(StringBuffer output)
protected boolean inArray(String value, String[] array)
private Vector getSearchCriteria(String[] criteriaFilter, ClassInfo contextInfo) throws WTException
WTException
private Vector getDisplayAttributes(Vector outputAttributes, ClassInfo contextInfo) throws WTException
WTException
protected void setSearchFilter(SearchTask st) throws Exception
Exception
public QueryResult filterResults(SortedEnumeration enumResults)
public void getSelectHTML(StringBuffer output, String name, Vector values, String freeText)
protected Vector getSortKeys(int queryType, String sortPref) throws WTException
WTException
public boolean isUseSearchSort()
public void setUseSearchSort(boolean userPref)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |