Class SubTemplateService
- All Implemented Interfaces:
ContextHolder,ProcessorService
The purpose of this service is that if you have a certain section of HTML that is being used in several pages, you should factor out that section of HTML as a sub-template and then use this service to "import" the processed HTML template in the page.
The Windchill Script call to invoke the inplace processing of a subtemplate (This assumes your TemplateProcessor has wt.enterprise.BasicTemplateProcessor in its hierarchy) is
processSubTemplate action=<New Action>
Here, the
Any name/value pairs passed in the Windchill Script call will be
available in the sub-Template TemplateProcessor via the ContextProperties
object.
Supported API: true
Extendable: false
-
Field Summary
FieldsFields 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 -
Constructor Summary
ConstructorsConstructorDescriptionSubTemplateService(Properties parameters, Locale locale, OutputStream os) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getOs()Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getState()Deprecated.intDeprecated.Deprecated.voidprocessTemplate(String action, Object contextObj) Deprecated.voidprocessTemplate(String action, String className) Deprecated.voidprocessTemplate(HTTPState templateState) Deprecated.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.voidsetHtmlTemplateName(String a_HtmlTemplateName) Deprecated.voidsetOs(OutputStream a_Os) 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.voidsetTemplateProcessorName(String a_TemplateProcessorName) Deprecated.
-
Field Details
-
PROCESSOR
Deprecated.
Supported API: true- See Also:
-
TEMPLATE
Deprecated.
Supported API: true- See Also:
-
-
Constructor Details
-
SubTemplateService
Deprecated.Contructor that passes in the information from the Windchill script call so that the sub-Template can be processed.
Supported API: true- Parameters:
parameters-locale-os-
-
-
Method Details
-
getOs
Deprecated.Gets the value of the attribute: os.
Supported API: true- Returns:
- OutputStream
-
setOs
Deprecated.Sets the value of the attribute: os.
Supported API: true- Parameters:
a_Os-
-
getTemplateProcessorName
Deprecated.Gets the value of the attribute: templateProcessorName.
Supported API: true- Returns:
- String
-
setTemplateProcessorName
Deprecated.Sets the value of the attribute: templateProcessorName.
Supported API: true- Parameters:
a_TemplateProcessorName-
-
getHtmlTemplateName
Deprecated.Gets the value of the attribute: htmlTemplateName.
Supported API: true- Returns:
- String
-
setHtmlTemplateName
Deprecated.Sets the value of the attribute: htmlTemplateName.
Supported API: true- Parameters:
a_HtmlTemplateName-
-
processTemplate
Deprecated.Selects and processes the the sub-Template using the TemplateProcessor that are selected from an entry in a service.properties type properties file. The action and the className define the Context Action and the Context Class to be used by the ApplicationContextServices to find the desired entry for both the sub-Template and the TemplateProcessor.
Supported API: true- Parameters:
action-className-
-
processTemplate
Deprecated.Selects and processes the the sub-Template using the TemplateProcessor that are selected from an entry in a service.properties type properties file. The action and the contextObj define the Context Action and the Context Class to be used by the ApplicationContextServices to find the desired entry for both the sub-Template and the TemplateProcessor.
Supported API: true- Parameters:
action-contextObj-
-
processTemplate
Deprecated.Selects and processes the the sub-Template using the TemplateProcessor that are selected from an entry in a service.properties type properties file. The HTTPState object defines the Context Action and the Context Class to be used by the ApplicationContextServices to find the desired entry for both the sub-Template and the TemplateProcessor.The advantage of this method is that more information can be passed into to TemplateProcessor for the sub-Template by using the HTTPState object.
Supported API: true- Parameters:
templateState-
-
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-
-