|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.templateutil.processor.DefaultTemplateProcessor
wt.templateutil.processor.GenerateFormProcessor
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.
Supported API: true
Extendable: true
Field Summary | |
private static String |
ATTRIBUTE
Deprecated. |
private static String |
CHECKSUM
Deprecated. |
private static String |
CLASSNAME
Deprecated. |
private FormatContentHolder |
contentHolder
Deprecated. |
static String |
DEFAULT_LIFECYCLE
Deprecated. |
private static String |
DEFAULTPATH
Deprecated. |
private static String |
DELIM
Deprecated. |
private static String |
DOWNLOADURL
Deprecated. |
static long |
EXTERNALIZATION_VERSION_UID
Deprecated. |
private static String |
FILENAME
Deprecated. |
private static String |
FORMAT
Deprecated. |
private static String |
LASTUPDATED
Deprecated. |
private static String |
OIDSTRING
Deprecated. |
protected static long |
OLD_FORMAT_VERSION_UID
Deprecated. |
static String |
ON_CHANGE_EVENT_NAME
Deprecated. |
private static String |
PRIMARY
Deprecated. |
private static String |
RESOURCE
Deprecated. |
(package private) static long |
serialVersionUID
Deprecated. |
private static String |
SIZE
Deprecated. |
private static String |
TARGETTYPE
Deprecated. |
static String |
TEAMTEMPLATE_INPUT_NAME
Deprecated. |
private static String |
UPLOADEDFROMPATH
Deprecated. |
private static String |
UPLOADURL
Deprecated. |
Fields inherited from class wt.templateutil.processor.DefaultTemplateProcessor |
ACTION, CLASS, CODEBASE, LINE_FEED_DELIMITER, MESSAGE_SEPARATOR, OID, VERBOSE |
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 | |
GenerateFormProcessor()
Deprecated. |
Method Summary | |
void |
addHiddenProperties(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
changedContextualValue(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
contextualValue(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
contextualValueEncoded(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
private String |
createHTMLTagParam(String nameAttribute,
Properties parameters)
Deprecated. From the specified parameters list, look for additional tag parameters. |
void |
currentFolderId(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
currentFolderPath(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
enumeratedTypeMenu(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
enumeratedTypeMenuForClass(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. This Windchill script call displays a dropdown menu for an object attribute of type EnumeratedType. |
void |
generateAction(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
generatePostURL(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
generateUpdatePostURL(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
getButtonText(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
FormatContentHolder |
getContentHolder()
Deprecated. |
String |
getContextualValue(String propertyName,
Properties scriptProps,
Locale locale)
Deprecated. |
void |
getDefaultPath(Properties params,
Locale locale,
OutputStream os)
Deprecated. Retrieves a default path for use by the file locator. |
void |
getDelim(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
void |
getDnDAppletTags(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
protected void |
getEnumeratedTypeMenu(Properties parameters,
Locale locale,
OutputStream os,
String contextEnumValue)
Deprecated. |
private String |
getFileSize(ApplicationData file)
Deprecated. Returns a String containing the size of the given file in Kilobytes. |
protected void |
getFormat(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
void |
getFormValueFromSession(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. This Windchill script call retrieves an input value for a wizard form from session context. |
String |
getFormValueFromSession(String formName,
String inputFieldName,
String defaultValue)
Deprecated. This method retrieves an input value for a wizard form from session context. |
void |
getFormValueFromSessionWithEnumeratedPropertyDefault(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. This Windchill script call displays a dropdown menu for an attribute of type EnumeratedType belonging to the current context object or context class. |
void |
getFormValueFromSessionWithPropertyDefault(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. This Windchill script call retrieves an input value for a wizard form from session context. |
protected void |
getLastUpdated(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
void |
getMessageURL(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
getObjectIdentity(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
private String |
getObjectIdentity(String resourceKey,
String resourceClass,
Locale locale)
Deprecated. |
void |
getPreferenceValue(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
protected void |
getPrimary(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
protected String |
getPrimary(String purpose)
Deprecated. |
void |
getPrimaryAttribute(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
String |
getPrimaryChecksum()
Deprecated. |
protected void |
getPrimaryChecksum(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
String |
getPrimaryDownloadURL()
Deprecated. |
void |
getPrimaryDownloadURL(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
String |
getPrimaryFileName()
Deprecated. |
protected void |
getPrimaryFileName(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
String |
getPrimaryOidString()
Deprecated. |
protected void |
getPrimaryOidString(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
String |
getPrimaryUploadedFromPath()
Deprecated. |
protected void |
getPrimaryUploadedFromPath(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
String |
getPrimaryUploadURL()
Deprecated. |
void |
getPrimaryUploadURL(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
getResponseExceptions(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
getResponseFooters(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
getResponseHeaders(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
getResponseMessages(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
protected void |
getSize(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
protected void |
getTargetType(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
void |
getURLTabLink(Properties params,
Locale locale,
OutputStream os)
Deprecated. |
WTContainerRef |
getWTContainerRef(Properties parameters,
Locale locale)
Deprecated. Get container value as contextual value. |
void |
handleRequest(HTTPRequest req,
HTTPResponse resp)
Deprecated. Does the processing of the HTML Template. |
void |
holderUploadTable(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
listLifeCycles(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
listTeamTemplates(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
protected Method |
obtainFromCovertProperty(PropertyDescriptor pd)
Deprecated. |
void |
parentFolderPath(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
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(GenerateFormProcessor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Deprecated. |
private float |
roundToTwoDecimals(float number)
Deprecated. Returns the given float rounded to two decimal places. |
void |
selectFolderMenu(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
void |
selectFolderMenuForContainers(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. This method is used to print the select box for the available folders and cabinets within a container. |
void |
setContentHolder(FormatContentHolder contentHolder)
Deprecated. |
void |
writeExternal(ObjectOutput output)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final String TEAMTEMPLATE_INPUT_NAME
public static String DEFAULT_LIFECYCLE
private static String DELIM
private static String PRIMARY
private static String ATTRIBUTE
private FormatContentHolder contentHolder
private static String LASTUPDATED
private static String FORMAT
private static String SIZE
private static String TARGETTYPE
private static String DEFAULTPATH
private static String DOWNLOADURL
private static String UPLOADURL
private static String UPLOADEDFROMPATH
private static String FILENAME
private static String CHECKSUM
private static String OIDSTRING
public static final String ON_CHANGE_EVENT_NAME
Constructor Detail |
public GenerateFormProcessor()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class DefaultTemplateProcessor
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class DefaultTemplateProcessor
input
-
IOException
ClassNotFoundException
protected boolean readVersion(GenerateFormProcessor 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 void handleRequest(HTTPRequest req, HTTPResponse resp) throws WTException
DefaultTemplateProcessor
handleRequest
in interface TemplateProcessor
handleRequest
in class DefaultTemplateProcessor
req
- resp
-
WTException
public void contextualValue(Properties parameters, Locale locale, OutputStream os) throws WTException, InvocationTargetException, IllegalAccessException, ClassNotFoundException, InstantiationException
WTException
InvocationTargetException
IllegalAccessException
ClassNotFoundException
InstantiationException
public void contextualValueEncoded(Properties parameters, Locale locale, OutputStream os) throws WTException, InvocationTargetException, IllegalAccessException, ClassNotFoundException, InstantiationException
WTException
InvocationTargetException
IllegalAccessException
ClassNotFoundException
InstantiationException
public void changedContextualValue(Properties parameters, Locale locale, OutputStream os) throws WTException, InvocationTargetException, IllegalAccessException, ClassNotFoundException, InstantiationException
WTException
InvocationTargetException
IllegalAccessException
ClassNotFoundException
InstantiationException
public void enumeratedTypeMenu(Properties parameters, Locale locale, OutputStream os) throws WTException, InvocationTargetException, IllegalAccessException, ClassNotFoundException, InstantiationException
parameters
- name/value pairs passed by the script call
locale
- locale to use for localizationos
- the output stream
WTException
InvocationTargetException
IllegalAccessException
ClassNotFoundException
InstantiationException
public void enumeratedTypeMenuForClass(Properties parameters, Locale locale, OutputStream os) throws WTException, Exception
parameters
- name/value pairs passed by the script call
locale
- locale to use for localizationos
- the output stream
WTException
Exception
public void listLifeCycles(Properties parameters, Locale locale, OutputStream os) throws WTException, InvocationTargetException, IllegalAccessException, ClassNotFoundException, InstantiationException
WTException
InvocationTargetException
IllegalAccessException
ClassNotFoundException
InstantiationException
public void listTeamTemplates(Properties parameters, Locale locale, OutputStream os) throws WTException, InvocationTargetException, IllegalAccessException, ClassNotFoundException, InstantiationException
WTException
InvocationTargetException
IllegalAccessException
ClassNotFoundException
InstantiationException
public void selectFolderMenu(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void selectFolderMenuForContainers(Properties parameters, Locale locale, OutputStream os) throws WTException
onlySharedCabinets=true
on the template processor call
will cause only Shared Cabinets to be displayed.
This method is used by the "FolderNavigateImproved.html" templates
WTException
public void parentFolderPath(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void currentFolderPath(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void currentFolderId(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void holderUploadTable(Properties parameters, Locale locale, OutputStream os) throws WTException, IOException
WTException
IOException
public void generateAction(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
protected Method obtainFromCovertProperty(PropertyDescriptor pd)
public void getButtonText(Properties parameters, Locale locale, OutputStream os) throws WTException, IOException
WTException
IOException
public void generatePostURL(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void addHiddenProperties(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void getResponseHeaders(Properties parameters, Locale locale, OutputStream os)
public void getResponseMessages(Properties parameters, Locale locale, OutputStream os)
public void getResponseFooters(Properties parameters, Locale locale, OutputStream os)
public void getResponseExceptions(Properties parameters, Locale locale, OutputStream os)
public String getContextualValue(String propertyName, Properties scriptProps, Locale locale) throws WTException
WTException
public void getMessageURL(Properties parameters, Locale locale, OutputStream os)
public void getObjectIdentity(Properties parameters, Locale locale, OutputStream os)
private String getObjectIdentity(String resourceKey, String resourceClass, Locale locale)
public void getURLTabLink(Properties params, Locale locale, OutputStream os) throws WTException
WTException
public void getDnDAppletTags(Properties parameters, Locale locale, OutputStream os)
public void getDelim(Properties params, Locale locale, OutputStream os)
public void getDefaultPath(Properties params, Locale locale, OutputStream os) throws WTException, PropertyVetoException
WTException
PropertyVetoException
public void getPrimaryAttribute(Properties params, Locale locale, OutputStream os) throws WTException
WTException
public void setContentHolder(FormatContentHolder contentHolder)
public FormatContentHolder getContentHolder()
protected void getPrimary(Properties params, Locale locale, OutputStream os) throws WTException, PropertyVetoException
WTException
PropertyVetoException
protected String getPrimary(String purpose) throws WTException, PropertyVetoException
WTException
PropertyVetoException
protected void getPrimaryChecksum(Properties params, Locale locale, OutputStream os) throws WTException, PropertyVetoException
WTException
PropertyVetoException
public String getPrimaryChecksum() throws WTException, PropertyVetoException
WTException
PropertyVetoException
protected void getPrimaryOidString(Properties params, Locale locale, OutputStream os) throws WTException, PropertyVetoException
WTException
PropertyVetoException
public String getPrimaryOidString() throws WTException, PropertyVetoException
WTException
PropertyVetoException
protected void getPrimaryFileName(Properties params, Locale locale, OutputStream os) throws WTException, PropertyVetoException
WTException
PropertyVetoException
public String getPrimaryFileName() throws WTException, PropertyVetoException
WTException
PropertyVetoException
protected void getPrimaryUploadedFromPath(Properties params, Locale locale, OutputStream os) throws WTException, PropertyVetoException
WTException
PropertyVetoException
public String getPrimaryUploadedFromPath() throws WTException, PropertyVetoException
WTException
PropertyVetoException
protected void getLastUpdated(Properties params, Locale locale, OutputStream os) throws WTException, PropertyVetoException
WTException
PropertyVetoException
protected void getFormat(Properties params, Locale locale, OutputStream os) throws WTException, PropertyVetoException
WTException
PropertyVetoException
protected void getSize(Properties params, Locale locale, OutputStream os) throws WTException, PropertyVetoException
WTException
PropertyVetoException
private String getFileSize(ApplicationData file)
BasicTemplateProcessor
private float roundToTwoDecimals(float number)
BasicTemplateProcessor
protected void getTargetType(Properties params, Locale locale, OutputStream os) throws WTException, PropertyVetoException
WTException
PropertyVetoException
public void getPrimaryUploadURL(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public String getPrimaryUploadURL() throws WTException
WTException
public void getPrimaryDownloadURL(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public String getPrimaryDownloadURL() throws WTException
WTException
public void getFormValueFromSession(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- name/value pairs passed by the script call
locale
- locale to use for localizationos
- the output stream
WTException
public String getFormValueFromSession(String formName, String inputFieldName, String defaultValue) throws WTException
formName
- the key used to identify the form in session. Required.defaultValue
- the name of a default value that should be returned if there is no value for the field in the session context. Optional.
WTException
public void getPreferenceValue(Properties params, Locale locale, OutputStream os) throws WTException, PropertyVetoException
WTException
PropertyVetoException
protected void getEnumeratedTypeMenu(Properties parameters, Locale locale, OutputStream os, String contextEnumValue) throws WTException, InvocationTargetException, IllegalAccessException, ClassNotFoundException, InstantiationException
WTException
InvocationTargetException
IllegalAccessException
ClassNotFoundException
InstantiationException
public void getFormValueFromSessionWithPropertyDefault(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- name/value pairs passed by the script call
locale
- locale to use for localizationos
- the output stream
WTException
public void getFormValueFromSessionWithEnumeratedPropertyDefault(Properties parameters, Locale locale, OutputStream os) throws WTException, InvocationTargetException, IllegalAccessException, ClassNotFoundException, InstantiationException
parameters
- name/value pairs passed by the script call
locale
- locale to use for localizationos
- the output stream
WTException
InvocationTargetException
IllegalAccessException
ClassNotFoundException
InstantiationException
public void generateUpdatePostURL(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public WTContainerRef getWTContainerRef(Properties parameters, Locale locale) throws WTException
getWTContainerRef
in class BasicTemplateProcessor
parameters
- Description of the Parameterlocale
- Description of the Parameter
WTException
- Description of the Exceptionprivate String createHTMLTagParam(String nameAttribute, Properties parameters)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |