Class UtilProcessorService
java.lang.Object
com.ptc.core.HTMLtemplateutil.server.processors.UtilProcessorService
- All Implemented Interfaces:
Externalizable,Serializable,ContextHolder,ProcessorService
Deprecated.
General purpose template processor methods available for all applications
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Field Summary
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, STATUSFields inherited from interface wt.templateutil.processor.ProcessorService
STATE -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToResponseExceptions(Exception newException) Deprecated.voidaddToResponseFooters(LocalizableMessage newFooter) Deprecated.voidaddToResponseHeaders(LocalizableMessage newHeader) Deprecated.voidaddToResponseMessages(LocalizableMessage newMessage) Deprecated.voidgetBaseTag(Properties parameters, Locale locale, OutputStream os) Deprecated.voidgetBodyTag(Properties parameters, Locale locale, OutputStream os) Deprecated.voidgetButton(Properties parameters, Locale locale, OutputStream os) Deprecated.voidgetButtonLink(Properties parameters, Locale locale, OutputStream os) Deprecated.voidgetButtonLinkLabel(Properties parameters, Locale locale, OutputStream os) Deprecated.voidgetButtonLinkTarget(Properties parameters, Locale locale, OutputStream os) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.voidgetCSSLink(Properties parameters, Locale locale, OutputStream os) Deprecated.Deprecated.voidgetJsIncludes(Properties parameters, Locale locale, OutputStream os) Deprecated.This Windchill script method just includes Javascript.html in the page.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getState()Deprecated.intDeprecated.voidsetContextAction(String a_ContextAction) Deprecated.voidsetContextClassName(String a_ContextClassName) Deprecated.voidsetContextObj(Object a_ContextObj) Deprecated.voidsetContextProperties(Properties a_ContextProperties) Deprecated.voidsetFormData(Properties a_FormData) Deprecated.voidsetQueryData(Properties a_QueryData) Deprecated.voidsetResponseExceptions(Vector a_ResponseExceptions) Deprecated.voidsetResponseFooters(Vector a_ResponseFooters) Deprecated.voidsetResponseHeaders(Vector a_ResponseHeaders) Deprecated.voidsetResponseMessages(Vector a_ResponseMessages) Deprecated.voidsetResponseString(String a_ResponseString) Deprecated.voidDeprecated.voidsetStatus(int a_Status) Deprecated.
-
Method Details
-
getButton
Deprecated.This Windchill script call places a "pseudo" button into an HTML template. The pseudo button contains a link within a button image.
Supported API: true- Parameters:
parameters- name/value pairs passed by the script call- The name "resourceClass" should be used to pass the resource bundle class for the label. Optional. E.g., resourceClass=wt.part.partResource.
- The name "resourceKey" should be used to pass the key within the bundle for the label string Optional. E.g., resourceKey=GENERATE_REPORT_BUTTON_LABEL
- The name "buttonImg" should be used to pass the name of an image to use for the link. Optional. The image is assumed to reside in the solutions image directory identified by the wt.property "solutions.images.directory." E.g., buttonImg=iconDocGear.gif
- The name "buttonGWMethod" should be used to pass the name of the URLProcessor method that should be used in the link URL. Optional. This will likely be either "URLTemplateAction", "generateForm", or "processForm". Optional. If not specified, "URLTemplateAction" will be used.
- The name "buttonAction" should be used to pass the name of the action to be inserted into the query string of the URL. Optional. If not specified, "ObjProps" will be used. Ex: buttonAction=CreatePart
- The name "buttonOID" should be used to pass the oid of the object to be inserted into the query string of the URL. Optional. If not specified, the current context object will be used.
- The name "buttonClass" should be used to pass the object class to be inserted into the query string of the URL. Optional. Ex: buttonClass=wt.doc.WTDocument
- The name "buttonURL" should be used to pass the fully qualified URL for the button link. Optional.
- The name "buttonLinkTarget" should be used to pass the target for the button link. Optional. E.g., buttonLinkTarget=CreateWindow
- The name "buttonLinkEvent" should be used to pass an event for which the button link should listen. Optional. E.g., buttonLinkEvent=onClick
- The name "buttonLinkEventHandler" should be used to pass the method that to be called for the event passed in buttonLinkEvent. Required if buttonLinkEvent is specified. E.g., buttonLinkEventHandler=submitForm (where submitForm is the name of a javascript method)
- The name "disableAfterClicked" should be set to "true" to disable the button after it is clicked. Optional. Typically usage is to avoid multiple clicks of a 'submit' button. Do not use this parameter if "buttonURL" is not a JavaScript call.
- The name "enablerCallback" can be used in pair with "disableAfterClicked" to dynamically generate a JavaScipt callback fuction, which when invoked can enable the link. Developer can call the function inside function pointed to by "buttonURL", to enable the link if required.
If buttonURL is not specified, the URL will be constructed from buttonGWMethod, buttonAction, and buttonClass or buttonOID, using the default values for those parameters if not specified.locale-os-
-
getButtonLink
Deprecated.This Windchill script call generates a URL for a link within a button. It is called by the standard button subtemplate and will not typically be used by clients directly. Clients should pass the information for the URL to the processor via the call to the "getButton()" script method.
Supported API: true- Parameters:
parameters-locale-os-- Throws:
WTException
-
getButtonLinkLabel
public void getButtonLinkLabel(Properties parameters, Locale locale, OutputStream os) throws WTException Deprecated.This Windchill script method generates the label for a link within a button. It is called by the standard button subtemplate and will not typically be used by clients directly. Clients should pass the information for the label to the processor via the call to the "getButton()" script method.
Supported API: true- Parameters:
parameters- name/value pairs passed via the script call. None are recognized by this method.locale-os-- Throws:
WTException
-
getButtonLinkTarget
Deprecated.This Windchill script method generates a target attribute for the link within a button. It is called by the standard button subtemplate and will not typically be used by clients directly. Clients should pass the target to the processor via the call to the "getButton()" script method. Ex output: target="CreateWindow"
Supported API: true- Parameters:
parameters- name/value pairs passed by the script call. None are recognized by this method.locale- the locale to use for localizationos- the output stream
-
getCSSLink
Deprecated.This Windchill script method generates a style sheet link in the HTML page. It should be called within the HEAD section of the page.
Supported API: true- Parameters:
parameters- optional name/value pairs passed by the script call- The name "resourceName" can be used to pass the URL for the HREF attribute. E.g., resourceName=com/ptc/windchill/pdmlink/myStyleSheet.css. If not specified, the default PDMLink style sheet will be used.
locale- the locale to use for localizationos- the output stream- Throws:
WTException
-
getBodyTag
Deprecated.This Windchill script method generates a body tag on the HTML page.
Supported API: true- Parameters:
parameters- optional name/value pairs passed by the script call- The name "styleClass" can be used to pass the name of the style class to be used for the body tag. E.g., styleClass=myBodyClass. If not specified, the default body style class from the style sheet file will be used.
locale- the locale to use for localizationos- the output stream
-
getJsIncludes
Deprecated.This Windchill script method just includes Javascript.html in the page. While using this script call, make sure that to pass includeJavascriptTemplate false param value while making getBodyTag() script call. This will ensure that Javascript.html includes don't happen twice.
Supported API: true- Parameters:
parameters- optional name/value pairs passed by the script calllocale- the locale to use for localizationos- the output stream
-
getBaseTag
Deprecated.This Windchill script method generates a base tag in the HTML page. It should be called at the beginning of the HEAD section of the page.
Supported API: true- Parameters:
parameters- optional name/value pairs passed by the script call- The name "resourceName" can be used to pass the path of the base relative to Windchill/codebase. E.g., resourceName=wt/images. If not specified, Windchill/codebase will be used as the base.
locale- locale to use for localizationos- the output stream- Throws:
WTException
-
getState
Deprecated.Gets the object for the association that plays role: theState.
Supported API: true- Specified by:
getStatein interfaceProcessorService- Returns:
- HTTPState
-
setState
Deprecated.Sets the object for the association that plays role: theState.
Supported API: true- Specified by:
setStatein interfaceProcessorService- Parameters:
a_State-
-
getContextAction
Deprecated.Gets the value of the attribute: contextAction; Context Action is the name of the action of the current page
Supported API: true- Specified by:
getContextActionin interfaceContextHolder- Returns:
- String
-
setContextAction
Deprecated.Sets the value of the attribute: contextAction; Context Action is the name of the action of the current page
Supported API: true- Specified by:
setContextActionin interfaceContextHolder- Parameters:
a_ContextAction-
-
getContextObj
Deprecated.Gets the value of the attribute: contextObj; Context Object is the reference object of the current page
Supported API: true- Specified by:
getContextObjin interfaceContextHolder- Returns:
- Object
-
setContextObj
Deprecated.Sets the value of the attribute: contextObj; Context Object is the reference object of the current page
Supported API: true- Specified by:
setContextObjin interfaceContextHolder- Parameters:
a_ContextObj-
-
getContextClassName
Deprecated.Gets the value of the attribute: contextClassName; Context Object Name is the name of the class of the current page
Supported API: true- Specified by:
getContextClassNamein interfaceContextHolder- Returns:
- String
-
setContextClassName
Deprecated.Sets the value of the attribute: contextClassName; Context Object Name is the name of the class of the current page
Supported API: true- Specified by:
setContextClassNamein interfaceContextHolder- Parameters:
a_ContextClassName-
-
getContextProperties
Deprecated.Gets the value of the attribute: contextProperties.
Supported API: true- Specified by:
getContextPropertiesin interfaceContextHolder- Returns:
- Properties
-
setContextProperties
Deprecated.Sets the value of the attribute: contextProperties.
Supported API: true- Specified by:
setContextPropertiesin interfaceContextHolder- Parameters:
a_ContextProperties-
-
getResponseExceptions
Deprecated.Gets the value of the attribute: responseExceptions.
Supported API: true- Specified by:
getResponseExceptionsin interfaceContextHolder- Returns:
- Vector
-
setResponseExceptions
Deprecated.Sets the value of the attribute: responseExceptions.
Supported API: true- Specified by:
setResponseExceptionsin interfaceContextHolder- Parameters:
a_ResponseExceptions-
-
getResponseHeaders
Deprecated.Gets the value of the attribute: responseHeaders.
Supported API: true- Specified by:
getResponseHeadersin interfaceContextHolder- Returns:
- Vector
-
setResponseHeaders
Deprecated.Sets the value of the attribute: responseHeaders.
Supported API: true- Specified by:
setResponseHeadersin interfaceContextHolder- Parameters:
a_ResponseHeaders-
-
getResponseMessages
Deprecated.Gets the value of the attribute: responseMessages.
Supported API: true- Specified by:
getResponseMessagesin interfaceContextHolder- Returns:
- Vector
-
setResponseMessages
Deprecated.Sets the value of the attribute: responseMessages.
Supported API: true- Specified by:
setResponseMessagesin interfaceContextHolder- Parameters:
a_ResponseMessages-
-
getResponseString
Deprecated.Gets the value of the attribute: responseString.
Supported API: true- Specified by:
getResponseStringin interfaceContextHolder- Returns:
- String
-
setResponseString
Deprecated.Sets the value of the attribute: responseString.
Supported API: true- Specified by:
setResponseStringin interfaceContextHolder- Parameters:
a_ResponseString-
-
getStatus
public int getStatus()Deprecated.Gets the value of the attribute: status.
Supported API: true- Specified by:
getStatusin interfaceContextHolder- Returns:
- int
-
setStatus
public void setStatus(int a_Status) Deprecated.Sets the value of the attribute: status.
Supported API: true- Specified by:
setStatusin interfaceContextHolder- Parameters:
a_Status-
-
getFormData
Deprecated.Gets the value of the attribute: formData; Form Data is the data present in the form of the current HTML page.
Supported API: true- Specified by:
getFormDatain interfaceContextHolder- Returns:
- Properties
-
setFormData
Deprecated.Sets the value of the attribute: formData; Form Data is the data present in the form of the current HTML page.
Supported API: true- Specified by:
setFormDatain interfaceContextHolder- Parameters:
a_FormData-
-
getQueryData
Deprecated.Gets the value of the attribute: queryData; Query Data is the information present after the "?" mark on the URL of the current page.
Supported API: true- Specified by:
getQueryDatain interfaceContextHolder- Returns:
- Properties
-
setQueryData
Deprecated.Sets the value of the attribute: queryData; Query Data is the information present after the "?" mark on the URL of the current page.
Supported API: true- Specified by:
setQueryDatain interfaceContextHolder- Parameters:
a_QueryData-
-
addToResponseExceptions
Deprecated.Adds a LocalizableMessage message to the list of stackTraces that can be presented with the Windchill Script callshowResponseExceptions
Supported API: true- Specified by:
addToResponseExceptionsin interfaceContextHolder- Parameters:
newException-
-
addToResponseMessages
Deprecated.Adds a LocalizableMessage message to the list of localizable messages that can be presented with the Windchill Script callshowResponseMessages
Supported API: true- Specified by:
addToResponseMessagesin interfaceContextHolder- Parameters:
newMessage-
-
addToResponseHeaders
Deprecated.Adds a LocalizableMessage message to the list of localizable messages that can be presented with the Windchill Script callshowResponseHeaders
Supported API: true- Specified by:
addToResponseHeadersin interfaceContextHolder- Parameters:
newHeader-
-