|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.SearchTask
Search tasks for the client. Combines together several server side functions
to allow the client one method to execute a search and have the results
prepared for display.
Supported API: false
Extendable: false
Field Summary | |
static Class |
ADRefTYPE
|
static String |
ALL_VERSIONS
Use to set the searchFilter attribute to return the latest iteration, all versions, and any personal working copies on a search. |
static String |
CHANGEABLE_VERSIONS
Use to set the searchFilter attribute to return the latest iteration, all versions, and any personal working copies on a search, but exclude all checked out copies. |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
FC_RESOURCE
|
static String |
LATEST
Use to set the searchFilter attribute to return only the latest version and iteration on a search. |
private static ClassInfo |
MASTER
|
private static boolean |
MASTER_ACCESS
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
private String |
searchFilter
|
(package private) static long |
serialVersionUID
|
(package private) static boolean |
SERVER
|
private static boolean |
VERBOSE
|
private static char |
WILDCARD_ESCAPE
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
SearchTask()
|
Method Summary | |
protected QueryResult |
_search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
protected QueryResult |
_search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
SearchCondition[] additionalSearchConditions)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
protected QueryResult |
_search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
SearchCondition[] additionalSearchConditions,
Vector ibaSearchExpressions)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
protected QueryResult |
_search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
SearchCondition[] additionalSearchConditions,
Vector ibaSearchExpressions,
WTContainer container,
Vector containerList)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
protected QueryResult |
_search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
SearchCondition[] additionalSearchConditions,
WTContainer container,
Vector containerList)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
protected QueryResult |
_search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
WTContainer container,
Vector containerList)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
protected SortedEnumeration |
_search(Vector classnames,
Hashtable criteriaHash,
Vector display,
String sortPreference,
Locale locale)
Queries for persistant objects of multiple classes using the Hashtable of name value pairs as for the criterion. |
protected SortedEnumeration |
_search(Vector classnames,
Hashtable criteriaHash,
Vector display,
String sortPreference,
Locale locale,
WTContainer container,
Vector containerList)
Queries for persistant objects of multiple classes using the Hashtable of name value pairs as for the criterion. |
protected QueryResult |
_search(Vector classnames,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference)
Queries for persistant objects of multiple classes using the vector of AttributeSearchSpecifications for the criterion. |
protected QueryResult |
_search(Vector classnames,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
WTContainer container,
Vector containerList)
Queries for persistant objects of multiple classes using the vector of AttributeSearchSpecifications for the criterion. |
private QuerySpec |
addMasterAccessControl(QuerySpec qs,
Class searchClass)
|
private SearchCondition |
appendContainerCondition(WTContainer container,
Class searchClass)
|
private SearchCondition |
appendContainerTypeCondition(Class classname,
String containerType)
|
private void |
convertWildcardExpression(SearchExpression a_searchExpression)
|
QuerySpec |
create_query_spec(Class classname,
Vector searchSpecVector)
Not to be used outside of Windchill code. |
static String |
getAttributeValue(PropertyDescriptor pd,
WTObject biz_obj,
Locale locale)
|
private Class |
getIteratedType(Class classname)
|
private HashSet |
getIteratedTypes(Class classname)
|
String |
getQueryName(Class classname,
String attributeName)
|
protected OperatorType |
getSearchConditionOperator(String an_operator)
|
String |
getSearchFilter()
Gets the value of the attribute: searchFilter; Used to filter out version/iteration/working copies from search results. |
static AttributeSearchSpecification |
getSearchSpecification(String attrib_name,
String value,
ClassInfo context_info,
Locale locale)
Get the AttributeSearchSpecification for this attribute and value from a particular class. |
private void |
inflateResults(QueryResult results,
Vector displayAttributes)
|
static boolean |
isEnumType(Class type)
|
QueryResult |
liteSearch(Class classname,
Vector searchSpecVector,
Vector additionalSearchConditions,
Vector ibaSearchExpressions,
Locale locale,
String[] liteDisplay)
Supported API: false |
private QueryResult |
masterAccessProcessResult(QueryResult searchResult)
|
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(SearchTask thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
QueryResult |
search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
QueryResult |
search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
SearchCondition[] additionalSearchConditions)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
QueryResult |
search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
SearchCondition[] additionalSearchConditions,
Vector ibaSearchExpressions)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
QueryResult |
search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
SearchCondition[] additionalSearchConditions,
Vector ibaSearchExpressions,
WTContainer container,
Vector containerList)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
QueryResult |
search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
SearchCondition[] additionalSearchConditions,
WTContainer container,
Vector containerList)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
QueryResult |
search(Class classname,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
WTContainer container,
Vector containerList)
Queries for persistant objects of one class using the vector of AttributeSearchSpecifications for the criterion. |
SortedEnumeration |
search(Vector classnames,
Hashtable criteriaHash,
Vector display,
String sortPreference,
Locale locale)
Queries for persistant objects of multiple classes using the Hashtable of name value pairs as for the criterion. |
SortedEnumeration |
search(Vector classnames,
Hashtable criteriaHash,
Vector display,
String sortPreference,
Locale locale,
WTContainer container,
Vector containerList)
Queries for persistant objects of multiple classes using the Hashtable of name value pairs as for the criterion. |
QueryResult |
search(Vector classnames,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference)
Queries for persistant objects of multiple classes using the vector of AttributeSearchSpecifications for the criterion. |
QueryResult |
search(Vector classnames,
Vector searchSpecVector,
Vector displayAttributes,
String sortPreference,
WTContainer container,
Vector containerList)
Queries for persistant objects of multiple classes using the vector of AttributeSearchSpecifications for the criterion. |
private void |
searchFilterValidate(String a_SearchFilter)
|
void |
setSearchFilter(String a_SearchFilter)
Sets the value of the attribute: searchFilter; Used to filter out version/iteration/working copies from search results. |
private void |
updateDefaultClassSearchSpecForContainers(DefaultClassSearchSpec dcss,
Class classname,
WTContainer container,
Vector containerList)
|
private void |
updateQuerySpecForContainers(QuerySpec qs,
WTContainer container,
Vector containerList,
Class classname)
|
private void |
updateQuerySpecForTerminalObjects(QuerySpec qs,
Class classname)
|
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
private String searchFilter
public static final String LATEST
public static final String ALL_VERSIONS
public static final String CHANGEABLE_VERSIONS
static final boolean SERVER
private static final String FC_RESOURCE
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final Class ADRefTYPE
private static final ClassInfo MASTER
private static final char WILDCARD_ESCAPE
private static final boolean VERBOSE
private static final boolean MASTER_ACCESS
Constructor Detail |
public SearchTask()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(SearchTask 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 String getSearchFilter()
public void setSearchFilter(String a_SearchFilter) throws WTPropertyVetoException
a_SearchFilter
-
WTPropertyVetoException
private void searchFilterValidate(String a_SearchFilter) throws WTPropertyVetoException
a_SearchFilter
-
WTPropertyVetoException
public QueryResult search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.
WTException
protected QueryResult _search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.
WTException
public QueryResult search(Vector classnames, Vector searchSpecVector, Vector displayAttributes, String sortPreference) throws WTException
classnames
- The classes to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.
WTException
protected QueryResult _search(Vector classnames, Vector searchSpecVector, Vector displayAttributes, String sortPreference) throws WTException
classnames
- The classes to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.
WTException
public SortedEnumeration search(Vector classnames, Hashtable criteriaHash, Vector display, String sortPreference, Locale locale) throws WTException
classnames
- The classes to query against.criteriaHash
- The search criteria for the search.display
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.locale
- The locale of the client, used in the sorting of the results.
WTException
protected SortedEnumeration _search(Vector classnames, Hashtable criteriaHash, Vector display, String sortPreference, Locale locale) throws WTException
classnames
- The classes to query against.criteriaHash
- The search criteria for the search.display
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.locale
- The locale of the client, used in the sorting of the results.
WTException
public QueryResult search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference, SearchCondition[] additionalSearchConditions) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.additionalSearchConditions
-
WTException
protected QueryResult _search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference, SearchCondition[] additionalSearchConditions) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.additionalSearchConditions
-
WTException
public QueryResult search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference, SearchCondition[] additionalSearchConditions, Vector ibaSearchExpressions) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.additionalSearchConditions
- ibaSearchExpressions
-
WTException
protected QueryResult _search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference, SearchCondition[] additionalSearchConditions, Vector ibaSearchExpressions) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.additionalSearchConditions
- ibaSearchExpressions
-
WTException
public QueryResult liteSearch(Class classname, Vector searchSpecVector, Vector additionalSearchConditions, Vector ibaSearchExpressions, Locale locale, String[] liteDisplay) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.additionalSearchConditions
- ibaSearchExpressions
- locale
- liteDisplay
-
WTException
public static AttributeSearchSpecification getSearchSpecification(String attrib_name, String value, ClassInfo context_info, Locale locale) throws WTException
attrib_name
- value
- context_info
- locale
-
WTException
public QueryResult search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference, WTContainer container, Vector containerList) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.container
- Sets the search focus to be within a specified ContainercontainerList
- Sets a list of Container Types to constrain the search within
WTException
protected QueryResult _search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference, WTContainer container, Vector containerList) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.container
- Sets the search focus to be within a specified ContainercontainerList
- Sets a list of Container Types to constrain the search within
WTException
public QueryResult search(Vector classnames, Vector searchSpecVector, Vector displayAttributes, String sortPreference, WTContainer container, Vector containerList) throws WTException
classnames
- The classes to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.container
- Sets the search focus to be within a specified ContainercontainerList
- Sets a list of Container Types to constrain the search within
WTException
protected QueryResult _search(Vector classnames, Vector searchSpecVector, Vector displayAttributes, String sortPreference, WTContainer container, Vector containerList) throws WTException
classnames
- The classes to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.container
- Sets the search focus to be within a specified ContainercontainerList
- Sets a list of Container Types to constrain the search within
WTException
public SortedEnumeration search(Vector classnames, Hashtable criteriaHash, Vector display, String sortPreference, Locale locale, WTContainer container, Vector containerList) throws WTException
classnames
- The classes to query against.criteriaHash
- The search criteria for the search.display
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.locale
- The locale of the client, used in the sorting of the results.container
- Sets the search focus to be within a specified ContainercontainerList
- Sets a list of Container Types to constrain the search within
WTException
protected SortedEnumeration _search(Vector classnames, Hashtable criteriaHash, Vector display, String sortPreference, Locale locale, WTContainer container, Vector containerList) throws WTException
classnames
- The classes to query against.criteriaHash
- The search criteria for the search.display
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.locale
- The locale of the client, used in the sorting of the results.container
- Sets the search focus to be within a specified ContainercontainerList
- Sets a list of Container Types to constrain the search within
WTException
public QueryResult search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference, SearchCondition[] additionalSearchConditions, WTContainer container, Vector containerList) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.additionalSearchConditions
- container
- Sets the search focus to be within a specified ContainercontainerList
- Sets a list of Container Types to constrain the search within
WTException
protected QueryResult _search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference, SearchCondition[] additionalSearchConditions, WTContainer container, Vector containerList) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.additionalSearchConditions
- container
- Sets the search focus to be within a specified ContainercontainerList
- Sets a list of Container Types to constrain the search within
WTException
public QueryResult search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference, SearchCondition[] additionalSearchConditions, Vector ibaSearchExpressions, WTContainer container, Vector containerList) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.additionalSearchConditions
- ibaSearchExpressions
- container
- Sets the search focus to be within a specified ContainercontainerList
- Sets a list of Container Types to constrain the search within
WTException
protected QueryResult _search(Class classname, Vector searchSpecVector, Vector displayAttributes, String sortPreference, SearchCondition[] additionalSearchConditions, Vector ibaSearchExpressions, WTContainer container, Vector containerList) throws WTException
classname
- The class to query against.searchSpecVector
- The search criteria for the search.displayAttributes
- The list of attributes that the client wants to display from the results of the search task.sortPreference
- To specify the sort preference for post processing of the search results. Not currently implemented.additionalSearchConditions
- ibaSearchExpressions
- container
- Sets the search focus to be within a specified ContainercontainerList
- Sets a list of Container Types to constrain the search within
WTException
public static boolean isEnumType(Class type)
public QuerySpec create_query_spec(Class classname, Vector searchSpecVector) throws WTException
WTException
public static String getAttributeValue(PropertyDescriptor pd, WTObject biz_obj, Locale locale)
protected OperatorType getSearchConditionOperator(String an_operator)
public String getQueryName(Class classname, String attributeName) throws WTIntrospectionException
WTIntrospectionException
private void convertWildcardExpression(SearchExpression a_searchExpression) throws WTPropertyVetoException
WTPropertyVetoException
private Class getIteratedType(Class classname) throws WTException
WTException
private HashSet getIteratedTypes(Class classname) throws WTException
WTException
private QuerySpec addMasterAccessControl(QuerySpec qs, Class searchClass) throws WTException
WTException
private QueryResult masterAccessProcessResult(QueryResult searchResult)
private void updateQuerySpecForContainers(QuerySpec qs, WTContainer container, Vector containerList, Class classname) throws WTException
WTException
private void updateDefaultClassSearchSpecForContainers(DefaultClassSearchSpec dcss, Class classname, WTContainer container, Vector containerList) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private SearchCondition appendContainerCondition(WTContainer container, Class searchClass) throws WTException
WTException
private SearchCondition appendContainerTypeCondition(Class classname, String containerType) throws WTException
WTException
private void inflateResults(QueryResult results, Vector displayAttributes) throws WTException
WTException
private void updateQuerySpecForTerminalObjects(QuerySpec qs, Class classname) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |