wt.part
Class MultilevelBomCompareProcessor

java.lang.Object
  extended bywt.enterprise.BasicTemplateProcessor
      extended bywt.templateutil.processor.DefaultTemplateProcessor
          extended bywt.part.MultilevelBomCompareProcessor
All Implemented Interfaces:
ContextHolder, ContextTranslator, Evolvable, Externalizable, Serializable, TemplateProcessor

public class MultilevelBomCompareProcessor
extends DefaultTemplateProcessor
implements Externalizable

This template processor produces the HTML representation of the Multilevel BOM Compare report when an HTML template calls the WindchillScript method getXmlUsingXsl, causing the template processor to call getMultilevelBomCompare. Customization should be done using the XSL template and the MultilevelBomCompareVisitor, not the HTML template.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
static String BASELINE_NAME_LABEL
           
static String CDATA
           
private static String CLASSNAME
           
static String CONFIG_SPEC
           
static String CONFIGURATION_ITEM_LABEL
           
static String EFFECTIVE_DATE_LABEL
           
static String EFFECTIVITY_TYPE_LABEL
           
static String ENTERPRISE_RESOURCE
           
static long EXTERNALIZATION_VERSION_UID
           
static String INCLUDE_LABEL
           
static String INCORPORATION_DATE_LABEL
           
static String IS_PLANNING_DATE_LABEL
           
static String LEVEL_HEADER
           
static String MULTI_BOM_COMPARE
           
static String MULTI_BOM_COMPARE_QUERY
           
static String MULTI_BOM_COMPARE_QUERY_LINK_FRAGMENT
           
static String MULTI_BOM_COMPARE_REPORT
           
protected static long OLD_FORMAT_VERSION_UID
           
static String PART_PROPERTIES_LINK_FRAGMENT
           
static String PART1
           
static String PART2
           
static String PRODUCT_STRUCTURE_ACTION
           
static String PRODUCT_STRUCTURE_HEADER
           
static String PRODUCT_STRUCTURE_LINK_FRAGMENT
           
static String QUANTITY_HEADER
           
static String REDO_LABEL
           
static String REPORT_TITLE
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
static String SINGLE_BOM_COMPARE_LINK_FRAGMENT
           
static String SOURCE_CONFIG_SPEC
           
static String SOURCE_HEADER
           
static String SOURCE_PART_TITLE
           
static String SOURCE_SPEC_TITLE
           
static String STATE_LABEL
           
static String TARGET_CONFIG_SPEC
           
static String TARGET_HEADER
           
static String TARGET_PART_TITLE
           
static String TARGET_SPEC_TITLE
           
static String UNIT_LABEL
           
private static boolean VERBOSE
           
static String VERSION_HEADER
           
static String VERSION_NOT_SPECIFIED
           
static String VIEW_LABEL
           
static String XSL_PROPERTY_NAME
           
 
Fields inherited from class wt.templateutil.processor.DefaultTemplateProcessor
ACTION, CLASS, CODEBASE, LINE_FEED_DELIMITER, MESSAGE_SEPARATOR, OID
 
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
MultilevelBomCompareProcessor()
           
 
Method Summary
 ConfigSpec getConfigSpec(String encodedConfigSpec)
           
 ConfigSpec getConfigSpec1()
           
 ConfigSpec getConfigSpec2()
           
private  WTPartMaster getPartMaster(String oidValue)
           
private  WTPartMaster getPartMaster1()
           
private  WTPartMaster getPartMaster2()
           
private  String getProperty(String name, Locale locale)
           
private  String getPropertyValue(Properties props, String[] propertyName)
           
private  String getXml(Locale locale)
           
 void getXmlUsingXsl(Properties parameters, Locale locale, OutputStream os)
           
 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(MultilevelBomCompareProcessor thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
static void setMultiBomCompareName(String newName)
           
static void setMultiBomCompareQueryName(String newName)
           
static void setProductStructureAction(String newName)
           
static void setXSLStylesheetName(String newName)
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.templateutil.processor.DefaultTemplateProcessor
addHiddenProperty, addToFeedbackCookie, addToFeedbackCookie, getContextPropertyValue, getCurrentUrl, getFeedbackCookieExceptions, getFeedbackCookieMessages, getHtmlTemplateFactory, getMessageSeparator, getPAGE_EXPIRATION, getPageExpirationResource, getTemplate, getTemplateDisplay, handleRequest, 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, getWTContainerRef, 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

PART1

public static final String PART1
See Also:
Constant Field Values

PART2

public static final String PART2
See Also:
Constant Field Values

BASELINE_NAME_LABEL

public static final String BASELINE_NAME_LABEL
See Also:
Constant Field Values

CDATA

public static final String CDATA
See Also:
Constant Field Values

CONFIG_SPEC

public static final String CONFIG_SPEC
See Also:
Constant Field Values

CONFIGURATION_ITEM_LABEL

public static final String CONFIGURATION_ITEM_LABEL
See Also:
Constant Field Values

EFFECTIVE_DATE_LABEL

public static final String EFFECTIVE_DATE_LABEL
See Also:
Constant Field Values

EFFECTIVITY_TYPE_LABEL

public static final String EFFECTIVITY_TYPE_LABEL
See Also:
Constant Field Values

IS_PLANNING_DATE_LABEL

public static final String IS_PLANNING_DATE_LABEL
See Also:
Constant Field Values

INCLUDE_LABEL

public static final String INCLUDE_LABEL
See Also:
Constant Field Values

INCORPORATION_DATE_LABEL

public static final String INCORPORATION_DATE_LABEL
See Also:
Constant Field Values

LEVEL_HEADER

public static final String LEVEL_HEADER
See Also:
Constant Field Values

MULTI_BOM_COMPARE

public static String MULTI_BOM_COMPARE

MULTI_BOM_COMPARE_QUERY_LINK_FRAGMENT

public static final String MULTI_BOM_COMPARE_QUERY_LINK_FRAGMENT
See Also:
Constant Field Values

MULTI_BOM_COMPARE_REPORT

public static final String MULTI_BOM_COMPARE_REPORT
See Also:
Constant Field Values

PART_PROPERTIES_LINK_FRAGMENT

public static final String PART_PROPERTIES_LINK_FRAGMENT
See Also:
Constant Field Values

PRODUCT_STRUCTURE_HEADER

public static final String PRODUCT_STRUCTURE_HEADER
See Also:
Constant Field Values

PRODUCT_STRUCTURE_LINK_FRAGMENT

public static final String PRODUCT_STRUCTURE_LINK_FRAGMENT
See Also:
Constant Field Values

QUANTITY_HEADER

public static final String QUANTITY_HEADER
See Also:
Constant Field Values

REDO_LABEL

public static final String REDO_LABEL
See Also:
Constant Field Values

REPORT_TITLE

public static final String REPORT_TITLE
See Also:
Constant Field Values

SINGLE_BOM_COMPARE_LINK_FRAGMENT

public static final String SINGLE_BOM_COMPARE_LINK_FRAGMENT
See Also:
Constant Field Values

SOURCE_CONFIG_SPEC

public static final String SOURCE_CONFIG_SPEC
See Also:
Constant Field Values

SOURCE_HEADER

public static final String SOURCE_HEADER
See Also:
Constant Field Values

SOURCE_PART_TITLE

public static final String SOURCE_PART_TITLE
See Also:
Constant Field Values

SOURCE_SPEC_TITLE

public static final String SOURCE_SPEC_TITLE
See Also:
Constant Field Values

STATE_LABEL

public static final String STATE_LABEL
See Also:
Constant Field Values

TARGET_CONFIG_SPEC

public static final String TARGET_CONFIG_SPEC
See Also:
Constant Field Values

TARGET_HEADER

public static final String TARGET_HEADER
See Also:
Constant Field Values

TARGET_PART_TITLE

public static final String TARGET_PART_TITLE
See Also:
Constant Field Values

TARGET_SPEC_TITLE

public static final String TARGET_SPEC_TITLE
See Also:
Constant Field Values

UNIT_LABEL

public static final String UNIT_LABEL
See Also:
Constant Field Values

VERSION_HEADER

public static final String VERSION_HEADER
See Also:
Constant Field Values

VERSION_NOT_SPECIFIED

public static final String VERSION_NOT_SPECIFIED
See Also:
Constant Field Values

VIEW_LABEL

public static final String VIEW_LABEL
See Also:
Constant Field Values

XSL_PROPERTY_NAME

public static String XSL_PROPERTY_NAME

MULTI_BOM_COMPARE_QUERY

public static String MULTI_BOM_COMPARE_QUERY

PRODUCT_STRUCTURE_ACTION

public static String PRODUCT_STRUCTURE_ACTION

ENTERPRISE_RESOURCE

public static final String ENTERPRISE_RESOURCE
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values
Constructor Detail

MultilevelBomCompareProcessor

public MultilevelBomCompareProcessor()
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 DefaultTemplateProcessor
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 DefaultTemplateProcessor
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(MultilevelBomCompareProcessor 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

getXmlUsingXsl

public void getXmlUsingXsl(Properties parameters,
                           Locale locale,
                           OutputStream os)
                    throws WTException
Throws:
WTException

getXml

private String getXml(Locale locale)
               throws WTException
Throws:
WTException

getPropertyValue

private String getPropertyValue(Properties props,
                                String[] propertyName)

getPartMaster

private WTPartMaster getPartMaster(String oidValue)
                            throws WTException
Throws:
WTException

getPartMaster1

private WTPartMaster getPartMaster1()
                             throws WTException
Throws:
WTException

getPartMaster2

private WTPartMaster getPartMaster2()
                             throws WTException
Throws:
WTException

getConfigSpec1

public ConfigSpec getConfigSpec1()
                          throws WTException
Throws:
WTException

getConfigSpec2

public ConfigSpec getConfigSpec2()
                          throws WTException,
                                 WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

getConfigSpec

public ConfigSpec getConfigSpec(String encodedConfigSpec)
                         throws WTException
Throws:
WTException

getProperty

private String getProperty(String name,
                           Locale locale)
                    throws WTException
Throws:
WTException

setXSLStylesheetName

public static void setXSLStylesheetName(String newName)

setMultiBomCompareName

public static void setMultiBomCompareName(String newName)

setMultiBomCompareQueryName

public static void setMultiBomCompareQueryName(String newName)

setProductStructureAction

public static void setProductStructureAction(String newName)