|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.workflow.work.NotificationRobotProcessor
Field Summary | |
private WfActivity |
activity
|
private String |
actRefStr
|
private String |
body
|
private static String |
CLASSNAME
|
protected static String |
CODEBASE
|
private static ResourceBundle |
dateFormatRB
|
private static String[] |
dateFormats
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
INSTRUCTIONS
|
private static String |
PRIMARY_BUS_OBJ
|
private WfProcess |
process
|
private static ResourceBundle |
rb
|
private static String |
RESOURCE
Resources for localizing message text |
protected static String |
TABLE_ATTRIBUTES
HTML formatting styles |
protected static String |
TABLE_DATA_ATTRIBUTES
|
protected static String |
TABLE_DATA_FONT
|
protected static String |
TABLE_HEAD_ATTRIBUTES
|
protected static String |
TABLE_HEAD_FONT
|
private static boolean |
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 | |
NotificationRobotProcessor()
A no argument constructor with no side effects. |
|
NotificationRobotProcessor(Object context)
Constructs a NotificationRobotProcessor. |
|
NotificationRobotProcessor(Object context,
String msgBody)
Constructs a NotificationRobotProcessor. |
Method Summary | |
void |
activityDescription(Properties parameters,
Locale locale,
OutputStream os)
Print the Activity description |
void |
activityDescriptionPlain(Properties parameters,
Locale locale,
OutputStream os)
Print the Activity description with no HTML editing. |
void |
activityName(Properties parameters,
Locale locale,
OutputStream os)
Print the name of the Activity |
WfActivity |
getActivity()
Returns the workflow activity context |
Object |
getContextObj()
Returns the processor's object context |
WfProcess |
getProcess()
Returns the workflow activity process. |
void |
getProcessManagerURL(Properties properties,
Locale locale,
OutputStream os)
Print the URL of the program manager. |
void |
getProcessManagerURLPlain(Properties properties,
Locale locale,
OutputStream os)
Print the URL of the program manager, stripped of HTML formatting |
HTMLTemplate |
getTemplate(Vector preferences)
|
void |
handleRequest(HTTPRequest req,
HTTPResponse resp)
This method handles HTTP GET requests to produce an HTML page which enables the user to initiate a workflow process based on the previously selected workflow template The format of the HTML output is determined by the InitiateWorkFlow template. |
protected String |
hideBlanks(String value)
hideBlanks replaces null values or empty strings with the HTML code for a non-breakable space. |
void |
messageText(Properties parameters,
Locale locale,
OutputStream os)
Print the Message body |
void |
messageTextPlain(Properties parameters,
Locale locale,
OutputStream os)
Print the Message body without doing html formatting. |
void |
primaryBusinessObjectLink(Properties parameters,
Locale locale,
OutputStream os)
Create a link to go to a page to update the content of the workflow process |
void |
primaryBusinessObjectLinkPlain(Properties parameters,
Locale locale,
OutputStream os)
Create a link to go to a page to update the content of the workflow process |
void |
processDescription(Properties parameters,
Locale locale,
OutputStream os)
Print the Proces description |
void |
processDescriptionPlain(Properties parameters,
Locale locale,
OutputStream os)
Print the Proces description without any HTML editing. |
void |
processName(Properties parameters,
Locale locale,
OutputStream os)
Print the name of the Process |
void |
projectLinkAttributes(Properties properties,
Locale locale,
OutputStream os)
If this is a notification from a ProjectLink object, print the ProjectLink attributesInserts event message in notification body. |
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(NotificationRobotProcessor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setActivity(WfActivity activity)
Set the workflow activity context object |
void |
setBody(String body)
Set the body of the message to be delivered |
private String |
stripHtmlFormat(String urlRef)
Strip HTML format from string. |
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 |
public static final long EXTERNALIZATION_VERSION_UID
private static final String CLASSNAME
private String actRefStr
private WfActivity activity
private WfProcess process
private String body
private static boolean VERBOSE
protected static String CODEBASE
private static final String INSTRUCTIONS
private static final String PRIMARY_BUS_OBJ
protected static final String TABLE_ATTRIBUTES
protected static final String TABLE_HEAD_ATTRIBUTES
protected static final String TABLE_HEAD_FONT
protected static final String TABLE_DATA_ATTRIBUTES
protected static final String TABLE_DATA_FONT
private static final String RESOURCE
private static final ResourceBundle rb
private static final ResourceBundle dateFormatRB
private static String[] dateFormats
Constructor Detail |
public NotificationRobotProcessor()
public NotificationRobotProcessor(Object context)
context
- The contextual object of the NotificationRobotProcessor.public NotificationRobotProcessor(Object context, String msgBody)
context
- The contextual object of the NotificationRobotProcessor.Method Detail |
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BasicTemplateProcessor
input
-
IOException
ClassNotFoundException
protected boolean readVersion(NotificationRobotProcessor 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 writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BasicTemplateProcessor
output
-
IOException
public HTMLTemplate getTemplate(Vector preferences) throws WTException
WTException
public void handleRequest(HTTPRequest req, HTTPResponse resp) throws WTException
handleRequest
in interface TemplateProcessor
req
- HTTPRequestresp
- HTTPResponse
WTException
public void processName(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
public void activityName(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
public void activityDescription(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
public void activityDescriptionPlain(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
public void processDescription(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
public void processDescriptionPlain(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
public void messageText(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
public void messageTextPlain(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
public void primaryBusinessObjectLink(Properties parameters, Locale locale, OutputStream os)
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 primaryBusinessObjectLinkPlain(Properties parameters, Locale locale, OutputStream os)
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 Object getContextObj()
getContextObj
in interface ContextHolder
getContextObj
in class BasicTemplateProcessor
public WfActivity getActivity()
public WfProcess getProcess()
public void setActivity(WfActivity activity)
activity
- The workflow activity that spawned this request.public void setBody(String body)
body
- The message bodypublic void getProcessManagerURL(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void getProcessManagerURLPlain(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- public void projectLinkAttributes(Properties properties, Locale locale, OutputStream os)
properties
- locale
- os
- private String stripHtmlFormat(String urlRef)
urlRef
- - URL string with HTML formattingprotected String hideBlanks(String value)
value
- The value to be displayed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |