Interface ProcessorService
- All Superinterfaces:
ContextHolder
- All Known Implementing Classes:
ClientActionProcessService,ContainerTemplateProcessor,LifeCycleProcessorService,LinkProcessorService,PickerFormProcessor,RedirectPageProcessor,RoleHolderProcessorService,StateProcessorService,SubTemplateService,TeamRoleHolderProcessorService,TemplateProcessorTableService,UtilProcessorService,WorkProcessorService,WsPrefCommonTemplateProcessor
In many cases there is a some common service that is required by several TemplateProcessors. One could place the code in the common parent of the TemplateProcessors to make the code available to all of the TemplateProcessors or place redundent code in all of the TemplateProcessors.
Neither of these is desirable. The better solution is to create an implementor of this interface an have the implementor of this interface perform the service. This implements a more correct Object Orient code solution.
Here is how to access your new Service and a specific method in your new service Assume that the class, wt.util.MyTemplateService, is an implementor of the ProcessorService and that the method displayHelpIcon has the correct signature for a Windchill script call, namely,
public void displayHelpIcon(Properties parameters, Locale locale, OutputStream
os)
Use the following winchill Script call to invoke this method
useProcessorService service=wt.util.MyTemplateService method=displayHelpIcon
Implementors of this interface MUST be modeled and be code generated.
If they are not, then the required methods and default implementations
will not be present.
Supported API: true
Extendable: true
-
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, STATUS -
Method Summary
Methods inherited from interface wt.templateutil.processor.ContextHolder
addToResponseExceptions, addToResponseFooters, addToResponseHeaders, addToResponseMessages, getContextAction, getContextClassName, getContextObj, getContextProperties, getFormData, getQueryData, getResponseExceptions, getResponseFooters, getResponseHeaders, getResponseMessages, getResponseString, getStatus, setContextAction, setContextClassName, setContextObj, setContextProperties, setFormData, setQueryData, setResponseExceptions, setResponseFooters, setResponseHeaders, setResponseMessages, setResponseString, setStatus
-
Field Details
-
STATE
Deprecated.Label for the attribute.
Supported API: true- See Also:
-
-
Method Details
-
getState
HTTPState getState()Deprecated.Gets the object for the association that plays role: STATE.
Supported API: true- Returns:
- HTTPState
-
setState
Deprecated.Sets the object for the association that plays role: STATE.
Supported API: true- Parameters:
a_State-
-