|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
Deprecation Notice: This class is still valid for this release, however
this serves as advance notice that it will be removed in the future.
All user interfaces built using the Windchill HTML Template Processing
client architecture will be rewritten using a different framework in
an upcoming release.
This abstract class implements several methods useful for template processing.
It is suggested that most new template processors should extend DefaultTemplateProcessor
.
Supported API: true
Extendable: false
Field Summary | |
protected static String |
ACTION
Deprecated. Description of the Field |
String |
ADD_HELP_ICON
Deprecated. Description of the Field |
static String |
ALL_CABINETS
Deprecated. Description of the Field |
protected static String |
BLANK_SPACE
Deprecated. Description of the Field |
protected static String |
BREAK_SEPARATOR
Deprecated. Description of the Field |
protected static String |
BREAK_TAG
Deprecated. Description of the Field |
private static String |
CHECKOUT_FOLDER
Deprecated. |
protected static String |
CLASS
Deprecated. Description of the Field |
private static Hashtable |
classInfos
Deprecated. |
private static String |
CLASSNAME
Deprecated. |
private static String |
CODEBASE
Deprecated. |
protected HTMLComponentFactory |
componentFactory
Deprecated. Description of the Field |
static String |
CONTAINER_NAME
Deprecated. Description of the Field |
static String |
CONTENT_RESOURCE
Deprecated. Description of the Field |
protected String |
contextClass
Deprecated. Description of the Field |
private String[] |
contextListIn
Deprecated. |
private String[] |
contextListOut
Deprecated. |
static String |
DEFAULT_CHARSET
Deprecated. Description of the Field |
String |
DEFAULT_HELP_ICON_SELECTOR
Deprecated. Description of the Field |
String |
DEFAULT_HELP_LABEL
Deprecated. Description of the Field |
String |
DEFAULT_PREFERENCE_CONTEXT
Deprecated. Description of the Field |
private static String |
DND_CHECKED_FROM_PDM_AND_SHARED_FROM_GLYPH
Deprecated. |
private static String |
DND_GLYPH_IMG
Deprecated. |
private static String |
DND_WIP_CHECKED_OUT_AND_CHECKED_FROM_PDM_GLYPH
Deprecated. |
private static String |
DND_WIP_CHECKED_OUT_AND_CHECKED_OUT_FROM_PDM_AND_SHARED_FROM_GLYPH
Deprecated. |
private static String |
DND_WIP_CHECKED_OUT_AND_SHARED_FROM_GLYPH
Deprecated. |
private static String |
DND_WIP_CHECKED_OUT_AND_SHARED_TO_GLYPH
Deprecated. |
private static String |
DND_WIP_WORKCOPY_AND_CHKOUT_FROM_PDM_GLYPH
Deprecated. |
static String |
DOCFROMTEMPLATE
Deprecated. Description of the Field |
static String |
ENABLE_HELP_ICON_PROPERTY_NAME
Deprecated. Description of the Field |
static String |
ENTERPRISE_SEARCH
Deprecated. Description of the Field |
static long |
EXTERNALIZATION_VERSION_UID
Deprecated. |
private static String |
FEDERATION_RESOURCE
Deprecated. |
static String |
FEDERATION_SEARCH
Deprecated. Description of the Field |
static String |
GLOBAL_NAVIGATION_ENABLE_HELP_ICON
Deprecated. Description of the Field |
protected static boolean |
globalNavBarHelpIconEnabledDefault
Deprecated. Description of the Field |
private static String[][] |
glyphImages
Deprecated. |
String |
HELP_CONTEXT
Deprecated. Description of the Field |
String |
HELP_ICON_POSITION
Deprecated. Description of the Field |
String |
HELP_ICON_SELECTOR
Deprecated. Description of the Field |
String |
HELP_LABEL
Deprecated. Description of the Field |
String |
HELP_LABEL_RESOURCE
Deprecated. Description of the Field |
String |
HELP_WINDOW_NAME
Deprecated. Description of the Field |
protected String |
helpContext
Deprecated. Description of the Field |
protected boolean |
helpIconEnabled
Deprecated. Description of the Field |
protected static boolean |
helpIconEnabledDefault
Deprecated. Description of the Field |
static String |
HOMEPAGE
Deprecated. Description of the Field |
private static String |
HTML_GATEWAY
Deprecated. |
private static String |
HTML_TEMPLATE_ACTION
Deprecated. |
private TemplateProcessorTableService |
htmlTableService
Deprecated. |
static String |
IDPREFIX
Deprecated. Constant for ID key property key. |
static String |
IMPORT
Deprecated. Description of the Field |
static String |
INTEGRATED_SEARCH
Deprecated. Description of the Field |
protected static boolean |
isDndMicroAppletEnabled
Deprecated. Description of the Field |
protected static boolean |
isDndMicroAppletEnabledInitialized
Deprecated. Description of the Field |
private static Method |
isWildfireIconDelegateMethod
Deprecated. |
static String |
LABEL_SEPARATOR
Deprecated. Description of the Field |
static String |
LINE_FEED_DELIMITER
Deprecated. Description of the Field |
protected String |
linkPrefix
Deprecated. Description of the Field |
static String |
LOCAL_SEARCH
Deprecated. Description of the Field |
private static int |
MAXLENGTH
Deprecated. |
protected static String |
OID
Deprecated. Description of the Field |
protected static long |
OLD_FORMAT_VERSION_UID
Deprecated. |
protected PageContext |
pageContext
Deprecated. Description of the Field |
static String |
PDMLINK_INSTALL_KEY
Deprecated. Description of the Field |
private static boolean |
PDMLinkInstalled
Deprecated. |
static String |
PERSONAL_CABINET
Deprecated. Description of the Field |
String |
PREF_WINDOW_NAME
Deprecated. Description of the Field |
String |
PREFERENCE_CONTEXT
Deprecated. Description of the Field |
String |
PRESENT_HELP_LABEL
Deprecated. Description of the Field |
static String |
PROJECTLINK_INSTALL_KEY
Deprecated. |
private static boolean |
ProjectLinkInstalled
Deprecated. |
private StdTemplateProcessor |
queryService
Deprecated. |
private static String |
RESOURCE
Deprecated. |
static String |
SEARCH
Deprecated. Description of the Field |
private static String |
SECONDARY_EXCLUDE
Deprecated. |
(package private) static long |
serialVersionUID
Deprecated. |
static String |
SHARE_ICON
Deprecated. Description of the Field |
private static boolean |
templateCommentsEnabled
Deprecated. |
static String |
TEXT_RESOURCE_BUNDLE
Deprecated. Description of the Field |
private HTTPState |
theState
Deprecated. |
static String |
URL_RESOURCE
Deprecated. Description of the Field |
private static ResourceBundle |
urlLinkResource
Deprecated. |
private static boolean |
VERBOSE
Deprecated. |
private static boolean |
visualizationEnabled
Deprecated. |
static String |
WORKLIST
Deprecated. Description of the Field |
protected WTAttribute |
wtAttribute
Deprecated. Description of the Field |
static String |
WTCORE_IMAGE_DIR
Deprecated. Description of the Field |
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 | |
BasicTemplateProcessor()
Deprecated. |
Method Summary | |
static boolean |
AccessOK(String action,
Object obj,
HTTPRequest request)
Deprecated. Checks whether a given action is currently available for a given object. |
void |
addHiddenProperty(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Adds a feature to the HiddenProperty attribute of the BasicTemplateProcessor object |
void |
addHTMLHelpLink(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
addToResponseExceptions(Exception newException)
Deprecated. |
void |
addToResponseFooters(LocalizableMessage newFooter)
Deprecated. |
void |
addToResponseHeaders(LocalizableMessage newHeader)
Deprecated. |
void |
addToResponseMessages(LocalizableMessage newMessage)
Deprecated. |
void |
allVersions(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs HTML to display all versions of a Mastered object. |
private String |
appDataTableHeading(Locale locale)
Deprecated. Outputs the table headings for the Application Data (file content) table. |
void |
bcwti(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. No-op method to filter out copyright statements on templates so they aren't sent to browser. |
static String |
buildFormProcessorURL(String label,
String parameters,
String method,
Properties properties)
Deprecated. Returns a string representation of a URL to the FormProcessor. |
static String |
buildFormProcessorURL(String class_string,
String label,
String parameters,
String method,
Properties properties)
Deprecated. Description of the Method |
void |
comment(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. No-op method to filter out comments on templates so they aren't sent to browser unless the wt.property "wt.template.commentsEnabled" is true. |
void |
createActionsBar(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Write a list of links to actions corresponding to the context object to the given OutputStream. |
void |
createFederationNavigationBar(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Output a table of links to federation actions. |
void |
createGlobalNavigationBar(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Output a table of links to global actions. |
void |
createNavigationBar(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs HTML Navigation Bar specific for object. |
void |
createParentFolderLink(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs a hyperlink to the object properties page of the parent folder of the context object. |
void |
currentTimestamp(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs HTML that describes the current date and time. |
void |
displayAllCabinets(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs a table displaying all of the cabinets for which the current user has read permissions. |
void |
displayAttributeName(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Description of the Method |
void |
displayAttributesTable(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Description of the Method |
void |
displayAttributeValue(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Description of the Method |
void |
displayFolderContents(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Displays the contents of the folder context object. |
static boolean |
displayFolderObject(WTContainer container,
WTObject obj)
Deprecated. |
void |
displayFolderTrail(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Description of the Method |
void |
displayGoToLatestLink(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. dysplay Go To Latest iteration link on the attribute block |
private void |
displayMeasurementSystemsDropDown(String currentMeasurementSystem,
String displayFormTag,
String tableAlignment,
String tableWidth,
PrintWriter out,
Locale locale)
Deprecated. Description of the Method |
void |
displayOrganizationIdentifier(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Description of the Method |
static String |
displayPendingChangeIndicator(Object object,
String gifImage,
boolean showURL)
Deprecated. Description of the Method |
void |
displayStyleSheetAttributesTable(Properties parameters,
Locale locale,
OutputStream os,
boolean USE_STYLE_SHEET)
Deprecated. This method when is the same as displayAttributesTable() with hard-coded fonts and colors removed and references to stylesheet settings added. |
void |
displayVisualData(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Displays a thumbnail and/or other appropriate visualization action links on the ObjectIdentificationVerbose html page of a Representable or Viewable object (WTPart, EPMDocument, WTDocument) Supported API: false |
static String |
formatDate(int format,
Date time,
Locale locale)
Deprecated. Formats the given with the given format type for the given locale. |
protected static Vector |
getActionPairs(String keyRep,
Locale locale)
Deprecated. Returns a Vector containing strings |
private SortedEnumeration |
getAllCabinets(String permission)
Deprecated. Returns all cabinets for which the current user has the given permission. |
static String |
getAllCabinetsURL(String label,
String parameters,
Locale locale)
Deprecated. Returns a String containing the HTML code to create a link to display all cabinets. |
private static String |
getAttrValue(Object obj,
String attr)
Deprecated. Returns the String value of the given attribute on the given object. |
void |
getBaselineItems(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Supported API: false |
static void |
getCharsetEncoding(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Method to output the appropriate charset encoding for the current locale. |
static String |
getCheckedOutFolderURL(String label,
String parameters,
Locale locale)
Deprecated. Gets the checkedOutFolderURL attribute of the BasicTemplateProcessor class |
void |
getClassIcon(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs the icon associated with the given class to the given OutputStream. |
protected static ClassInfo |
getClassInfo(Class class_name)
Deprecated. Returns the ClassInfo object corresponding to the given Class. |
private WTContainer |
getContainerByOid(String containerOid)
Deprecated. For the specified container oid, return the WTContainer object. |
String |
getContextAction()
Deprecated. |
String |
getContextClass()
Deprecated. Gets the contextClass attribute of the BasicTemplateProcessor object |
String |
getContextClassName()
Deprecated. |
String[] |
getContextListIn()
Deprecated. |
String[] |
getContextListOut()
Deprecated. |
Object |
getContextObj()
Deprecated. |
Properties |
getContextProperties()
Deprecated. |
static String |
getContextServiceName(String action_delegate)
Deprecated. Returns the CONTEXT_SERVICE_NAME for the ActionDelegate specified by the given delegate parameter. |
protected static String |
getDisplayName(Class class_name,
String attr,
Locale locale)
Deprecated. Returns the display name corresponding to the given attribute for the given class. |
void |
getDomainPath(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Gets the domainPath attribute of the BasicTemplateProcessor object |
void |
getEnabledVersion(Properties properties,
Locale locale,
OutputStream os)
Deprecated. Method to display the enabled version property of a templateable object that is a template |
String |
getEncoding(OutputStream out,
Locale locale)
Deprecated. Get character encoding that should be used with the template processing output stream. |
private static String |
getFamilyGlyph(String glyphLocation)
Deprecated. |
static String |
getFederationSearchURL(String label,
String search_type,
Properties parameters,
String href_props,
Locale locale)
Deprecated. Supported API: false |
private String |
getFileSize(ApplicationData file)
Deprecated. Returns a String containing the size of the given file in Kilobytes. |
private SortedEnumeration |
getFolderContents()
Deprecated. Retrieve the folder contents of the folder context object. |
void |
getFolderLocation(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Prints the folder location of the FolderEntry context object to the given OutputStream. |
void |
getFolderPath(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Prints the folder path of the FolderEntry context object to the given OutputStream. |
private static String |
getFolderTableHeading(Locale locale)
Deprecated. Returns a String containing the HTML code to display the heading for the folder contents table. |
Properties |
getFormData()
Deprecated. |
static String |
getGenericInstanceIconImgTag(Object obj)
Deprecated. |
static String |
getGlyphImageTag(WTObject object)
Deprecated. |
static String[][] |
getGlyphsArray()
Deprecated. |
static String |
getGlyphTagsNoDnD(WTObject obj,
Vector glyphResources,
boolean forceFullyQualified)
Deprecated. Gets the tags for an object's icon glyphs (no drag and drop). |
String |
getHelpContext()
Deprecated. Gets the helpContext attribute of the BasicTemplateProcessor object |
static String |
getHomepageURL(String label,
String href_properties,
Locale locale)
Deprecated. Returns a String representation of a URL to the Windchill homepage Supported API: false |
HTMLComponentFactory |
getHTMLComponentFactory()
Deprecated. Gets the hTMLComponentFactory attribute of the BasicTemplateProcessor object |
String |
getHTMLHelpLink(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Returns a String with the HTML for a link to a context dependent Help page. |
void |
getHTMLHelpURL(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
String |
getHTMLHelpURL(String helpContext,
Locale locale)
Deprecated. This call will generate the URL of a Help page based on the current Context Object or Context Class Name and the HelpContext String that is passed in. |
TemplateProcessorTableService |
getHTMLTableService()
Deprecated. |
String |
getIconResource()
Deprecated. Returns a String containing the URL to the icon for the context object. |
private static String |
getIconResource(Class obj_class)
Deprecated. Returns a String containing the URL to the icon for the given class. |
static String |
getIconResource(IconSelector iconSelector,
boolean forceFullyQualified)
Deprecated. Returns a String containing the URL to the icon for the given class. |
static String |
getIconResource(Object obj,
HTTPState a_State)
Deprecated. Returns a String containing the URL to the icon for the given WTObject or class. |
private static String |
getIconResource(WTObject obj,
HTTPState a_State)
Deprecated. Returns a String containing the URL to the icon for the given WTObject. |
private static String |
getIconResource(WTObject obj,
HTTPState a_State,
boolean forceFullyQualified)
Deprecated. Returns a String containing the URL to the icon for the given WTObject. |
static IconSelector |
getIconSelector(WTObject obj,
HTTPState a_State,
String sharedFrom,
String sharedTo,
WTContainer contextContainer)
Deprecated. Returns an IconSelector for the given object. |
void |
getId(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. This template processor method generates an ID value. |
JavaScriptManager |
getJavaScriptManager()
Deprecated. Gets the javaScriptManager attribute of the BasicTemplateProcessor object |
private String |
getKeyRep(Locale locale)
Deprecated. Gets the keyRep attribute of the BasicTemplateProcessor object |
void |
getLocalizedDateFormatMessage(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Gets the localizedDateFormatMessage attribute of the BasicTemplateProcessor object |
void |
getLocalizedMessage(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Produces HTML that represents a localized message from a resouce bundle. |
static PrintWriter |
getLocalizedPrintWriter(OutputStream out,
Locale locale)
Deprecated. Get a PrintWriter for the given output stream and locale. |
String |
getLocalizedString(ResourceBundle resource,
String key,
String backup)
Deprecated. Method to localize generic strings. |
void |
getObjectDnDIcon(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs the icon associated with the context object to the given OutputStream. |
void |
getObjectIcon(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs the icon associated with the context object to the given OutputStream. |
static String |
getObjectIconDnDTag(WTObject obj,
String backgroundColor,
ContentHolder holder)
Deprecated. Gets the HTML applet tag(s) to display the drag icon and glyphs associated with a given object. |
static Vector |
getObjectIconGlyphs(IconSelector selector,
boolean doDnD)
Deprecated. Returns the image files for the glyphs for an object |
static String |
getObjectIconImgTag(Class obj_class)
Deprecated. Returns the HTML code to display the image corresponding to the given object class |
static String |
getObjectIconImgTag(WTObject obj)
Deprecated. Gets the HTML tag(s) to display the icon and glyphs associated with a given object. |
static String |
getObjectIconImgTag(WTObject obj,
boolean forceFullyQualified)
Deprecated. Gets the HTML tag(s) to display the icon and glyphs associated with a given object. |
static String |
getObjectIconImgTag(WTObject obj,
String backgroundColor)
Deprecated. Gets the HTML tag(s) to display the icon and glyphs associated with a given object. |
private static String |
getObjectIconImgTag(WTObject obj,
String backgroundColor,
ContentHolder holder,
HTTPState a_State)
Deprecated. Gets the HTML tag(s) to display the icon and glyphs associated with a given object. |
private static String |
getObjectIconImgTag(WTObject obj,
String backgroundColor,
ContentHolder holder,
HTTPState a_State,
String sharedFrom,
String sharedTo,
WTContainer currentContainerContext)
Deprecated. Gets the HTML tag(s) to display the icon and glyphs associated with a given object. |
private static String |
getObjectIconImgTag(WTObject obj,
String backgroundColor,
ContentHolder holder,
HTTPState a_State,
String sharedFrom,
String sharedTo,
WTContainer currentContainerContext,
boolean forceFullyQualified)
Deprecated. Gets the HTML tag(s) to display the icon and glyphs associated with a given object. |
private static String |
getObjectIconImgTag(WTObject obj,
String backgroundColor,
HTTPState a_State)
Deprecated. Gets the HTML tag(s) to display the icon and glyphs associated with a given object. |
static String |
getObjectIconImgTag(WTObject obj,
String sharedFrom,
String sharedTo,
WTContainer currentContainerContext)
Deprecated. Gets the HTML tag(s) to display the icon and glyphs associated with a given object. |
static String |
getObjectIconImgTag(WTObject obj,
String sharedFrom,
String sharedTo,
WTContainer currentContainerContext,
boolean forceFullyQualified)
Deprecated. Gets the HTML tag(s) to display the icon and glyphs associated with a given object. |
protected String |
getObjectPropertyValueString(String propertyName,
Properties parameters,
Locale locale,
Object obj)
Deprecated. A utility method that implements some of the basic functionality needed by objectPropertyValue(). |
protected String |
getObjectPropertyValueString(String propertyName,
Properties parameters,
Locale locale,
Object obj,
boolean warn)
Deprecated. Returns the String value of the attribute specified by the given property name on the given object. |
private static String |
getObjectType(WTObject obj)
Deprecated. Returns a string for the type of the object (e.g. |
private HTMLTemplate |
getOITemplate(String mode,
Locale locale)
Deprecated. Return an initialized HTMLTemplate. |
private String |
getOITemplateName(String mode)
Deprecated. Gets the oITemplateName attribute of the BasicTemplateProcessor object |
PageContext |
getPageContext()
Deprecated. Gets the pageContext attribute of the BasicTemplateProcessor object |
protected String |
getParentFolderLink(CabinetBased cabinet_based,
String label,
Locale locale)
Deprecated. Returns the String containing the HTML code to display a Hyperlink to the object properties page of the parent folder of the given FolderEntry object. |
protected static Cabinet |
getPersonalCabinet(WTPrincipal principal)
Deprecated. Returns the personal cabinet corresponding to the given WTPrincipal. |
static String |
getPersonalCabinetURL(WTPrincipal principal,
String label,
String params,
Locale locale)
Deprecated. Return a String representation of a URL to the user's personal cabinet. |
protected static String |
getPreferenceValue(String node,
String key)
Deprecated. Gets the preferenceValue attribute of the BasicTemplateProcessor class |
protected String |
getPrincipalEmailLink(WTPrincipalReference principal,
String args)
Deprecated. Returns a String containing the HTML code to display a mail-to hyperlink to the e-mail of the principal referenced by the given WTPrincipalReference. |
protected String |
getPrincipalEmailLink(WTPrincipal principal,
String args)
Deprecated. Returns a String containing the HTML code to display a mail-to hyperlink to the e-mail of the given principal. |
PrintWriter |
getPrintWriter(OutputStream out,
Locale locale)
Deprecated. Get a PrintWriter for the given output stream and locale. |
static String |
getPropertyFromPropertyFile(Properties parameters)
Deprecated. Method to return the String value of a property from a property file. |
void |
getQuery(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Gets the query specified by the value of the parameter whose key is 'QueryName'. |
Properties |
getQueryData()
Deprecated. |
void |
getReferenceString(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Gets the referenceString attribute of the BasicTemplateProcessor object |
static String |
getReferenceString(WTObject obj)
Deprecated. Gets the referenceString attribute of the BasicTemplateProcessor class |
void |
getResourceString(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
static String |
getResourceString(String resourceToken,
Locale locale,
String resourceBundle,
String defaultText)
Deprecated. This is a service to get a localized string from a resource bundle. |
Vector |
getResponseExceptions()
Deprecated. |
Vector |
getResponseFooters()
Deprecated. |
Vector |
getResponseHeaders()
Deprecated. |
Vector |
getResponseMessages()
Deprecated. |
String |
getResponseString()
Deprecated. |
void |
getSearchCriteriaURL(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Supported API: false |
static String |
getSearchCriteriaURL(String label,
String search_type,
Properties parameters,
String href_props,
Locale locale)
Deprecated. Supported API: false |
String |
getSearchResultsURL(String attribute,
String value,
String label,
String search_objs,
Locale locale)
Deprecated. Supported API: false |
String |
getShareImage()
Deprecated. Gets the shareImage attribute of the BasicTemplateProcessor object |
static String |
getShareImage(Object obj)
Deprecated. Returns the Share Image Supported API: false |
HTTPState |
getState()
Deprecated. |
int |
getStatus()
Deprecated. |
static String |
getStringFromResourceBundle(String resource_key,
String resource_class,
Locale locale)
Deprecated. Gets the stringFromResourceBundle attribute of the BasicTemplateProcessor class |
static String |
getStringFromResourceBundle(String resource_key,
String resource_class,
Object[] params,
Locale locale)
Deprecated. Gets the stringFromResourceBundle attribute of the BasicTemplateProcessor class |
void |
getTemplateDisplayGeneral(Properties properties,
Locale locale,
OutputStream os)
Deprecated. Method to display the template property of an object along with its availability for use. |
void |
getTrailId(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Constructs an HTML tag ID suitable for Pro/E trail file instrumentation. |
void |
getTrlIdAttribute(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Constructs a trlId tag suitable for Pro/E trail file instrumentation. |
static Vector |
getURLActions(Class obj_class,
Locale locale)
Deprecated. Given a class, returns a Vector of URLActionDelegates
available for that class. |
static Vector |
getURLActions(Class obj_class,
Locale locale,
boolean minimal_list)
Deprecated. Gets the uRLActions attribute of the BasicTemplateProcessor class |
static Vector |
getURLActions(Object obj,
Locale locale)
Deprecated. Given an object, returns a Vector of URLActionDelegates
available for that class of object. |
static Vector |
getURLActions(Object obj,
Locale locale,
boolean minimal)
Deprecated. Gets the uRLActions attribute of the BasicTemplateProcessor class |
String |
getURLActionsString(Object obj,
Locale locale,
String link_params)
Deprecated. Returns a String of links to actions that can be performed on the given Object. |
String |
getURLActionsString(Object obj,
Vector actionDelegates,
Locale locale,
String link_params)
Deprecated. Gets the uRLActionsString attribute of the BasicTemplateProcessor object |
protected static URLFactory |
getURLFactory()
Deprecated. This method should be used ONLY for static methods for legacy processor support. |
static String |
getURLFromDelegate(URLActionDelegate delegate,
Object obj,
HTTPState state)
Deprecated. Given an object, a URLActionDelegate and a HTTPState object, returns a URL string for an action. |
void |
getURLProcessorLink(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
String |
getURLProcessorLink(String methodName,
Properties parameters)
Deprecated. Gets the uRLProcessorLink attribute of the BasicTemplateProcessor object |
String |
getURLProcessorLink(String methodName,
Properties parameters,
boolean fullyQualified)
Deprecated. Gets the uRLProcessorLink attribute of the BasicTemplateProcessor object |
static String |
getURLProcessorLinkWithLabel(String label,
String parameters,
String method,
Properties properties)
Deprecated. Gets the uRLProcessorLinkWithLabel attribute of the BasicTemplateProcessor class |
WTPartUsageLink[] |
getUsedByLinks()
Deprecated. Supported API: false |
void |
getWCColor(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Retrieves the value of a HTML color property from wt.properties and writes it to the HTML page. |
static String |
getWCColor(String styleClass)
Deprecated. Retrieves the value of a HTML color property from wt.properties |
void |
getWCColorDec(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Retrieves the value of a HTML color property from wt.properties and writes it to the HTML page as a decimal integer. |
static String |
getWCColorDec(String styleClass)
Deprecated. Gets the wCColorDec attribute of the BasicTemplateProcessor class |
static String |
getWCFontFamily()
Deprecated. Retrieves the list of preferred HTML font faces from wt.properties |
void |
getWCFontFamily(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Retrieves the list of preferred HTML font faces from wt.properties. |
private static IconSelector |
getWildfireIconSelector(IconDelegate a_IconDelegate,
HTTPState a_State)
Deprecated. Gets the wildfireIconSelector attribute of the BasicTemplateProcessor class |
static String |
getWorklistURL(String label,
String href_properties,
Locale locale)
Deprecated. Returns a String representation of a URL to the current principal's worklist. |
WTAttribute |
getWTAttribute()
Deprecated. Gets the wTAttribute attribute of the BasicTemplateProcessor object |
WTContainer |
getWTContainerByName(String containerName)
Deprecated. For the specified container name, return back the WTContainer object. |
WTContainerRef |
getWTContainerRef(Properties parameters,
Locale locale)
Deprecated. Get container value as contextual value. |
void |
handleExceptionTP(String methodName,
Exception e,
boolean printStackTrace,
Properties parameters,
Locale locale,
OutputStream os)
Deprecated. This flavor of the handleExceptionTP() method can be called in the following scenario: |
void |
handleExceptionTP(String title,
String text,
Exception e,
boolean printStackTrace,
HTTPResponse resp,
Locale locale)
Deprecated. This flavor of the handleExceptionTP() method can be called in the following scenario: |
static void |
handleProcessorException(String methodName,
Exception e,
boolean printStackTrace,
Properties parameters,
Locale locale,
OutputStream os)
Deprecated. HandleProcessorException() method can be called in the following scenario: |
String |
hiddenContextString(String name,
String value)
Deprecated. Description of the Method |
private static boolean |
ignoreException(Throwable t)
Deprecated. Description of the Method |
void |
include(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. This method has been extended at Release 5.0. |
void |
initJavaScriptManager(Properties props,
Locale locale,
OutputStream os)
Deprecated. Description of the Method |
protected static boolean |
isDndMicroAppletEnabled()
Deprecated. Gets the dndMicroAppletEnabled attribute of the BasicTemplateProcessor class |
static boolean |
isEqual(WTObject object_a,
WTObject object_b)
Deprecated. Returns a boolean value indicating whether or not the two given WTObjects are equal. |
private static boolean |
isSandboxWorkingCopy(Versioned obj)
Deprecated. Gets the sandboxWorkingCopy attribute of the BasicTemplateProcessor class |
private boolean |
isWildfireEnabled()
Deprecated. Gets the wildfireEnabled attribute of the BasicTemplateProcessor object |
private static boolean |
isWildfireIconDelegate(IconDelegate a_IconDelegate)
Deprecated. Gets the wildfireIconDelegate attribute of the BasicTemplateProcessor class |
void |
listContent(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs a table listing the content items (files and URLs) associated with the ContentHolder context object. |
void |
objectActionLink(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs an HTML HREF with a URL to the wt.enterprise.URLProcessor class and its URLTemplateAction method. |
static String |
objectActionLinkAux(Object obj,
String action,
String label,
Locale locale)
Deprecated. A utility method that implements some of the basic functionality needed by objectActionLink(). |
static String |
objectActionLinkAux(Object obj,
String action,
String label,
Locale locale,
boolean inline)
Deprecated. A utility method that implements some of the basic functionality needed by objectActionLink(). |
static String |
objectActionLinkAux(Object obj,
String action,
String label,
Properties params,
Locale locale)
Deprecated. A utility method that implements some of the basic functionality needed by objectActionLink(). |
static String |
objectActionLinkAux(Object obj,
String action,
String label,
Properties params,
String href_props,
Locale locale)
Deprecated. A utility method that implements some of the basic functionality needed by objectActionLink(). |
static String |
objectActionLinkAux(Object obj,
String action,
String label,
Properties params,
String href_props,
Locale locale,
boolean inline)
Deprecated. A utility method that implements some of the basic functionality needed by objectActionLink(). |
static String |
objectActionLinkAux(Object obj,
String action,
String label,
String href_props,
Locale locale)
Deprecated. A utility method that implements some of the basic functionality needed by objectActionLink(). |
static String |
objectActionLinkAux(WTReference obj_ref,
String action,
String label,
Properties params,
String href_props,
Locale locale)
Deprecated. A utility method that implements some of the basic functionality needed by objectActionLink(). |
void |
objectBackground(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs HTML to set the background of the page to a supplied image. |
void |
objectIdentification(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Produces HTML which represents identification information for the contextual object of a BasicTemplateProcessor. |
void |
objectIdentifier(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs an object identifier of the form "wt.doc.General:2472". |
void |
objectProperties(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. A utility method for use during development and testing. |
void |
objectPropertyName(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs HTML which represents the display name of a property. |
void |
objectPropertyNameAux(Properties parameters,
Locale locale,
PrintWriter out)
Deprecated. A utility method that implements some of the basic functionality needed by objectPropertyName(). |
void |
objectPropertyNameAux2(Properties parameters,
Locale locale,
PrintWriter out,
String propertyName)
Deprecated. A utility method that implements some of the basic functionality needed by objectPropertyName(). |
void |
objectPropertyValue(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs HTML which represents the value of a property. |
void |
objectPropertyValueAux(Properties parameters,
Locale locale,
PrintWriter out)
Deprecated. A utility method that implements some of the basic functionality needed by objectPropertyValue(). |
void |
objectPropertyValueAux2(Properties parameters,
Locale locale,
PrintWriter out,
String propertyName)
Deprecated. A utility method that implements some of the basic functionality needed by objectPropertyValue(). |
protected String |
objectPropertyValueString(String propertyName,
Properties parameters,
Locale locale)
Deprecated. A utility method that implements some of the basic functionality needed by objectPropertyValue(). |
static void |
outputLink(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Description of the Method |
static void |
outputPropertyFromPropertyFile(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Method to output the value of a property from a property file. |
String |
parameterValue(Properties params,
String paramName)
Deprecated. Supported API: false |
void |
partUsedBy(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Supported API: false |
static boolean |
PDMLinkIsInstalled()
Deprecated. Returns true if PDMLink is installed Supported API: false |
void |
printQueryTable(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. A call to printQueryTable from an HTML template will generate an HTML table with the results of a query presented in the HTML table. |
void |
printTable(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Supported API: false |
void |
printTextArea(String label,
String text,
Properties parameters,
Locale locale,
OutputStream os)
Deprecated. A call to printTextArea will output an HTML textarea with a title under the assumption that the title and textarea are to appear as a row in the an HTML table. |
void |
processSubTemplate(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
readContext(HTTPRequest request)
Deprecated. Description of the Method |
void |
readExternal(ObjectInput input)
Deprecated. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Deprecated. Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(BasicTemplateProcessor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Deprecated. |
private String |
removeEnclosingQuotes(String value)
Deprecated. Utility method to remove any enclosing quotes from the given String. |
private SortedEnumeration |
retrieveFolderContents()
Deprecated. Retrieve the folder contents of the folder context object. |
private float |
roundToTwoDecimals(float number)
Deprecated. Returns the given float rounded to two decimal places. |
void |
setColumnProperties(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Supported API: false |
void |
setContextAction(String a_ContextAction)
Deprecated. |
void |
setContextClass(String a_contextClass)
Deprecated. Sets the contextClass attribute of the BasicTemplateProcessor object |
void |
setContextClassName(String a_ContextClassName)
Deprecated. |
void |
setContextListIn(String[] a_ContextListIn)
Deprecated. |
void |
setContextListOut(String[] a_ContextListOut)
Deprecated. |
void |
setContextObj(Object a_ContextObj)
Deprecated. |
void |
setContextProperties(Properties a_ContextProperties)
Deprecated. |
void |
setFormData(Properties a_FormData)
Deprecated. |
void |
setHelpContext(String a_HelpContext)
Deprecated. Sets the helpContext attribute of the BasicTemplateProcessor object |
void |
setHTMLTableService(TemplateProcessorTableService newTableService)
Deprecated. Sets the TemplateProcessorTableService instance to be used for the Windchill script calls |
void |
setJavaScriptManager(JavaScriptManager javaScriptManager)
Deprecated. Sets the javaScriptManager attribute of the BasicTemplateProcessor object |
void |
setPageContext(PageContext pageContext)
Deprecated. Sets the pageContext attribute of the BasicTemplateProcessor object |
void |
setQueryData(Properties a_QueryData)
Deprecated. |
void |
setResponseExceptions(Vector a_ResponseExceptions)
Deprecated. |
void |
setResponseFooters(Vector a_ResponseFooters)
Deprecated. |
void |
setResponseHeaders(Vector a_ResponseHeaders)
Deprecated. |
void |
setResponseMessages(Vector a_ResponseMessages)
Deprecated. |
void |
setResponseString(String a_ResponseString)
Deprecated. |
void |
setState(HTTPState a_State)
Deprecated. |
void |
setStatus(int a_Status)
Deprecated. |
void |
showResponseExceptions(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
showResponseFooters(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Presents the LocalizableMessages in maintained in the HTTPState object that were added to the HTTPState object with the call to the addToResponseFooters method. |
void |
showResponseHeaders(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Presents the LocalizableMessages in maintained in the HTTPState object that were added to the HTTPState object with the call to the addToResponseHeaders method. |
void |
showResponseMessage(String message,
Properties parameters,
Locale locale,
OutputStream os)
Deprecated. This method will receive a String and print the String out to the HMTL page in a centered HTML table with a border=3. |
void |
showResponseMessages(Vector messages,
Properties parameters,
Locale locale,
OutputStream os)
Deprecated. This method will receive a Vector containing LocalizableMessages and prints them out in order. |
protected void |
showVersions(QueryResult versions,
boolean versionTable,
Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Outputs HTML to display all versions of a Mastered object. |
static SortedEnumeration |
sortQueryResult(QueryResult results,
CollationKeyFactory key)
Deprecated. Sorts the given QueryResult using the given CollationKeyFactory. |
static String |
splitStringIntoTokens(String string_to_split)
Deprecated. Removes the LABEL_SEPARATOR characters in the given string and replaces them with spaces. |
void |
tableService(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
String |
translateToHtml(String value)
Deprecated. translateToHtml replaces null values or empty strings with the HTML code for a non-breakable space. |
private String |
urlTableHeading(Locale locale)
Deprecated. Outputs the table headings for the URL table. |
void |
useProcessorService(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Calls a method on a ProcessorService (or TemplateProcessor ) that is context aware. |
static boolean |
visualizationIsEnabled()
Deprecated. Returns true if Windhcill visualization services are enabled or false otherwise. |
void |
writeExternal(ObjectOutput output)
Deprecated. |
void |
writeHiddenContext(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. Description of the Method |
String |
writeQueryStringContext()
Deprecated. Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface wt.enterprise.TemplateProcessor |
handleRequest |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private HTTPState theState
private String[] contextListIn
private String[] contextListOut
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final String HOMEPAGE
public static final String WORKLIST
public static final String ENTERPRISE_SEARCH
public static final String LOCAL_SEARCH
public static final String INTEGRATED_SEARCH
public static final String FEDERATION_SEARCH
public static final String IMPORT
public static final String PERSONAL_CABINET
public static final String ALL_CABINETS
public static final String SEARCH
public static final String DOCFROMTEMPLATE
public static final String PDMLINK_INSTALL_KEY
private static boolean PDMLinkInstalled
public static final String PROJECTLINK_INSTALL_KEY
private static boolean ProjectLinkInstalled
protected static String ACTION
protected static String CLASS
protected static String OID
protected static String BREAK_SEPARATOR
protected static String BREAK_TAG
private static String CODEBASE
private static boolean VERBOSE
private StdTemplateProcessor queryService
public static final String CONTENT_RESOURCE
public static final String URL_RESOURCE
private static final String FEDERATION_RESOURCE
private static int MAXLENGTH
protected String helpContext
public final String HELP_CONTEXT
public final String HELP_LABEL
public final String HELP_LABEL_RESOURCE
public final String DEFAULT_HELP_LABEL
public final String HELP_WINDOW_NAME
protected static boolean helpIconEnabledDefault
protected static boolean globalNavBarHelpIconEnabledDefault
protected boolean helpIconEnabled
protected static boolean isDndMicroAppletEnabled
protected static boolean isDndMicroAppletEnabledInitialized
public final String ADD_HELP_ICON
public final String HELP_ICON_SELECTOR
public final String DEFAULT_HELP_ICON_SELECTOR
public final String PRESENT_HELP_LABEL
public final String HELP_ICON_POSITION
public static String LABEL_SEPARATOR
public static final String LINE_FEED_DELIMITER
public final String PREFERENCE_CONTEXT
public final String DEFAULT_PREFERENCE_CONTEXT
public final String PREF_WINDOW_NAME
public static final String TEXT_RESOURCE_BUNDLE
protected String contextClass
protected static final String BLANK_SPACE
private static ResourceBundle urlLinkResource
private static Hashtable classInfos
private static final String HTML_GATEWAY
private static final String HTML_TEMPLATE_ACTION
private TemplateProcessorTableService htmlTableService
public static String ENABLE_HELP_ICON_PROPERTY_NAME
public static String GLOBAL_NAVIGATION_ENABLE_HELP_ICON
public static String WTCORE_IMAGE_DIR
public static String SHARE_ICON
private static String[][] glyphImages
private static String DND_GLYPH_IMG
private static String DND_WIP_WORKCOPY_AND_CHKOUT_FROM_PDM_GLYPH
private static String DND_WIP_CHECKED_OUT_AND_CHECKED_FROM_PDM_GLYPH
private static String DND_WIP_CHECKED_OUT_AND_SHARED_FROM_GLYPH
private static String DND_WIP_CHECKED_OUT_AND_SHARED_TO_GLYPH
private static String DND_WIP_CHECKED_OUT_AND_CHECKED_OUT_FROM_PDM_AND_SHARED_FROM_GLYPH
private static String DND_CHECKED_FROM_PDM_AND_SHARED_FROM_GLYPH
private static final String CHECKOUT_FOLDER
public static final String IDPREFIX
protected String linkPrefix
protected WTAttribute wtAttribute
protected HTMLComponentFactory componentFactory
protected PageContext pageContext
private static boolean visualizationEnabled
private static boolean templateCommentsEnabled
private static Method isWildfireIconDelegateMethod
public static final String DEFAULT_CHARSET
private static String SECONDARY_EXCLUDE
public static final String CONTAINER_NAME
Constructor Detail |
public BasicTemplateProcessor()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(BasicTemplateProcessor thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public HTTPState getState()
public void setState(HTTPState a_State)
a_State
- public String[] getContextListIn()
getContextListIn
in interface ContextTranslator
public void setContextListIn(String[] a_ContextListIn)
setContextListIn
in interface ContextTranslator
a_ContextListIn
- public String[] getContextListOut()
getContextListOut
in interface ContextTranslator
public void setContextListOut(String[] a_ContextListOut)
setContextListOut
in interface ContextTranslator
a_ContextListOut
- public String getContextAction()
getContextAction
in interface ContextHolder
public void setContextAction(String a_ContextAction)
setContextAction
in interface ContextHolder
a_ContextAction
- public Object getContextObj()
getContextObj
in interface ContextHolder
public void setContextObj(Object a_ContextObj)
setContextObj
in interface ContextHolder
a_ContextObj
- public String getContextClassName()
getContextClassName
in interface ContextHolder
public void setContextClassName(String a_ContextClassName)
setContextClassName
in interface ContextHolder
a_ContextClassName
- public Properties getContextProperties()
getContextProperties
in interface ContextHolder
public void setContextProperties(Properties a_ContextProperties)
setContextProperties
in interface ContextHolder
a_ContextProperties
- public Vector getResponseExceptions()
getResponseExceptions
in interface ContextHolder
public void setResponseExceptions(Vector a_ResponseExceptions)
setResponseExceptions
in interface ContextHolder
a_ResponseExceptions
- public Vector getResponseFooters()
getResponseFooters
in interface ContextHolder
public void setResponseFooters(Vector a_ResponseFooters)
setResponseFooters
in interface ContextHolder
a_ResponseFooters
- public Vector getResponseHeaders()
getResponseHeaders
in interface ContextHolder
public void setResponseHeaders(Vector a_ResponseHeaders)
setResponseHeaders
in interface ContextHolder
a_ResponseHeaders
- public Vector getResponseMessages()
getResponseMessages
in interface ContextHolder
public void setResponseMessages(Vector a_ResponseMessages)
setResponseMessages
in interface ContextHolder
a_ResponseMessages
- public String getResponseString()
getResponseString
in interface ContextHolder
public void setResponseString(String a_ResponseString)
setResponseString
in interface ContextHolder
a_ResponseString
- public int getStatus()
getStatus
in interface ContextHolder
public void setStatus(int a_Status)
setStatus
in interface ContextHolder
a_Status
- public Properties getFormData()
getFormData
in interface ContextHolder
public void setFormData(Properties a_FormData)
setFormData
in interface ContextHolder
a_FormData
- public Properties getQueryData()
getQueryData
in interface ContextHolder
public void setQueryData(Properties a_QueryData)
setQueryData
in interface ContextHolder
a_QueryData
- public static PrintWriter getLocalizedPrintWriter(OutputStream out, Locale locale)
PrintWriter
for the given output stream and locale.
Template processing uses a special output stream that allows reuse of a
shared print writer and writes to the output stream using a character
encoding determined from the locale of the template file resource.
Therefore, all template processor methods should call this method when they
need a print writer for writing text to their output stream.
out
- the output stream passed to the processing methodlocale
- the locale passed to the processing method
public PrintWriter getPrintWriter(OutputStream out, Locale locale)
PrintWriter
for the given output stream and locale.
Template processing uses a special output stream that allows reuse of a
shared print writer and writes to the output stream using a character
encoding determined from the locale of the template file resource.
Therefore, all template processor methods should call this method when they
need a print writer for writing text to their output stream.
out
- the output stream passed to the processing methodlocale
- the locale passed to the processing method
public String getEncoding(OutputStream out, Locale locale)
out
- the output stream passed to the processing methodlocale
- the locale passed to the processing method
public void objectIdentification(Properties parameters, Locale locale, OutputStream os) throws WTException
It is expected that this method will be invoked as a result of an objectIdentification script call in an HTML template file. The format of objectIdentification script calls is:
The format of the HTML that is output is determined by an HTML template file. The template that is used is chosen from the templates directory based on the class of the contextual object, the locale and the parameters passed to the objectIdentification script call within a higher level HTML template. Currently the template file is chosen from either the ObjectIdentificationVerbose or ObjectIdentificationBrief directories. Within those directories the template is chosen on the basis of:
1. the class name of the context object 2. the wt.enterprise super class of the context object 3. the default template
Supported API: true
parameters
- The arguments that were passed to the Windchill
script call.locale
- The Locale to send to the invoked methods for
localization.os
- The output stream.
WTException
- Description of the Exceptionprivate HTMLTemplate getOITemplate(String mode, Locale locale) throws WTException
mode
- Description of the Parameterlocale
- Description of the Parameter
WTException
- Description of the Exceptionprivate String getOITemplateName(String mode)
mode
- Description of the Parameter
public void objectPropertyValue(Properties parameters, Locale locale, OutputStream os) throws IllegalAccessException, InvocationTargetException, WTIntrospectionException, WTException
It is expected that this method will be invoked as a result of an objectPropertyValue script call in an HTML template file. The format of objectPropertyValue script calls is:
The format of the HTML that is output is dependent on the type of the
property value.
Caution: This method will return " " for null
property values. Also, if the MethodContext contains the property
"preserveFormatting=true", characters with special meaning or treatment
in HTML will be encoded to display properly in browsers. For example,
'>' will be encoded as ">" and a carriage return will be encoded
as "<BR>." The preserveFormatting flag can be set using the
Windchill script method DefaultTemplateProcessor.setMethodContextProperty().
Supported API: true
parameters
- The arguments that
were passed to the Windchill script call.locale
- The Locale to send
to the invoked methods for localization.os
- The output stream.
IllegalAccessException
- Description of the
Exception
InvocationTargetException
- Description of the
Exception
WTIntrospectionException
- Description of the
Exception
WTException
- Description of the
Exceptionpublic void objectPropertyValueAux(Properties parameters, Locale locale, PrintWriter out) throws IllegalAccessException, InvocationTargetException, WTIntrospectionException, WTException
parameters
- Description of the
Parameterlocale
- Description of the
Parameterout
- Description of the
Parameter
IllegalAccessException
- Description of the
Exception
InvocationTargetException
- Description of the
Exception
WTIntrospectionException
- Description of the
Exception
WTException
- Description of the
Exceptionpublic void objectPropertyValueAux2(Properties parameters, Locale locale, PrintWriter out, String propertyName) throws IllegalAccessException, InvocationTargetException, WTIntrospectionException, WTException
parameters
- Description of the
Parameterlocale
- Description of the
Parameterout
- Description of the
ParameterpropertyName
- Description of the
Parameter
IllegalAccessException
- Description of the
Exception
InvocationTargetException
- Description of the
Exception
WTIntrospectionException
- Description of the
Exception
WTException
- Description of the
Exceptionprotected String objectPropertyValueString(String propertyName, Properties parameters, Locale locale) throws WTIntrospectionException, WTException
propertyName
- Description of the
Parameterparameters
- Description of the
Parameterlocale
- Description of the
Parameter
WTIntrospectionException
- Description of the
Exception
WTException
- Description of the
Exceptionprotected String getObjectPropertyValueString(String propertyName, Properties parameters, Locale locale, Object obj) throws WTIntrospectionException, WTException
propertyName
- Description of the Parameterparameters
- Description of the Parameterlocale
- Description of the Parameterobj
- Description of the Parameter
WTIntrospectionException
- Description of the Exception
WTException
- Description of the Exceptionprotected String getObjectPropertyValueString(String propertyName, Properties parameters, Locale locale, Object obj, boolean warn) throws WTIntrospectionException, WTException
Properties
parameter.
For example, if the given property has a type of VersionInfo, whether or
not the returned version information contains the iteration can be
specified in the Properties object. The following are key-value pairs
currently checked: Property Type Key Value Result versionInfo version_info
qualified contains the iteration WTPrincipalReference email true principal
name is returned as link to e-mail
propertyName
- the name of the
property whose value is returnedparameters
- a Properties
object containing key-value pairs which provide more information in
retrieving the property value.locale
- the Locale in which
the result should be formattedobj
- the object from which
the property value is retrievedwarn
- if true, when an
exception occurs, the returned string will contain the text of the
exception.
WTIntrospectionException
- Description of the
Exception
WTException
- Description of the
Exceptionprivate String removeEnclosingQuotes(String value)
value
- the String from which to remove quotes
public void objectPropertyName(Properties parameters, Locale locale, OutputStream os) throws IllegalAccessException, InvocationTargetException, WTIntrospectionException, WTException
It is expected that this method will be invoked as a result of an objectPropertyName script call in an HTML template file. The format of objectPropertyName script calls is:
Supported API: true
parameters
- The arguments that
were passed to the Windchill script call.locale
- The Locale to send
to the invoked methods for localization.os
- The output stream.
IllegalAccessException
- Description of the
Exception
InvocationTargetException
- Description of the
Exception
WTIntrospectionException
- Description of the
Exception
WTException
- Description of the
Exceptionpublic void objectPropertyNameAux(Properties parameters, Locale locale, PrintWriter out) throws WTIntrospectionException
parameters
- Description of the
Parameterlocale
- Description of the
Parameterout
- Description of the
Parameter
WTIntrospectionException
- Description of the
Exceptionpublic void objectPropertyNameAux2(Properties parameters, Locale locale, PrintWriter out, String propertyName)
parameters
- Description of the Parameterlocale
- Description of the Parameterout
- Description of the ParameterpropertyName
- Description of the Parameterpublic void objectProperties(Properties parameters, Locale locale, OutputStream os) throws IllegalAccessException, InvocationTargetException, WTIntrospectionException, WTException
parameters
- Description of the
Parameterlocale
- Description of the
Parameteros
- Description of the
Parameter
IllegalAccessException
- Description of the
Exception
InvocationTargetException
- Description of the
Exception
WTIntrospectionException
- Description of the
Exception
WTException
- Description of the
Exceptionpublic void objectActionLink(Properties parameters, Locale locale, OutputStream os) throws WTException
It is expected that this method will be invoked as a result of an objectActionLink script call in an HTML template file. The format of objectActionLink script calls is:
objectActionLink action=ObjProps labelPropertyName=requester
objectActionLink action=ObjProps
Supported API: true
parameters
- The arguments that were passed to the
Windchill script call.locale
- The Locale to send to the invoked methods
for localization.os
- The output stream.
WTException
- Description of the Exceptionpublic static String objectActionLinkAux(Object obj, String action, String label, Locale locale) throws WTException
obj
- the Object to be the context object of the
linkaction
- the action to link to (i.e. ObjProps)label
- the label to use as the text of the HREF
linklocale
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String objectActionLinkAux(Object obj, String action, String label, Locale locale, boolean inline) throws WTException
obj
- the Object to be the context object of the
linkaction
- the action to link to (i.e. ObjProps)label
- the label to use as the text of the HREF
linklocale
- Description of the Parameterinline
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String objectActionLinkAux(Object obj, String action, String label, String href_props, Locale locale) throws WTException
obj
- the Object to be the context object of the linkaction
- the action to link to (i.e. ObjProps)label
- the label to use as the text of the HREF linkhref_props
- a String containing HTML code to be used in the HREF
tags.locale
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String objectActionLinkAux(Object obj, String action, String label, Properties params, Locale locale) throws WTException
obj
- Description of the Parameteraction
- Description of the Parameterlabel
- Description of the Parameterparams
- Description of the Parameterlocale
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String objectActionLinkAux(Object obj, String action, String label, Properties params, String href_props, Locale locale) throws WTException
obj
- Description of the Parameteraction
- Description of the Parameterlabel
- Description of the Parameterparams
- Description of the Parameterhref_props
- Description of the Parameterlocale
- Description of the Parameter
WTException
- Description of the Exceptionprotected static URLFactory getURLFactory()
public static String objectActionLinkAux(Object obj, String action, String label, Properties params, String href_props, Locale locale, boolean inline) throws WTException
obj
- Description of the Parameteraction
- Description of the Parameterlabel
- Description of the Parameterparams
- Description of the Parameterhref_props
- Description of the Parameterlocale
- Description of the Parameterinline
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String objectActionLinkAux(WTReference obj_ref, String action, String label, Properties params, String href_props, Locale locale) throws WTException
obj_ref
- the WTReference to the object which is to be
associated as the context object for the linkaction
- the action to link tolabel
- the label to use as the text of the linkparams
- Properties to be included on the query
string of the linkhref_props
- Additional HTML to be included in the linklocale
- the Locale of the client in which this link
will be displayed
WTException
- Description of the Exceptionpublic void objectBackground(Properties parameters, Locale locale, OutputStream os) throws WTException
It is expected that this method will be invoked as a result of an objectBackground script call in an HTML template file. The format of objectBackground script calls is:
parameters
- The arguments that were passed to the Windchill
script call.locale
- The Locale to send to the invoked methods for
localization.os
- The output stream.
WTException
- Description of the Exceptionpublic void currentTimestamp(Properties parameters, Locale locale, OutputStream os) throws WTException
It is expected that this method will be invoked as a result of an currentTimestamp script call in an HTML template file. The format of currentTimestamp script calls is:
parameters
- The arguments that were passed to the Windchill
script call.locale
- The Locale to send to the invoked methods for
localization.os
- The output stream.
WTException
- Description of the Exceptionpublic void objectIdentifier(Properties parameters, Locale locale, OutputStream os) throws WTException
It is expected that this method will be invoked as a result of an objectIdentifier script call in an HTML template file. The format of objectIdentifier script calls is:
Supported API: false
parameters
- The arguments that were passed to the
Windchill script call.locale
- The Locale to send to the invoked methods
for localization.os
- The output stream.
WTException
- Description of the Exceptionpublic void getBaselineItems(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exceptionpublic void partUsedBy(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exceptionpublic WTPartUsageLink[] getUsedByLinks() throws WTException
WTException
- Description of the Exceptionpublic void listContent(Properties parameters, Locale locale, OutputStream os) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
parameters
- The arguments that were passed to the
Windchill script call.locale
- The Locale to send to the invoked
methods for localization.os
- The output stream.
WTException
- Description of the Exception
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exceptionprivate String appDataTableHeading(Locale locale)
locale
- Description of the Parameter
private String urlTableHeading(Locale locale)
locale
- Description of the Parameter
public String parameterValue(Properties params, String paramName) throws WTException
params
- Description of the ParameterparamName
- Description of the Parameter
WTException
- Description of the Exceptionpublic void displayAllCabinets(Properties parameters, Locale locale, OutputStream os) throws PropertyVetoException, InvocationTargetException, IllegalAccessException, WTException
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exception
WTException
- Description of the Exceptionprivate SortedEnumeration getAllCabinets(String permission) throws QueryException, WTException
permission
- optional String permission which determines what
cabinets are retrieved; if not given, all cabinets for which the user
has read permission is returned
QueryException
- Description of the Exception
WTException
- Description of the Exceptionpublic void displayFolderContents(Properties parameters, Locale locale, OutputStream os) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exception
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exceptionprivate SortedEnumeration getFolderContents()
private SortedEnumeration retrieveFolderContents() throws WTException
WTException
- Description of the Exceptionpublic String getIconResource() throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
WTException
- if an error occurs retrieving the icon
file
PropertyVetoException
- if an error occurs retrieving the icon
file
InvocationTargetException
- if an error occurs retrieving the icon
file
IllegalAccessException
- if an error occurs retrieving the icon
fileprivate static String getIconResource(WTObject obj, HTTPState a_State) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- the WTObject whose icon is desired (input)a_State
- HTTPState object associated with the current page (input)
WTException
- if an error occurs retrieving the icon
file
PropertyVetoException
- if an error occurs retrieving the icon
file
InvocationTargetException
- if an error occurs retrieving the icon
file
IllegalAccessException
- if an error occurs retrieving the icon
filepublic static String getIconResource(Object obj, HTTPState a_State) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- The object whose icon image is desired (input)a_State
- The HTTPState object associated with the current page (input)
WTException
- if an error occurs retrieving the icon file
PropertyVetoException
- if an error occurs retrieving the icon file
InvocationTargetException
- if an error occurs retrieving the icon file
IllegalAccessException
- if an error occurs retrieving the icon fileprivate static String getIconResource(WTObject obj, HTTPState a_State, boolean forceFullyQualified) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- the WTObject whose icon is desired (input)a_State
- The HTTPState object associated with the current page (input)
WTException
- if an error occurs retrieving the icon
file
PropertyVetoException
- if an error occurs retrieving the icon
file
InvocationTargetException
- if an error occurs retrieving the icon
file
IllegalAccessException
- if an error occurs retrieving the icon
fileprivate static String getIconResource(Class obj_class) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj_class
- the Class whose icon is desired (input)
WTException
- if an error occurs retrieving the icon
file
PropertyVetoException
- if an error occurs retrieving the icon
file
InvocationTargetException
- if an error occurs retrieving the icon
file
IllegalAccessException
- if an error occurs retrieving the icon
filepublic static String getIconResource(IconSelector iconSelector, boolean forceFullyQualified)
iconSelector
- IconSelector containing the icon image file name (input)forceFullyQualified
- true if a fully qualified URL is needed, false if not (input)
WTException
- if an error occurs retrieving the icon
file
PropertyVetoException
- if an error occurs retrieving the icon
file
InvocationTargetException
- if an error occurs retrieving the icon
file
IllegalAccessException
- if an error occurs retrieving the icon
filepublic static IconSelector getIconSelector(WTObject obj, HTTPState a_State, String sharedFrom, String sharedTo, WTContainer contextContainer) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- the WTObject whose icon is desired (input)a_State
- The HTTPState object associated with the current page (input)sharedFrom
- The following values are recognized:
sharedTo
- The following values are recognized:
contextContainer
- The container forming the context from
which the object is being viewed. Required if sharedFrom =
COMPUTE_SHARED_FROM_GLYPH or sharedTo = COMPUTE_SHARED_TO_GLYPH.
Otherwise may be null.
WTException
- if an error occurs retrieving the icon
file
PropertyVetoException
- if an error occurs retrieving the icon
file
InvocationTargetException
- if an error occurs retrieving the icon
file
IllegalAccessException
- if an error occurs retrieving the icon
fileprivate static String getFolderTableHeading(Locale locale)
locale
- Description of the Parameter
private static String getAttrValue(Object obj, String attr)
obj
- the object for which the attribute value is returnedattr
- the attribute whose value is to be returned
protected static String getDisplayName(Class class_name, String attr, Locale locale)
class_name
- the Class which contains the attribute whose display name
is returnedattr
- the attribute whose display name is returnedlocale
- Description of the Parameter
protected static ClassInfo getClassInfo(Class class_name)
class_name
- the class for which the ClassInfo is returned
public void getFolderLocation(Properties parameters, Locale locale, OutputStream os)
parameters
- the Properties passed in when this method is invoked.
This parameter is not usedlocale
- the Locale of the clientos
- the OutputStream which the folder location is written topublic void getFolderPath(Properties parameters, Locale locale, OutputStream os)
parameters
- the Properties passed in when this method is invoked.
This parameter is not usedlocale
- the Locale of the clientos
- the OutputStream which the folder path is written topublic void getDomainPath(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String getObjectIconImgTag(WTObject obj) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- The object whose icon is desired
WTException
- Description of the Exception
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exceptionpublic static String getObjectIconImgTag(WTObject obj, boolean forceFullyQualified) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- Object whose icon is desiredforceFullyQualified
- True if image urls must be fully qualified
regardless of the state of the existing URLFactory, if any
WTException
- Description of the Exception
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exceptionpublic static String getObjectIconImgTag(WTObject obj, String backgroundColor) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- The WTObject whose icon is desiredbackgroundColor
- Background color. Optional. Used for drag and drop.
WTException
- if an error occurs retrieving the icon
PropertyVetoException
- if an error occurs retrieving the icon
InvocationTargetException
- if an error occurs retrieving the icon
IllegalAccessException
- if an error occurs retrieving the iconpublic static String getObjectIconImgTag(WTObject obj, String sharedFrom, String sharedTo, WTContainer currentContainerContext) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- Object whose icon is desired.
Required.sharedFrom
- The following values are recognized:
sharedTo
- The following values are recognized:
currentContainerContext
- The container forming the context from
which the object is being viewed. Required if sharedFrom =
COMPUTE_SHARED_FROM_GLYPH or sharedTo = COMPUTE_SHARED_TO_GLYPH.
Otherwise may be null.
WTException
- Description of the Exception
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exceptionpublic static String getObjectIconImgTag(WTObject obj, String sharedFrom, String sharedTo, WTContainer currentContainerContext, boolean forceFullyQualified) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- Object whose icon is desired.
Required.sharedFrom
- The following values are recognized:
sharedTo
- The following values are recognized:
currentContainerContext
- The container forming the context from
which the object is being viewed. Required if sharedFrom =
COMPUTE_SHARED_FROM_GLYPH or sharedTo = COMPUTE_SHARED_TO_GLYPH.
Otherwise may be null.forceFullyQualified
- if true, returns the fully qualified
url for the icon
WTException
- Description of the Exception
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exceptionprivate static String getObjectIconImgTag(WTObject obj, String backgroundColor, HTTPState a_State) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- Object whose icon is desiredbackgroundColor
- Background color. Optional. Used for drag and drop.a_State
- HTTPState object associated with the current page
WTException
- Description of the Exception
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exceptionprivate static String getObjectIconImgTag(WTObject obj, String backgroundColor, ContentHolder holder, HTTPState a_State) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- Object whose icon is desiredbackgroundColor
- Background color. Optional. Used for drag and drop.holder
- Optional. Used for drag and drop.a_State
- HTTPState object associated with the current page
WTException
- Description of the Exception
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exceptionprivate static String getObjectIconImgTag(WTObject obj, String backgroundColor, ContentHolder holder, HTTPState a_State, String sharedFrom, String sharedTo, WTContainer currentContainerContext) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- Object whose icon is desiredbackgroundColor
- Background color. Optional. Used for drag and drop.holder
- Optional. Used for drag and drop.a_State
- HTTPState object associated with the current pagesharedFrom
- The following values are recognized:
sharedTo
- The following values are recognized:
currentContainerContext
- The container forming the context from
which the object is being viewed. Required if sharedFrom =
COMPUTE_SHARED_FROM_GLYPH or sharedTo = COMPUTE_SHARED_TO_GLYPH.
Otherwise may be null.
WTException
- Description of the Exception
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exceptionprivate static String getObjectIconImgTag(WTObject obj, String backgroundColor, ContentHolder holder, HTTPState a_State, String sharedFrom, String sharedTo, WTContainer currentContainerContext, boolean forceFullyQualified) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- Object whose icon is desired.
Required.backgroundColor
- Background color. Optional. Used for
drag and drop.holder
- Optional. Used for drag and drop.
c *@param a_State State of the objectforceFullyQualified
- get the fully qualified path of the icon
WTException
- Description of the Exception
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exceptionprivate static String getObjectType(WTObject obj)
public static String getGlyphTagsNoDnD(WTObject obj, Vector glyphResources, boolean forceFullyQualified) throws WTException
obj
- Object whose glyphs are desired (input)glyphResources
- Glyph image file paths relative to codebase.
If null and no family table glyph, an empty
string will be returned. (input)forceFullyQualified
- True if urls to images must be fully qualifed regardless
of the state of an existing URLFactory (input)
WTException
- Description of the Exceptionpublic static Vector getObjectIconGlyphs(IconSelector selector, boolean doDnD) throws WTException
selector
- IconSelector containing the names of the glyphs to be useddoDnD
- True if drag and drop glyphs should be returned
WTException
- Description of the Exceptionprivate static boolean isSandboxWorkingCopy(Versioned obj) throws WTException
obj
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String getObjectIconDnDTag(WTObject obj, String backgroundColor, ContentHolder holder) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj
- Description of the ParameterbackgroundColor
- Description of the Parameterholder
- Description of the Parameter
WTException
- Description of the Exception
PropertyVetoException
- Description of the Exception
InvocationTargetException
- Description of the Exception
IllegalAccessException
- Description of the Exceptionpublic static String getObjectIconImgTag(Class obj_class) throws WTException, PropertyVetoException, InvocationTargetException, IllegalAccessException
obj_class
- the object class for which the icon is
returned
WTException
- if an error occurs retrieving the icon
PropertyVetoException
- if an error occurs retrieving the icon
InvocationTargetException
- if an error occurs retrieving the icon
IllegalAccessException
- if an error occurs retrieving the iconpublic static String getGlyphImageTag(WTObject object)
object
- the WTObject for which the glyph is returned
public void getObjectIcon(Properties parameters, Locale locale, OutputStream os)
parameters
- the Properties passed in when this method is invoked;
this parameter is not used by this methodlocale
- the Locale in which the image will be displayedos
- the OutputStream to write the image to.public static String getShareImage(Object obj) throws WTException
obj
- Description of the Parameter
WTException
- Description of the Exceptionpublic String getShareImage() throws WTException
WTException
- Description of the Exceptionpublic void getClassIcon(Properties parameters, Locale locale, OutputStream os)
parameters
- the Properties passed in when this method is invoked; the
Properties object should contain the object classlocale
- the Locale in which the image will be displayedos
- the OutputStream to write the image to.protected String getParentFolderLink(CabinetBased cabinet_based, String label, Locale locale)
cabinet_based
- the CabinetBased object for which the link to the
properties page of the parent folder is returnedlabel
- the String label to use as the link text. If no label
is given, the display identity of the parent folder is used.locale
- the Locale in which the link will be displayed
public void createParentFolderLink(Properties parameters, Locale locale, OutputStream os)
parameters
- the Properties passed to the method when it is invoked
via a Script call. This method does not use this parameter.locale
- the locale in which the hyperlink is displayedos
- the OutputStream to which the hyperlink is writtenpublic static String formatDate(int format, Date time, Locale locale)
format
- the format type to use in formatting the given datetime
- the Date to be formattedlocale
- the Locale in which to format the date
WTStandardDateFormat
private String getFileSize(ApplicationData file)
file
- the ApplicationData item whose size is returned
private float roundToTwoDecimals(float number)
number
- the float to be rounded
protected String getPrincipalEmailLink(WTPrincipalReference principal, String args)
principal
- the WTPrincipalReference referencing the principal for
which a hyperlink to his/her e-mail is returned.args
- an optional string containing HTML code to be used in
building the HREF link.
protected String getPrincipalEmailLink(WTPrincipal principal, String args)
principal
- the WTPrincipal for which a hyperlink to his/her e-mail is
returned.args
- an optional string containing HTML code to be used in
building the HREF link.
public void createNavigationBar(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- The arguments that were passed to the Windchill
script call.locale
- The Locale to send to the invoked methods for
localization.os
- The output stream.
WTException
- Description of the Exceptionprivate String getKeyRep(Locale locale) throws WTException
locale
- Description of the Parameter
WTException
- Description of the Exceptionpublic void createActionsBar(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- the Properties which contains parameter values
specified in the script call. Can contain values for the link color and
background color of the table cells.locale
- the locale in which the links will be displayedos
- the OutputStream to write the table of links to.
WTException
- if an error occurs building the links to the actionsprotected static Vector getActionPairs(String keyRep, Locale locale)
keyRep
- Description of the Parameterlocale
- Description of the Parameter
public void allVersions(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- The arguments that were passed to the Windchill
script call.locale
- The Locale to send to the invoked methods for
localization.os
- The output stream.
WTException
- Description of the Exceptionprotected void showVersions(QueryResult versions, boolean versionTable, Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- The arguments that were passed to the Windchill
script call.locale
- The Locale to send to the invoked methods for
localization.os
- The output stream.versions
- Description of the ParameterversionTable
- Description of the Parameter
WTException
- Description of the Exceptionpublic String getLocalizedString(ResourceBundle resource, String key, String backup)
resource
- The resource bundle for localization.key
- The key in the resource bundle.backup
- The string that will be used if key is not found.
public String getSearchResultsURL(String attribute, String value, String label, String search_objs, Locale locale)
attribute
- Description of the Parametervalue
- Description of the Parameterlabel
- Description of the Parametersearch_objs
- Description of the Parameterlocale
- Description of the Parameter
public void include(Properties parameters, Locale locale, OutputStream os)
The additional functionality allows the inclusion of a file with a file extension of *.htm. *.html, or *.js. The included file is NOT allowed to have Windchill script calls. If you would like to include a sub-Template with script calls, you should use the processSubTemplate script call.
There are three ways to use this script call
include action=ObjProps
or
include action=ObjProps template=Simple
If the template is not specified, the template will be determined using the
current context object.
The template can be any of the current ObjectProperties templates.
This method is currently unsupported for customization. It is subject to
change or removal without notice.
The syntax for this usage is
include fileName=<Relative file path from codebase, no file extension>
An example of this would be if you would like to include copyright information and that file was located in /codebase/templates/util/copyright.html. You would the call
include fileName=templates/util/copyright
include selectorString=<String key to use in a properties file entry>
This usage will find the following entry in a properties file
An example of a call on a page displaying a wt.part.WTPart and the the corresponding entry in a property file is
include selectorString=TestInclude
This usage will find the following entry in a properties file
An example of a call and the the corresponding entry in a property file is
include selectorString=TestInclude requestorClass=java.lang.Object
Supported API: false
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic static void handleProcessorException(String methodName, Exception e, boolean printStackTrace, Properties parameters, Locale locale, OutputStream os)
Use case: An exception is thrown back to a method that corresponds to a "Windchill script language" call (a call that actually appears in an HTML template file, for example: objectPropertyValue or objectActionLink), and processing of the page should continue even though this call has failed.
This method will handle the exception by embedding a message in the generated web page that states:
"ERROR: During the dynamic generation of this web page, while processing
the Windchill script language method "methodName".
The error message is: "e.getLocalizedMessage()"
A stack trace has been printed to the log.
Generation of this web page will now continue."
If printStackTrace is false, then the line about the "stack trace" will not be generated in the web page.
Supported API: false
methodName
- The name of the Windchill script language method
that has failed.e
- The exception that was generated by the method.printStackTrace
- A boolean that specifies if a stack trace should be
printed to the log.parameters
- The arguments that were passed to the Windchill
script call.locale
- The Locale to send to the invoked methods for
localization.os
- The output stream.private static boolean ignoreException(Throwable t)
t
- Description of the Parameter
public void handleExceptionTP(String methodName, Exception e, boolean printStackTrace, Properties parameters, Locale locale, OutputStream os)
Use case: An exception is thrown back to a method that corresponds to a "Windchill script language" call (a call that actually appears in an HTML template file, for example: objectPropertyValue or objectActionLink), and processing of the page should continue even though this call has failed.
This method will handle the exception by embedding a message in the generated web page that states:
"ERROR: During the dynamic generation of this web page, while processing
the Windchill script language method "methodName".
The error message is: "e.getLocalizedMessage()"
A stack trace has been printed to the log.
Generation of this web page will now continue."
If printStackTrace is false, then the line about the "stack trace" will not be generated in the web page.
Supported API: false
methodName
- The name of the Windchill script language method
that has failed.e
- The exception that was generated by the method.printStackTrace
- A boolean that specifies if a stack trace should be
printed to the log.parameters
- The arguments that were passed to the Windchill
script call.locale
- The Locale to send to the invoked methods for
localization.os
- The output stream.public void handleExceptionTP(String title, String text, Exception e, boolean printStackTrace, HTTPResponse resp, Locale locale) throws WTException
Use case: Many template processors have a handleRequest() method that instantiates an HTMLTemplate, and then calls the process() method on that instance. If the process() method throws and exception, then the processing by this template processor has stopped. After catching the exception thrown by the process() method, call this flavor of handleExceptionTP().
This method will handle the exception by appending a message to the generated web page that states:
ERROR: During the dynamic generation of this web page.
If printStackTrace is false, then the line about the "stack trace" will not
be generated in the web page.
The error message is: "e.getLocalizedMessage()"
A stack trace has been printed to the log.
Generation of this web page has halted.
Supported API: false
title
- A title for the web page. If the page already has a
title, this one will be ignored.text
- An informative message to be presented to the user.e
- The exception that was generated.printStackTrace
- A boolean that specifies if a stack trace should be
printed to the log.resp
- The HTTPResponse object, from which the output
stream is retrieved.locale
- The Locale for which to localize the messages.
WTException
- Description of the Exception
public void getQuery(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic void setColumnProperties(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- The new columnProperties valuelocale
- The new columnProperties valueos
- The new columnProperties value
WTException
- Description of the Exceptionpublic void printTable(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String getPersonalCabinetURL(WTPrincipal principal, String label, String params, Locale locale)
principal
- the Principal whose personal cabinet will be the target of
the link. If null, the current principal is usedlabel
- the String label to be used as the target of the linkparams
- Description of the Parameterlocale
- Description of the Parameter
public static String getWorklistURL(String label, String href_properties, Locale locale)
label
- the label to use as the link texthref_properties
- any additional HTML code to be placed in the A HREF
tagslocale
- Description of the Parameter
public static String getHomepageURL(String label, String href_properties, Locale locale)
label
- the label to use as the link texthref_properties
- any additional HTML code to be placed in the A HREF
tagslocale
- Description of the Parameter
public static String buildFormProcessorURL(String label, String parameters, String method, Properties properties)
label
- the label to use as the text of the linkparameters
- any additional HTML to include in the HREF tagmethod
- the method to invoke in FormProcessorproperties
- Properties passed on the URL of the FormProcessor
public static String buildFormProcessorURL(String class_string, String label, String parameters, String method, Properties properties)
class_string
- Description of the Parameterlabel
- Description of the Parameterparameters
- Description of the Parametermethod
- Description of the Parameterproperties
- Description of the Parameter
public static String getSearchCriteriaURL(String label, String search_type, Properties parameters, String href_props, Locale locale)
label
- Description of the Parametersearch_type
- Description of the Parameterparameters
- Description of the Parameterhref_props
- Description of the Parameterlocale
- Description of the Parameter
public void getSearchCriteriaURL(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic void createGlobalNavigationBar(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic static String getCheckedOutFolderURL(String label, String parameters, Locale locale)
label
- Description of the Parameterparameters
- Description of the Parameterlocale
- Description of the Parameter
public static String getFederationSearchURL(String label, String search_type, Properties parameters, String href_props, Locale locale)
label
- Description of the Parametersearch_type
- Description of the Parameterparameters
- Description of the Parameterhref_props
- Description of the Parameterlocale
- Description of the Parameter
public void createFederationNavigationBar(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic static String getAllCabinetsURL(String label, String parameters, Locale locale)
label
- Description of the Parameterparameters
- Description of the Parameterlocale
- Description of the Parameter
public static String getStringFromResourceBundle(String resource_key, String resource_class, Object[] params, Locale locale) throws WTException
resource_key
- Description of the Parameterresource_class
- Description of the Parameterparams
- Description of the Parameterlocale
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String getStringFromResourceBundle(String resource_key, String resource_class, Locale locale) throws WTException
resource_key
- Description of the Parameterresource_class
- Description of the Parameterlocale
- Description of the Parameter
WTException
- Description of the Exceptionpublic void getLocalizedMessage(Properties parameters, Locale locale, OutputStream os)
Here is an example call from within and HTML template file: getLocalizedMessage resourceKey=NULL_CONTEXT_OBJECT resourceClass=wt.enterprise.enterpriseResource
Optional parameter are:
unicodeEscaped=true
- Will unicode escape any non-Ascii
characters in the form of \\uXXXXbyteEncoded=true
- Will encode the unicode bytes into Ascii
using UTF-8 encoding. newLine=false
- Will not append a line
termination to the output. paramX=value
- Includes the value
of the parameter in an appropriate localized message. X must be a
integer, distinct with respect to other 'param' values included in the
same call. The referenced resource bundle key must be appropriately
parameterized.
parameters
- The arguments that were passed to the Windchill script
call.locale
- The Locale to send to the invoked methods for
localization.os
- The output stream.public static Vector getURLActions(Object obj, Locale locale) throws UnableToLoadServiceProperties
Vector
of URLActionDelegates
available for that class of object. If no delegates for the particular
class of the given object have been found, an empty vector is returned.
obj
- the Object
for which
a vector of URLActionDelegates is returnedlocale
- Description of the Parameter
UnableToLoadServiceProperties
- if the service.properties used to
instantiate URLActionDelegates cannot be loaded.public static Vector getURLActions(Object obj, Locale locale, boolean minimal) throws UnableToLoadServiceProperties
obj
- Description of the Parameterlocale
- Description of the Parameterminimal
- Description of the Parameter
UnableToLoadServiceProperties
- Description of the Exceptionpublic static Vector getURLActions(Class obj_class, Locale locale) throws UnableToLoadServiceProperties
Vector
of URLActionDelegates
available for that class. If no delegates for the particular class have
been found, an empty vector is returned.
obj_class
- the Class
for which a
vector of URLActionDelegates is returnedlocale
- Description of the Parameter
UnableToLoadServiceProperties
- if the service.properties used to
instantiate URLActionDelegates cannot be loaded.public static Vector getURLActions(Class obj_class, Locale locale, boolean minimal_list) throws UnableToLoadServiceProperties
obj_class
- Description of the Parameterlocale
- Description of the Parameterminimal_list
- Description of the Parameter
UnableToLoadServiceProperties
- Description of the Exceptionpublic String getURLActionsString(Object obj, Locale locale, String link_params) throws UnableToLoadServiceProperties
obj
- the Object to which the URLs to
actions applylocale
- the locale used in determining
what text to displaylink_params
- optional HTML code to be used in
the A HREF tags
UnableToLoadServiceProperties
- Description of the Exceptionpublic String getURLActionsString(Object obj, Vector actionDelegates, Locale locale, String link_params) throws UnableToLoadServiceProperties
obj
- Description of the ParameteractionDelegates
- Description of the Parameterlocale
- Description of the Parameterlink_params
- Description of the Parameter
UnableToLoadServiceProperties
- Description of the Exceptionpublic String translateToHtml(String value)
value
- The value to be translated to html viewable form
public void printQueryTable(Properties parameters, Locale locale, OutputStream os) throws WTException
<SCRIPT LANGUAGE=Windchill>
<!--
printQueryTable QueryName=UsedByQuery colspan=4
-->
</SCRIPT>
Here is an example of how to use a call to "printQueryTable"
in a WindChill Script in an HTML template that does print a title for the
table
<SCRIPT LANGUAGE=Windchill>
<!--
printQueryTable QueryName=UsedByQuery colspan=4 tableType= resourceBundle=
-->
</SCRIPT>
Both of these calls assume that the call to printQueryTable
is going to fill an entire row in the HTML table that it is embedded. The
colspan argument is used to specify the width of the parent table.
parameters
- The parameters must to pass in 1. the parameter
QueryName and 2.the parameter tableTypelocale
- the locale used in determining what text to displayos
- The output stream for the generated table
WTException
- Description of the Exceptionpublic void printTextArea(String label, String text, Properties parameters, Locale locale, OutputStream os)
label
- Used as the title to the textarea and is presented to the
left of the textareatext
- The actual text to be displayed in the textareaparameters
- Needs to pass in several parameters to format textarea's
outputlocale
- the locale used in determining what text to displayos
- The output stream for the generated tablepublic static String getResourceString(String resourceToken, Locale locale, String resourceBundle, String defaultText)
resourceToken
- the name of a constant whose value is a resource
bundle key, or a string that is the actual resource bundle keylocale
- the locale used in determining what text to displayresourceBundle
- the resourceBundle to use to find the desired,
localized stringdefaultText
- the default text to display
public static String getContextServiceName(String action_delegate)
action_delegate
- a String representation of the ActionDelegate class
whose CONTEXT_SERVICE_NAME is to be returned
public static boolean isEqual(WTObject object_a, WTObject object_b) throws WTException
object_a
- one object to be comparedobject_b
- one object to be compared
WTException
- Description of the Exceptionpublic void displayFolderTrail(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterprotected static Cabinet getPersonalCabinet(WTPrincipal principal) throws FolderNotFoundException, WTException
principal
- the WTPrincipal whose personal cabinet
is returned
FolderNotFoundException
- Description of the Exception
WTException
- Description of the Exceptionpublic static String getReferenceString(WTObject obj) throws WTException
obj
- Description of the Parameter
WTException
- Description of the Exceptionpublic void getReferenceString(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exceptionpublic static SortedEnumeration sortQueryResult(QueryResult results, CollationKeyFactory key)
results
- the QueryResult to be sortedkey
- the CollationKeyFactory used for sorting
public String getHTMLHelpURL(String helpContext, Locale locale) throws WTException
helpContext
- The String to be used as the Context String in
properties file entrylocale
- The current Locale of the browser
WTException
- Description of the Exceptionpublic void getHTMLHelpURL(Properties parameters, Locale locale, OutputStream os) throws WTException
The correct Windchill script call is
getHTMLHelpURL HelpContext=<Context to locate Help Page>
The HelpContext parameter is optional. See comments below.
The help page is based on the context of the current HTML page and is found via an entry in a *.properties file. The correct entry in a properties file will look like
wt.services/rsc/default/wt.templateutil.processor.HelpHTMLTemplate/<Context Action>/<Context Class>/0=<Path to HTML Help Page><Anchor>
Where
wt.helpfiles.federation.help.IEServices
wt.helpfiles.federation.help.IEServices#VIEWIESERVICE
parameters
- The name/value pairs passed in from the Windchill
Script Calllocale
- The current Locale of the browseros
- The OutputStream to the Browser
WTException
- Description of the Exceptionpublic void addHTMLHelpLink(Properties parameters, Locale locale, OutputStream os) throws WTException
The correct Windchill script call is
addHTMLHelpLink <name/value pairs indicating customized options>
Please the javadoc for the method, getHTMLHelpLink, for listing and description of the name/value pairs that specify the options for presenting an HTML help link.
Please the javadoc for the method, getHTMLHelpLink, for description of how
register an HTML Help page for the page that the help link is to appear.
Supported API: true
parameters
- locale
- os
-
WTException
public String getHTMLHelpLink(Properties parameters, Locale locale, OutputStream os) throws WTException
wt.services/rsc/default/wt.templateutil.processor.HelpHTMLTemplate/<Context Action>/<Context Class>/0=<Path to HTML Help Page><Anchor>
Where
wt.helpfiles.federation.help.IEServices
wt.helpfiles.federation.help.IEServices#VIEWIESERVICE
The current list of options for configuring the Help link, via name/value pairs in the parameters argument is
parameters
- locale
- os
-
WTException
public void getResourceString(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exceptionpublic void setHelpContext(String a_HelpContext)
a_HelpContext
- The new helpContext valuepublic String getHelpContext()
public void setContextClass(String a_contextClass)
a_contextClass
- The new contextClass valuepublic String getContextClass()
public void readContext(HTTPRequest request) throws WTException
readContext
in interface ContextTranslator
request
- Description of the Parameter
WTException
- Description of the Exceptionpublic void writeHiddenContext(Properties parameters, Locale locale, OutputStream os)
writeHiddenContext
in interface ContextTranslator
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic String writeQueryStringContext()
writeQueryStringContext
in interface ContextTranslator
public String hiddenContextString(String name, String value)
name
- Description of the Parametervalue
- Description of the Parameter
public void addHiddenProperty(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- The feature to be added to the HiddenProperty
attributelocale
- The feature to be added to the HiddenProperty
attributeos
- The feature to be added to the HiddenProperty
attribute
WTException
- Description of the Exceptionpublic void displayAttributesTable(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterprivate void displayMeasurementSystemsDropDown(String currentMeasurementSystem, String displayFormTag, String tableAlignment, String tableWidth, PrintWriter out, Locale locale) throws RemoteException, WTException
currentMeasurementSystem
- Description of the ParameterdisplayFormTag
- Description of the ParametertableAlignment
- Description of the ParametertableWidth
- Description of the Parameterout
- Description of the Parameterlocale
- Description of the Parameter
RemoteException
- Description of the Exception
WTException
- Description of the Exceptionpublic void displayStyleSheetAttributesTable(Properties parameters, Locale locale, OutputStream os, boolean USE_STYLE_SHEET)
parameters
- the properties passed to the processing methodlocale
- the locale passed to the processing methodos
- the output stream passed to the processing methodUSE_STYLE_SHEET
- informs the processing method to use solutions.css
style classespublic void getURLProcessorLink(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exceptionpublic String getURLProcessorLink(String methodName, Properties parameters) throws WTException
methodName
- Description of the Parameterparameters
- Description of the Parameter
WTException
- Description of the Exceptionpublic String getURLProcessorLink(String methodName, Properties parameters, boolean fullyQualified) throws WTException
methodName
- Description of the Parameterparameters
- Description of the ParameterfullyQualified
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String getURLProcessorLinkWithLabel(String label, String parameters, String method, Properties properties)
label
- Description of the Parameterparameters
- Description of the Parametermethod
- Description of the Parameterproperties
- Description of the Parameter
public void addToResponseExceptions(Exception newException)
The stackTraces for the list of exceptions can be presented using the following Windchill Script call
addToResponseExceptions
in interface ContextHolder
newException
- public void addToResponseMessages(LocalizableMessage newMessage)
The messages will be presented in the Locale of the HTML template
Supported API: true
addToResponseMessages
in interface ContextHolder
newMessage
- public void addToResponseHeaders(LocalizableMessage newHeader)
The goal of this option is to provide a way to present any information that occured preparing the processing of the page at the top of the page.
The LocalizableMessages will be presented in the locale of the HTML page
Supported API: true
addToResponseHeaders
in interface ContextHolder
newHeader
- public void addToResponseFooters(LocalizableMessage newFooter)
addToResponseFooters
in interface ContextHolder
newFooter
- The feature to be added to the ToResponseFooters attributepublic void processSubTemplate(Properties parameters, Locale locale, OutputStream os)
The correct Windchill script call is
This entry will look for the following in entry in a properties file
The action specified in the Windchill script call and the current context
object are used to locate the correct TemplateProcessor and the HTML
template via entries in the properties files, as usual.
After getting the TemplateProcessor, the current state is passed off the
the sub-TemplateProcessor via the HTTPState object. The action on the
HTTPState object is temporalily set to the action in the Windchill script
call. The contextAction is restored to its previous value after the
processing of the sub-HTML template is finished.
The Locale and OutputStream are passed off to the sub-TemplateProcessor so
it knows the current Locale and has access to output stream to the browser.
The name/values pairs passed in via the Windchill script are made available
to the Sub-TemplateProcessor via contextProperties object of the
TemplateProcessor.
Supported API: true
parameters
- locale
- os
-
public void showResponseExceptions(Properties parameters, Locale locale, OutputStream os)
The correct Windchill script call is
showResponseExceptions
The goal of this option is to provide a way to present a list of non-fatal
stackTraces that occured in the processing of an HTML template or a HTTP
Get/Post request.
Supported API: true
parameters
- locale
- os
- public void showResponseHeaders(Properties parameters, Locale locale, OutputStream os)
The correct Windchill script call is
showResponseHeaders
The goal of this option is to provide a way to present any information that occured during the processing of the page at the top of the page.
This ideal to present information in the response page that was occurred in the processing of a request in a FormTaskDelegate.
parameters
- locale
- os
- public void showResponseFooters(Properties parameters, Locale locale, OutputStream os)
The correct Windchill script call is
showResponseFooters
The goal of this option is to provide a way to present any information that occured during the processing of the page at the bottom of the page.
This ideal to present information in the bottom of the HTML page regarding any occurances while processing the HTML template for the page.
parameters
- locale
- os
- public void showResponseMessages(Vector messages, Properties parameters, Locale locale, OutputStream os)
messages
- parameters
- locale
- os
- public void showResponseMessage(String message, Properties parameters, Locale locale, OutputStream os)
This method is used to format the output for the showResponseMessages method. The showResponseMessages method in turn is used to print out the html for the show*Messages method calls, such as showResponseHeaders. A subclass of BasicTemplateProcessor can override the this method to provide its own formatting for the presentation of the LocalizedMessages.
message
- parameters
- locale
- os
- public void setHTMLTableService(TemplateProcessorTableService newTableService)
tableService action=...
newTableService
- public TemplateProcessorTableService getHTMLTableService()
tableService action=...
If there is not an instance of TemplateProcessorTableService available, lazy initialization is done to present one.
The current state is passed to the TemplateProcessorTableService instance
via the HTTPState object.
Supported API: true
public void tableService(Properties parameters, Locale locale, OutputStream os) throws WTException
The correct Windchill script call is
tableService action=<A valid action for a HTMLTableServiceEventListener> <More name/value pairs>
The HTMLTableServiceEventListeners are registered in wt.properties in the entry
wt.templateutil.table.HTMLTableServiceEventListeners=...
Please see the Javadoc for the registered HTMLTableServiceEventListeners as
to how to use the individual method calls and what parameters they take
Supported API: true
parameters
- locale
- os
-
WTException
- Description of the Exceptionpublic void useProcessorService(Properties parameters, Locale locale, OutputStream os)
The correct Windchill script call is
useProcessorService service=<Fully qualified classpath> method=<Method name> <More name/value pairs>
The parameters have the following meaning
public void <Method name>( Properties parameters, Locale locale, OutputStream os )
Consequently, any changes to the context, for example calls to setContextObj or setContextAction, will be reflected in the templateprocessor that is calling the method.
parameters
- locale
- os
- public HTMLComponentFactory getHTMLComponentFactory()
public WTAttribute getWTAttribute()
public void setPageContext(PageContext pageContext)
pageContext
- The new pageContext valuepublic PageContext getPageContext()
public void setJavaScriptManager(JavaScriptManager javaScriptManager)
javaScriptManager
- The new javaScriptManager valuepublic void initJavaScriptManager(Properties props, Locale locale, OutputStream os)
props
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic JavaScriptManager getJavaScriptManager()
public void getLocalizedDateFormatMessage(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic static String splitStringIntoTokens(String string_to_split)
string_to_split
- the string to split
public static void getCharsetEncoding(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic static void outputPropertyFromPropertyFile(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic static String getPropertyFromPropertyFile(Properties parameters) throws ClassNotFoundException, IllegalAccessException, NoSuchMethodException, InvocationTargetException
parameters
- the Properties object containing the
Class name, method name and property to return
ClassNotFoundException
- Description of the Exception
IllegalAccessException
- Description of the Exception
NoSuchMethodException
- Description of the Exception
InvocationTargetException
- Description of the Exceptionpublic static void outputLink(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic static boolean visualizationIsEnabled()
public void displayVisualData(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic static String getWCColor(String styleClass)
styleClass
- Refers to the name of a wt.html.color property in
wt.properties (for example, "bg-body")
public void getWCColor(Properties parameters, Locale locale, OutputStream os) throws WTException
The script call must pass the required parameter "styleClass" which refers to the name of a wt.html.color property in wt.properties.
The optional parameter "quotes" determines what kind of quotes will be included in the output.
The output written to the html page will be a color number string.
If quotes=none, the output will not have quotes: #NNNNNN
If quotes=single, the output will be in single quotes: '#NNNNNN'
If quotes=double or if there is no quotes parameter, the output will be in
double quotes: "#NNNNNN"
Example usage in an html template:
Supported API: true
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exception
public void getWCColorDec(Properties parameters, Locale locale, OutputStream os) throws WTException
The script call must pass the required parameter "styleClass" which refers to the name of a wt.html.color property in wt.properties.
The output written to the html page will be an unquoted string in the form: nnnn...
Example usage in an html template:
getWCColor styleClass=bg-body >
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String getWCColorDec(String styleClass) throws WTException
styleClass
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String getWCFontFamily()
public void getWCFontFamily(Properties parameters, Locale locale, OutputStream os)
The output written to the HTML page will be a string in the form: "
The optional parameter "quotes" determines what kind of quotes will be
included in the output.
If quotes=none, the output will not have quotes:
Supported API: true
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
public static String getURLFromDelegate(URLActionDelegate delegate, Object obj, HTTPState state) throws WTException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
delegate
- Description of the Parameterobj
- Description of the Parameterstate
- Description of the Parameter
WTException
- Description of the Exception
ClassNotFoundException
- Description of the Exception
NoSuchMethodException
- Description of the Exception
IllegalAccessException
- Description of the Exception
InvocationTargetException
- Description of the Exceptionpublic static boolean AccessOK(String action, Object obj, HTTPRequest request) throws WTException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
action
- Description of the Parameterobj
- Description of the Parameterrequest
- Description of the Parameter
WTException
- Description of the Exception
ClassNotFoundException
- Description of the Exception
NoSuchMethodException
- Description of the Exception
IllegalAccessException
- Description of the Exception
InvocationTargetException
- Description of the Exceptionprotected static String getPreferenceValue(String node, String key)
node
- Description of the Parameterkey
- Description of the Parameter
public void displayAttributeName(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic void displayAttributeValue(Properties parameters, Locale locale, OutputStream os)
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic static boolean PDMLinkIsInstalled()
public void getObjectDnDIcon(Properties parameters, Locale locale, OutputStream os)
parameters
- the Properties passed in when this method is invoked;
this parameter is not used by this methodlocale
- the Locale in which the image will be displayedos
- the OutputStream to write the image to.public void bcwti(Properties parameters, Locale locale, OutputStream os)
The following can be included in a source subtemplate to satisfy copyright requirements but will not be sent to the browser:
<script language=windchill>
bcwti Copyright(c) 2002 Parametric Technology Corporation, all rights reserved. ecwti
</script>
This reduces the amount of data sent over the network and improves performance.
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterpublic void comment(Properties parameters, Locale locale, OutputStream os)
Comments on templates should be formatted as follows:
<SCRIPT language=Windchill>
comment text="<my comment text>"
</SCRIPT>
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameterprivate boolean isWildfireEnabled() throws WTException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
WTException
- Description of the Exception
ClassNotFoundException
- Description of the Exception
NoSuchMethodException
- Description of the Exception
IllegalAccessException
- Description of the Exception
InvocationTargetException
- Description of the Exceptionprivate static boolean isWildfireIconDelegate(IconDelegate a_IconDelegate)
a_IconDelegate
- Description of the Parameter
private static IconSelector getWildfireIconSelector(IconDelegate a_IconDelegate, HTTPState a_State)
a_IconDelegate
- Description of the Parametera_State
- Description of the Parameter
public void getId(Properties parameters, Locale locale, OutputStream os)
If "idprefix" is not configured then the id format is
NOTE: "id=" is not generated. The correct way to call this method from an
html template file is:
id=""
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
public static String displayPendingChangeIndicator(Object object, String gifImage, boolean showURL)
object
- Description of the ParametergifImage
- Description of the ParametershowURL
- Description of the Parameter
public void getTrailId(Properties parameters, Locale locale, OutputStream os)
<product prefix>:<feature name>:<element type>:<unique
id>
where:
Any of the above four components may be missing from an id, although ids with all four are preferred wherever possible. Each of the four elements in the ID is input as a parameter to this script call. Any that are missing will be excluded from the ID. If all are missing, an empty string will be returned.
We recommend that the total number of characters in all four components not exceed 65 characters (one trail file line) for trail file readability.
NOTE: The trail id components should include only letter characters [A..Z,a..z] and digit characters [0..9].
Sample ids:
PDML:MoreSearchOptions:TextLink:782241247
PDML:Tools:DropDown:98735
Tools:DropDown
Supported API: false
parameters
- Name/value pairs passed to the Windchill script call. The
following parameters are recognized:
locale
- The Locale to send to the invoked methods for
localization.os
- The output stream.public void getTrlIdAttribute(Properties parameters, Locale locale, OutputStream os)
trlId=<product prefix>:<feature name>:<element type>:<unique
id>
where:
Any of the above four components may be missing from a trlId, although trlIds with all four are preferred wherever possible. Each of the four elements in the trlId is input as a parameter to this script call. Any that are missing will be excluded from the trlId. If all are missing, an empty string will be returned.
We recommend that the total number of characters in all four components not exceed 65 characters (one trail file line) for trail file readability.
NOTE: The trail id components should include only letter characters [A..Z,a..z] and digit characters [0..9].
Sample trlIds:
trlId=PDML:MoreSearchOptions:TextLink:782241247
trlId=PDML:Tools:DropDown:98735
trlId=Tools:DropDown
Supported API: false
parameters
- Name/value pairs passed to the Windchill script call. The
following parameters are recognized:
locale
- The Locale to send to the invoked methods for
localization.os
- The output stream.protected static boolean isDndMicroAppletEnabled()
public void displayOrganizationIdentifier(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exceptionpublic void getTemplateDisplayGeneral(Properties properties, Locale locale, OutputStream os) throws WTException
locale
- os
- properties
- Description of the Parameter
WTException
- Description of the Exceptionpublic WTContainerRef getWTContainerRef(Properties parameters, Locale locale) throws WTException
parameters
- Description of the Parameterlocale
- Description of the Parameter
WTException
- Description of the Exceptionpublic WTContainer getWTContainerByName(String containerName) throws WTException
containerName
- Description of the Parameter
WTException
- Description of the Exceptionprivate WTContainer getContainerByOid(String containerOid)
containerOid
- Description of the Parameter
public void getEnabledVersion(Properties properties, Locale locale, OutputStream os) throws WTException
locale
- os
- properties
- Description of the Parameter
WTException
- Description of the Exceptionpublic static String[][] getGlyphsArray()
public static String getGenericInstanceIconImgTag(Object obj) throws WTException
WTException
private static String getFamilyGlyph(String glyphLocation) throws WTException
WTException
public static boolean displayFolderObject(WTContainer container, WTObject obj) throws WTException
WTException
public void displayGoToLatestLink(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- Description of the Parameterlocale
- Description of the Parameteros
- Description of the Parameter
WTException
- Description of the Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |