|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.query.SearchAttributeList
This class is used to set the drop dow list, search criteria, and search
result columns for HTML Local Search. This class has been deprecated
in X05 and all newly developed search UIs should use the Advanced Search
DCA Picker. Please see the customization guide for search for more information.
To use this list set the following property in wt.properties:
wt.query.searchAttributeList=STANDARD
To customize and change the drop down, search criteria, and search result
columns in the local search attributes:
1. Sub-class this class and change the setLocale method to use different
lists. Two constructors will also be required. See below:
public SearchAttributeList( Locale locale ) {
setLocale(locale);
}
public SearchAttributeList() {
return;
}
2. Add an entry into service.properties similar to:
wt.services/svc/default/wt.query.SearchAttributeListDelegate/MINE/java.lang.Object/0=mine.MySearchAttributeList/duplicate
3. Change the entry in the wt.properties to:
wt.query.searchAttributeList=MINE
Supported API: true
Extendable: true
Field Summary | |
protected int |
classCount
Deprecated. |
private static String |
CLASSNAME
Deprecated. |
protected Locale |
clientLocale
Deprecated. |
private static String |
CODEBASE
Deprecated. |
protected String |
currentQueryResource
Deprecated. |
static long |
EXTERNALIZATION_VERSION_UID
Deprecated. |
protected int |
index
Deprecated. |
protected static String[] |
inputAttributes
Deprecated. |
protected static String[] |
inputProcessing
Deprecated. |
static String |
NULL_PARAMETER
Deprecated. |
protected static long |
OLD_FORMAT_VERSION_UID
Deprecated. |
protected static String[] |
outputAttributes
Deprecated. |
protected static String[] |
outputProcessing
Deprecated. |
protected String[] |
pickList
Deprecated. |
protected String[] |
pickValues
Deprecated. |
protected static String[] |
queryClass
Deprecated. |
private static String |
RESOURCE
Deprecated. |
(package private) static long |
serialVersionUID
Deprecated. |
protected static String[] |
sortAttributes
Deprecated. |
protected static String[] |
sortPref
Deprecated. |
private static boolean |
VERBOSE
Deprecated. |
Constructor Summary | |
SearchAttributeList()
Deprecated. |
|
SearchAttributeList(Locale locale)
Deprecated. |
Method Summary | |
Vector |
getAllSortAttributes(int query_type)
Deprecated. Return the list of attributes for all the attributes that can be sorted. |
Vector |
getInputAttributes(int query_type)
Deprecated. |
Vector |
getInputProcessing(int query_type)
Deprecated. |
Vector |
getOutputAttributes(int query_type)
Deprecated. |
Vector |
getOutputProcessing(int query_type)
Deprecated. |
Vector |
getPickList()
Deprecated. |
Vector |
getPickValues()
Deprecated. |
static Vector |
getPropertyDescriptors(Vector attributes,
Class class_name)
Deprecated. |
static Vector |
getPropertyDescriptors(Vector attributes,
Vector classes)
Deprecated. |
Vector |
getQueryClass(int query_type)
Deprecated. |
String |
getQueryResource()
Deprecated. Gets the current query resource file. |
int |
getQueryType(String value)
Deprecated. |
Vector |
getSortAttributes(int query_type)
Deprecated. Return the list of attributes for only the attributes that can be sorted. |
Vector[] |
getSortedPick()
Deprecated. |
int[] |
getSortedQueryType(String value)
Deprecated. |
String |
getSortKey(int query_type)
Deprecated. Return the sort key for a query type Supported API: false |
Vector |
getSortList(int query_type)
Deprecated. Return the list of display attributes for only the attributes that can be sorted. |
private Vector |
getStringVector(String[] array,
int query_type)
Deprecated. |
void |
readExternal(ObjectInput input)
Deprecated. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Deprecated. Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(SearchAttributeList thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Deprecated. |
void |
setLocale(Locale locale)
Deprecated. |
String |
setQueryResource(String theQueryResource)
Deprecated. Sets the query resource file to use. |
void |
writeExternal(ObjectOutput output)
Deprecated. |
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
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected int index
protected int classCount
protected String[] pickList
protected String[] pickValues
protected Locale clientLocale
protected static String[] queryClass
protected static String[] inputAttributes
protected static String[] inputProcessing
protected static String[] outputAttributes
protected static String[] outputProcessing
protected static String[] sortAttributes
protected static String[] sortPref
protected String currentQueryResource
private static String CODEBASE
private static boolean VERBOSE
public static final String NULL_PARAMETER
Constructor Detail |
public SearchAttributeList(Locale locale)
locale
- public SearchAttributeList()
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(SearchAttributeList 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 void setLocale(Locale locale)
setLocale
in interface SearchAttributeListDelegate
locale
- public Vector getPickList()
getPickList
in interface SearchAttributeListDelegate
public Vector getPickValues()
getPickValues
in interface SearchAttributeListDelegate
public int getQueryType(String value) throws WTException
getQueryType
in interface SearchAttributeListDelegate
value
-
WTException
public Vector getQueryClass(int query_type) throws WTException
getQueryClass
in interface SearchAttributeListDelegate
query_type
-
WTException
public Vector getInputAttributes(int query_type) throws WTException
getInputAttributes
in interface SearchAttributeListDelegate
query_type
-
WTException
public static Vector getPropertyDescriptors(Vector attributes, Class class_name) throws WTException
attributes
- class_name
-
WTException
public static Vector getPropertyDescriptors(Vector attributes, Vector classes) throws WTException
attributes
- classes
-
WTException
public Vector getInputProcessing(int query_type) throws WTException
getInputProcessing
in interface SearchAttributeListDelegate
query_type
-
WTException
public Vector getOutputAttributes(int query_type) throws WTException
getOutputAttributes
in interface SearchAttributeListDelegate
query_type
-
WTException
public Vector getOutputProcessing(int query_type) throws WTException
getOutputProcessing
in interface SearchAttributeListDelegate
query_type
-
WTException
public Vector[] getSortedPick()
getSortedPick
in interface SearchAttributeListDelegate
public int[] getSortedQueryType(String value) throws WTException
getSortedQueryType
in interface SearchAttributeListDelegate
value
-
WTException
private Vector getStringVector(String[] array, int query_type) throws WTException
WTException
public Vector getSortAttributes(int query_type) throws WTException
getSortAttributes
in interface SearchAttributeListDelegate
query_type
-
WTException
public Vector getSortList(int query_type) throws WTException
getSortList
in interface SearchAttributeListDelegate
query_type
-
WTException
public Vector getAllSortAttributes(int query_type) throws WTException
getAllSortAttributes
in interface SearchAttributeListDelegate
query_type
-
WTException
public String getSortKey(int query_type)
getSortKey
in interface SearchAttributeListDelegate
query_type
-
public String setQueryResource(String theQueryResource)
theQueryResource
-
public String getQueryResource()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |