wt.csm.html.query
Class CSMQueryFormProcessor

java.lang.Object
  extended bywt.enterprise.BasicTemplateProcessor
      extended bywt.templateutil.processor.DefaultTemplateProcessor
          extended bywt.templateutil.processor.GenerateFormProcessor
              extended bywt.csm.html.query.CSMQueryFormProcessor
All Implemented Interfaces:
ContextHolder, ContextTranslator, Evolvable, Externalizable, Serializable, TemplateProcessor

public class CSMQueryFormProcessor
extends GenerateFormProcessor
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static boolean debug
           
static String[] DISPLAY_COUNTS
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
static String QUERYLIST_KEY
           
protected  ResourceBundle resource
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  NavigationService service
           
private  URL urlCodebase
           
 
Fields inherited from class wt.templateutil.processor.GenerateFormProcessor
DEFAULT_LIFECYCLE, ON_CHANGE_EVENT_NAME, TEAMTEMPLATE_INPUT_NAME
 
Fields inherited from class wt.templateutil.processor.DefaultTemplateProcessor
ACTION, CLASS, CODEBASE, LINE_FEED_DELIMITER, MESSAGE_SEPARATOR, OID, VERBOSE
 
Fields inherited from class wt.enterprise.BasicTemplateProcessor
ADD_HELP_ICON, ALL_CABINETS, BLANK_SPACE, BREAK_SEPARATOR, BREAK_TAG, componentFactory, CONTAINER_NAME, CONTENT_RESOURCE, contextClass, DEFAULT_CHARSET, DEFAULT_HELP_ICON_SELECTOR, DEFAULT_HELP_LABEL, DEFAULT_PREFERENCE_CONTEXT, DOCFROMTEMPLATE, ENABLE_HELP_ICON_PROPERTY_NAME, ENTERPRISE_SEARCH, FEDERATION_SEARCH, GLOBAL_NAVIGATION_ENABLE_HELP_ICON, globalNavBarHelpIconEnabledDefault, HELP_CONTEXT, HELP_ICON_POSITION, HELP_ICON_SELECTOR, HELP_LABEL, HELP_LABEL_RESOURCE, HELP_WINDOW_NAME, helpContext, helpIconEnabled, helpIconEnabledDefault, HOMEPAGE, IDPREFIX, IMPORT, INTEGRATED_SEARCH, isDndMicroAppletEnabled, isDndMicroAppletEnabledInitialized, LABEL_SEPARATOR, linkPrefix, LOCAL_SEARCH, pageContext, PDMLINK_INSTALL_KEY, PERSONAL_CABINET, PREF_WINDOW_NAME, PREFERENCE_CONTEXT, PRESENT_HELP_LABEL, PROJECTLINK_INSTALL_KEY, SEARCH, SHARE_ICON, TEXT_RESOURCE_BUNDLE, URL_RESOURCE, WORKLIST, wtAttribute, WTCORE_IMAGE_DIR
 
Fields inherited from interface wt.templateutil.processor.ContextTranslator
CONTEXT_LIST_IN, CONTEXT_LIST_OUT
 
Fields inherited from interface wt.templateutil.processor.ContextHolder
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS
 
Constructor Summary
CSMQueryFormProcessor()
           
 
Method Summary
private  String addHiddenString(String name, String value)
          Generate html hidden form value from this name and value pair.
 void copyQueryData(Properties parameters, Locale locale, OutputStream os)
          

Supported API: false
private  String createBooleanQFElement(QueryFormElementDefaultView qfedv, String nameID)
          Create the boolean query form element html
private  String createNodeNavigationBar()
          Create the node navigation control panel
private  String createNumberQFElement(QueryFormElementDefaultView qfedv, String nameID)
          Create the number (Integer/Float) query form element html
private  void createQueryFormElements(AbstractQueryTargetView target, AbstractQueryFormView queryForm, PrintWriter out)
          Create the query form elements table
private  void createQueryFormTable(AbstractQueryTargetView target, AbstractQueryFormView queryForm, PrintWriter out)
          Create the query form table
private  String createRatioQFElement(QueryFormElementDefaultView qfedv, String nameID)
          Create the ratio query form element html
private  String createStringQFElement(QueryFormElementDefaultView qfedv, String nameID)
          Create the string/url query form element html
private  String createTimestampQFElement(QueryFormElementDefaultView qfedv, String nameID)
          Create the timestamp query form element html
private  String createUnitQFElement(QueryFormElementDefaultView qfedv, UnitDefView def, String nameID)
          Create the unit query form element html
 void generateControlPanel(Properties parameters, Locale locale, OutputStream os)
          

Supported API: false
 void generateFindNavigationNode(Properties parameters, Locale locale, OutputStream os)
          

Supported API: false
 void generateNodeNavigation(Properties parameters, Locale locale, OutputStream os)
          

Supported API: false
 void generateNodeQueryForm(Properties parameters, Locale locale, OutputStream os)
          

Supported API: false
 void generatePageDescription(Properties parameters, Locale locale, OutputStream os)
          

Supported API: false
private  AbstractNavStructView getAbstractNavStructView()
          Get the AbstractNavStructView from properties
private  AbstractNodeNodeView getAbstractNodeNodeView()
          Get the AbstractNodeNodeView from properties
private  String getAttributeName(AttributeDefDefaultView def)
           
private  String getDisplayResults()
          Create the display results (html/text) link on the control panel
private  String getDisplayUnits(UnitDefView definition)
          Get the display units for this definition
private  String getGraphicsLink()
          Create the graphics on/off link on the control panel
private  String getImageLink(String src, String alternative, String parameters)
          Generate the image link
private  String getLocalizedString(String key, String default_value)
          Get the localized message from the resource bundle with the key
private  String[] getMeasurementSystemNames()
          Get all measurement system names from database
private  AbstractNodeNodeView[] getNavigationChildren(AbstractNavStructView structure, AbstractNodeNodeView currentNode)
          Get All navigation children for this node/structure
private  String getOldFormDataValue(String key)
          Get the value of this key from the form data if any.
private  String[] getParentNodesLinks(AbstractNavStructView structure, AbstractNodeNodeView[] nodes)
          Generate String[] for parent nodes
private  String getQueryFormLink()
          Create the query form on/off link on the control panel
private  String getRankingContext()
          Create the ranking context selection link on the control panel
private  String getResultsCount()
          Create the results count selection link on the control panel
private  String getResultsObject()
          Create the results object link on the control panel
private  String getTaskDelegateLink(String action_name, String label, String addition)
          Generate javascript link for task delegate
private  String getUnitsChoices()
          Create the units selection and change units link on the control panel
private  boolean isGraphicsOn()
          Get the graphics on/off property from query data
private  boolean isQueryFormOn()
          Get the query form on/off property from query data
private  Properties newProperties(String action, String className, String struct, String node, String graphics, String queryForm, String units, String rankingContext, String displayCount, String displayResults)
          Generate a new properties from the query data with any additional changes
 void processAttributes(Properties parameters, Locale locale, OutputStream os)
          

Supported API: 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(CSMQueryFormProcessor thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
private  String replace(String str, String tok, String rep)
           
private  void sortTheQueryFormElements(AbstractQueryFormElementView[] queryFormElements)
           
static String timestampToString(Timestamp timestamp)
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.templateutil.processor.GenerateFormProcessor
addHiddenProperties, changedContextualValue, contextualValue, contextualValueEncoded, currentFolderId, currentFolderPath, enumeratedTypeMenu, enumeratedTypeMenuForClass, generateAction, generatePostURL, generateUpdatePostURL, getButtonText, getContentHolder, getContextualValue, getDefaultPath, getDelim, getDnDAppletTags, getEnumeratedTypeMenu, getFormat, getFormValueFromSession, getFormValueFromSession, getFormValueFromSessionWithEnumeratedPropertyDefault, getFormValueFromSessionWithPropertyDefault, getLastUpdated, getMessageURL, getObjectIdentity, getPreferenceValue, getPrimary, getPrimary, getPrimaryAttribute, getPrimaryChecksum, getPrimaryChecksum, getPrimaryDownloadURL, getPrimaryDownloadURL, getPrimaryFileName, getPrimaryFileName, getPrimaryOidString, getPrimaryOidString, getPrimaryUploadedFromPath, getPrimaryUploadedFromPath, getPrimaryUploadURL, getPrimaryUploadURL, getResponseExceptions, getResponseFooters, getResponseHeaders, getResponseMessages, getSize, getTargetType, getURLTabLink, getWTContainerRef, handleRequest, holderUploadTable, listLifeCycles, listTeamTemplates, obtainFromCovertProperty, parentFolderPath, readVersion, selectFolderMenu, selectFolderMenuForContainers, setContentHolder
 
Methods inherited from class wt.templateutil.processor.DefaultTemplateProcessor
addHiddenProperty, addToFeedbackCookie, addToFeedbackCookie, getContextPropertyValue, getCurrentUrl, getFeedbackCookieExceptions, getFeedbackCookieMessages, getHtmlTemplateFactory, getMessageSeparator, getPAGE_EXPIRATION, getPageExpirationResource, getTemplate, getTemplateDisplay, hiddenContextString, readVersion, setContextPropertyValue, setHtmlTemplateFactory, setMethodContextProperty, setNameProcessor, setPAGE_EXPIRATION, setPageExpirationResource, writeHiddenContext, writeQueryStringContext
 
Methods inherited from class wt.enterprise.BasicTemplateProcessor
AccessOK, addHTMLHelpLink, addToResponseExceptions, addToResponseFooters, addToResponseHeaders, addToResponseMessages, allVersions, bcwti, buildFormProcessorURL, buildFormProcessorURL, comment, createActionsBar, createFederationNavigationBar, createGlobalNavigationBar, createNavigationBar, createParentFolderLink, currentTimestamp, displayAllCabinets, displayAttributeName, displayAttributesTable, displayAttributeValue, displayFolderContents, displayFolderObject, displayFolderTrail, displayGoToLatestLink, displayOrganizationIdentifier, displayPendingChangeIndicator, displayStyleSheetAttributesTable, displayVisualData, formatDate, getActionPairs, getAllCabinetsURL, getBaselineItems, getCharsetEncoding, getCheckedOutFolderURL, getClassIcon, getClassInfo, getContextAction, getContextClass, getContextClassName, getContextListIn, getContextListOut, getContextObj, getContextProperties, getContextServiceName, getDisplayName, getDomainPath, getEnabledVersion, getEncoding, getFederationSearchURL, getFolderLocation, getFolderPath, getFormData, getGenericInstanceIconImgTag, getGlyphImageTag, getGlyphsArray, getGlyphTagsNoDnD, getHelpContext, getHomepageURL, getHTMLComponentFactory, getHTMLHelpLink, getHTMLHelpURL, getHTMLHelpURL, getHTMLTableService, getIconResource, getIconResource, getIconResource, getIconSelector, getId, getJavaScriptManager, getLocalizedDateFormatMessage, getLocalizedMessage, getLocalizedPrintWriter, getLocalizedString, getObjectDnDIcon, getObjectIcon, getObjectIconDnDTag, getObjectIconGlyphs, getObjectIconImgTag, getObjectIconImgTag, getObjectIconImgTag, getObjectIconImgTag, getObjectIconImgTag, getObjectIconImgTag, getObjectPropertyValueString, getObjectPropertyValueString, getPageContext, getParentFolderLink, getPersonalCabinet, getPersonalCabinetURL, getPreferenceValue, getPrincipalEmailLink, getPrincipalEmailLink, getPrintWriter, getPropertyFromPropertyFile, getQuery, getQueryData, getReferenceString, getReferenceString, getResourceString, getResourceString, getResponseExceptions, getResponseFooters, getResponseHeaders, getResponseMessages, getResponseString, getSearchCriteriaURL, getSearchCriteriaURL, getSearchResultsURL, getShareImage, getShareImage, getState, getStatus, getStringFromResourceBundle, getStringFromResourceBundle, getTemplateDisplayGeneral, getTrailId, getTrlIdAttribute, getURLActions, getURLActions, getURLActions, getURLActions, getURLActionsString, getURLActionsString, getURLFactory, getURLFromDelegate, getURLProcessorLink, getURLProcessorLink, getURLProcessorLink, getURLProcessorLinkWithLabel, getUsedByLinks, getWCColor, getWCColor, getWCColorDec, getWCColorDec, getWCFontFamily, getWCFontFamily, getWorklistURL, getWTAttribute, getWTContainerByName, handleExceptionTP, handleExceptionTP, handleProcessorException, include, initJavaScriptManager, isDndMicroAppletEnabled, isEqual, listContent, objectActionLink, objectActionLinkAux, objectActionLinkAux, objectActionLinkAux, objectActionLinkAux, objectActionLinkAux, objectActionLinkAux, objectActionLinkAux, objectBackground, objectIdentification, objectIdentifier, objectProperties, objectPropertyName, objectPropertyNameAux, objectPropertyNameAux2, objectPropertyValue, objectPropertyValueAux, objectPropertyValueAux2, objectPropertyValueString, outputLink, outputPropertyFromPropertyFile, parameterValue, partUsedBy, PDMLinkIsInstalled, printQueryTable, printTable, printTextArea, processSubTemplate, readContext, readVersion, setColumnProperties, setContextAction, setContextClass, setContextClassName, setContextListIn, setContextListOut, setContextObj, setContextProperties, setFormData, setHelpContext, setHTMLTableService, setJavaScriptManager, setPageContext, setQueryData, setResponseExceptions, setResponseFooters, setResponseHeaders, setResponseMessages, setResponseString, setState, setStatus, showResponseExceptions, showResponseFooters, showResponseHeaders, showResponseMessage, showResponseMessages, showVersions, sortQueryResult, splitStringIntoTokens, tableService, translateToHtml, useProcessorService, visualizationIsEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

QUERYLIST_KEY

public static final String QUERYLIST_KEY
See Also:
Constant Field Values

DISPLAY_COUNTS

public static final String[] DISPLAY_COUNTS

resource

protected ResourceBundle resource

urlCodebase

private URL urlCodebase

service

private NavigationService service

debug

private static boolean debug
Constructor Detail

CSMQueryFormProcessor

public CSMQueryFormProcessor()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class GenerateFormProcessor
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class GenerateFormProcessor
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(CSMQueryFormProcessor thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

processAttributes

public void processAttributes(Properties parameters,
                              Locale locale,
                              OutputStream os)
                       throws WTException


Supported API: false

Parameters:
parameters -
locale -
os -
Throws:
WTException

generateControlPanel

public void generateControlPanel(Properties parameters,
                                 Locale locale,
                                 OutputStream os)
                          throws WTException


Supported API: false

Parameters:
parameters -
locale -
os -
Throws:
WTException

generatePageDescription

public void generatePageDescription(Properties parameters,
                                    Locale locale,
                                    OutputStream os)
                             throws WTException


Supported API: false

Parameters:
parameters -
locale -
os -
Throws:
WTException

generateFindNavigationNode

public void generateFindNavigationNode(Properties parameters,
                                       Locale locale,
                                       OutputStream os)
                                throws WTException


Supported API: false

Parameters:
parameters -
locale -
os -
Throws:
WTException

generateNodeNavigation

public void generateNodeNavigation(Properties parameters,
                                   Locale locale,
                                   OutputStream os)
                            throws WTException


Supported API: false

Parameters:
parameters -
locale -
os -
Throws:
WTException

generateNodeQueryForm

public void generateNodeQueryForm(Properties parameters,
                                  Locale locale,
                                  OutputStream os)
                           throws WTException


Supported API: false

Parameters:
parameters -
locale -
os -
Throws:
WTException

copyQueryData

public void copyQueryData(Properties parameters,
                          Locale locale,
                          OutputStream os)
                   throws WTException


Supported API: false

Parameters:
parameters -
locale -
os -
Throws:
WTException

getGraphicsLink

private String getGraphicsLink()
                        throws WTException
Create the graphics on/off link on the control panel

Returns:
String representing the link
Throws:
WTException

getQueryFormLink

private String getQueryFormLink()
                         throws WTException
Create the query form on/off link on the control panel

Returns:
String representing the link
Throws:
WTException

createNodeNavigationBar

private String createNodeNavigationBar()
                                throws WTException
Create the node navigation control panel

Returns:
String representing the link
Throws:
WTException

getUnitsChoices

private String getUnitsChoices()
                        throws WTException
Create the units selection and change units link on the control panel

Returns:
String representing the link
Throws:
WTException

getRankingContext

private String getRankingContext()
                          throws WTException
Create the ranking context selection link on the control panel

Returns:
String representing the link
Throws:
WTException

getResultsCount

private String getResultsCount()
                        throws WTException
Create the results count selection link on the control panel

Returns:
String representing the link
Throws:
WTException

getDisplayResults

private String getDisplayResults()
                          throws WTException
Create the display results (html/text) link on the control panel

Returns:
String representing the link
Throws:
WTException

getResultsObject

private String getResultsObject()
                         throws WTException
Create the results object link on the control panel

Returns:
String representing the link
Throws:
WTException

createQueryFormTable

private void createQueryFormTable(AbstractQueryTargetView target,
                                  AbstractQueryFormView queryForm,
                                  PrintWriter out)
                           throws WTException
Create the query form table

Parameters:
target - The direct/indirect target for this query form
queryForm - The query form to be processed
out - The PrintWriter for output stream
Throws:
WTException

createQueryFormElements

private void createQueryFormElements(AbstractQueryTargetView target,
                                     AbstractQueryFormView queryForm,
                                     PrintWriter out)
                              throws WTException
Create the query form elements table

Parameters:
queryForm - The query form to be processed
out - The PrintWriter for output stream
Throws:
WTException

createBooleanQFElement

private String createBooleanQFElement(QueryFormElementDefaultView qfedv,
                                      String nameID)
Create the boolean query form element html

Parameters:
qfedv - QueryFormElementDefaultView representing the boolean value
nameID - String for the name of the input element

createNumberQFElement

private String createNumberQFElement(QueryFormElementDefaultView qfedv,
                                     String nameID)
Create the number (Integer/Float) query form element html

Parameters:
qfedv - QueryFormElementDefaultView representing the integer/float value
nameID - String for the name of the input element

createRatioQFElement

private String createRatioQFElement(QueryFormElementDefaultView qfedv,
                                    String nameID)
Create the ratio query form element html

Parameters:
qfedv - QueryFormElementDefaultView representing the ratio value
nameID - String for the name of the input element

createUnitQFElement

private String createUnitQFElement(QueryFormElementDefaultView qfedv,
                                   UnitDefView def,
                                   String nameID)
Create the unit query form element html

Parameters:
qfedv - QueryFormElementDefaultView representing the unit value
def - Definition the representing the unit value
nameID - String for the name of the input element

createStringQFElement

private String createStringQFElement(QueryFormElementDefaultView qfedv,
                                     String nameID)
Create the string/url query form element html

Parameters:
qfedv - QueryFormElementDefaultView representing the string/url value
nameID - String for the name of the input element

createTimestampQFElement

private String createTimestampQFElement(QueryFormElementDefaultView qfedv,
                                        String nameID)
Create the timestamp query form element html

Parameters:
qfedv - QueryFormElementDefaultView representing the timestamp value
nameID - String for the name of the input element

timestampToString

public static String timestampToString(Timestamp timestamp)

getOldFormDataValue

private String getOldFormDataValue(String key)
Get the value of this key from the form data if any.

Parameters:
key - Key to find in the form data
Returns:
Value for this key in the form data

getDisplayUnits

private String getDisplayUnits(UnitDefView definition)
Get the display units for this definition

Parameters:
definition - Definition to find the display units
Returns:
Display units string

getParentNodesLinks

private String[] getParentNodesLinks(AbstractNavStructView structure,
                                     AbstractNodeNodeView[] nodes)
                              throws WTException
Generate String[] for parent nodes

Parameters:
structure - Structure (the first element in the return array)
nodes - Nodes to generate in sorted order
Returns:
array of links such as WTPart/Bearing/Radial...
Throws:
WTException

getAbstractNavStructView

private AbstractNavStructView getAbstractNavStructView()
                                                throws WTException
Get the AbstractNavStructView from properties

Returns:
AbstractNavStructView
Throws:
WTException

getAbstractNodeNodeView

private AbstractNodeNodeView getAbstractNodeNodeView()
                                              throws WTException
Get the AbstractNodeNodeView from properties

Returns:
AbstractNodeNodeView
Throws:
WTException

getMeasurementSystemNames

private String[] getMeasurementSystemNames()
                                    throws WTException
Get all measurement system names from database

Returns:
array of string of MS names
Throws:
WTException

getNavigationChildren

private AbstractNodeNodeView[] getNavigationChildren(AbstractNavStructView structure,
                                                     AbstractNodeNodeView currentNode)
                                              throws WTException
Get All navigation children for this node/structure

Parameters:
structure - if currentNode is null, then we get root nodes from this structure
currentNode - the node to get the children. Maybe null
Returns:
array of AbstractNodeNodeView representing the children
Throws:
WTException

isGraphicsOn

private boolean isGraphicsOn()
Get the graphics on/off property from query data

Returns:
boolean to represent graphics on/off

isQueryFormOn

private boolean isQueryFormOn()
Get the query form on/off property from query data

Returns:
boolean to represent query form on/off

getTaskDelegateLink

private String getTaskDelegateLink(String action_name,
                                   String label,
                                   String addition)
                            throws WTException
Generate javascript link for task delegate

Parameters:
action_name - The action for the task
label - The label for the link
addition - Any addition parameters to pass to the link
Returns:
String representing the link
Throws:
WTException

getImageLink

private String getImageLink(String src,
                            String alternative,
                            String parameters)
                     throws WTException
Generate the image link

Parameters:
src - image src
alternative - alternative for the image
Returns:
String representing the link
Throws:
WTException

newProperties

private Properties newProperties(String action,
                                 String className,
                                 String struct,
                                 String node,
                                 String graphics,
                                 String queryForm,
                                 String units,
                                 String rankingContext,
                                 String displayCount,
                                 String displayResults)
Generate a new properties from the query data with any additional changes

Parameters:
action - New action for the property
Returns:
New properties

getLocalizedString

private String getLocalizedString(String key,
                                  String default_value)
Get the localized message from the resource bundle with the key

Parameters:
key - Key to the resource bundle
default_value - Used when any exception occurred
Returns:
Localized message from the resource bundle

addHiddenString

private String addHiddenString(String name,
                               String value)
Generate html hidden form value from this name and value pair.

Parameters:
name -
value -
Returns:
String representing the form value

sortTheQueryFormElements

private void sortTheQueryFormElements(AbstractQueryFormElementView[] queryFormElements)

getAttributeName

private String getAttributeName(AttributeDefDefaultView def)

replace

private String replace(String str,
                       String tok,
                       String rep)