|
|||||||||||
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
com.ptc.windchill.cadx.console.ConsoleTemplateProcessor
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static char[] |
SPECIAL_CHARS
|
private static String[] |
SPECIAL_CHARS_REPLACE
|
private static String |
STATUS_ACTION
|
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 | |
ConsoleTemplateProcessor()
|
Method Summary | |
void |
addClientJSFile(Properties parameters,
Locale locale,
OutputStream os)
Will add javascript code to include client console javascript file if working in Wildfire mode. |
void |
addClientMessageJS(Properties parameters,
Locale locale,
OutputStream os)
Adds javascript code to call client console javascript call for including client side messages / actions if working in Wildfire mode. |
void |
addJSMessages(Properties parameters,
Locale locale,
OutputStream os)
Add Javascript code for header and server side console messages. |
void |
addServerLocalizedStrings(Properties parameters,
Locale locale,
OutputStream os)
Supported API: false |
private String |
getConsoleLink()
|
void |
getConsoleLocalizedStrings(Properties parameters,
Locale locale,
OutputStream os)
|
void |
getDateFormatJS(Properties parameters,
Locale locale,
OutputStream os)
|
Locale |
getLocale()
|
private String |
getQueueActionStatus(String actionStatusCode)
|
void |
getStatusRow(Properties parameters,
Locale locale,
OutputStream os)
Outputs the current status row message to OutputStream os. |
void |
getWorkspaceNameJSVariable(Properties parameters,
Locale locale,
OutputStream os)
|
private String |
processSpecialChars(String value,
boolean replaceQuotes)
|
void |
processStatusTemplate(Properties parameters,
Locale locale,
OutputStream os)
Process the status template if status message exist else do nothing. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(ConsoleTemplateProcessor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private String |
setConsoleLink(String status)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
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
private static final String STATUS_ACTION
private static final char[] SPECIAL_CHARS
private static final String[] SPECIAL_CHARS_REPLACE
Constructor Detail |
public ConsoleTemplateProcessor()
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(ConsoleTemplateProcessor 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 getStatusRow(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- locale
- os
-
WTException
public void processStatusTemplate(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- locale
- os
-
WTException
public void addJSMessages(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- locale
- os
-
WTException
public void addClientJSFile(Properties parameters, Locale locale, OutputStream os) throws WTException
parameters
- locale
- os
-
WTException
public void addClientMessageJS(Properties parameters, Locale locale, OutputStream os)
parameters
- locale
- os
- public void addServerLocalizedStrings(Properties parameters, Locale locale, OutputStream os)
parameters
- locale
- os
- public void getConsoleLocalizedStrings(Properties parameters, Locale locale, OutputStream os)
private String processSpecialChars(String value, boolean replaceQuotes)
public void getDateFormatJS(Properties parameters, Locale locale, OutputStream os)
public void getWorkspaceNameJSVariable(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
private String getQueueActionStatus(String actionStatusCode) throws WTException
WTException
private String setConsoleLink(String status) throws WTException
WTException
private String getConsoleLink() throws WTException
WTException
public Locale getLocale() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |