|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.projmgmt.monitor.ProjectNotificationProcessor
The ProjectNotificationProcessor
class supports template
processing for project notitication. The notification mostly concerns
the notification of project events.
Supported API: false
Extendable: false
Field Summary | |
private static String |
ACTIVITY_CLASS_NAME
|
private static String |
CLASSNAME
|
private static String |
DELIVERABLE_CLASS_NAME
|
private ExecutionObject |
execObject
|
private ObjectIdentifier |
execObjectId
|
private static String |
EXECUTION_RESOURCE
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
MILESTONE_CLASS_NAME
|
private static String |
NOTIFY_RESOURCE
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
PLAN_CLASS_NAME
|
private static String |
PROXY_CLASS_NAME
|
private static String |
RESOURCE
|
private static String |
RESOURCE_RESOURCE
|
(package private) static long |
serialVersionUID
|
private static String |
SUBSCRIBE
|
private static String |
SUBSCRIPTION_ACTION
|
private static String |
SUMMARY_CLASS_NAME
|
private static String |
unSUBSCRIBE
|
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 | |
ProjectNotificationProcessor()
No arg constructor. |
Method Summary | |
void |
getDeadline(Properties params,
Locale locale,
OutputStream os)
Returns localized string containing time of the occurrence of the deadline event. |
ExecutionObject |
getExecObject()
Returns the execution object which is the target of this processor. |
ObjectIdentifier |
getExecObjectId()
Gets the value of the attribute: execObjectId; Identifier of the object that is the subject of the notification. |
void |
getExecObjectName(Properties params,
Locale locale,
OutputStream os)
Returns the execution object's name. |
void |
getExecObjectType(Properties params,
Locale locale,
OutputStream os)
Returns localized string describing type of execution object, whether a project, an activity, a milestone or a deliverable. |
private String |
getFormattedTimestamp(Timestamp timestamp,
Locale locale)
Utility method to remove any enclosing quotes from the given String. |
void |
getNewEstimatedFinish(Properties params,
Locale locale,
OutputStream os)
Returns localized string containing the name of the new estimated finish of a deliverable, project or activity. |
void |
getNewOwner(Properties params,
Locale locale,
OutputStream os)
Returns the name of the new owner. |
void |
getNewPercentComplete(Properties params,
Locale locale,
OutputStream os)
Returns localized string containing the name of the new completion percentage of a deliverable, project or activity. |
void |
getNewState(Properties params,
Locale locale,
OutputStream os)
Returns localized string containing the name of the new state of a state transition. |
void |
getNewStatus(Properties params,
Locale locale,
OutputStream os)
Returns localized string containing the name of the new execution status of a deliverable, project or activity. |
void |
getObjectName(Properties params,
Locale locale,
OutputStream os)
|
private ObjectIdentifier |
getOid(Object obj)
|
private String |
getType(ObjectIdentifier obj_id)
|
void |
handleRequest(HTTPRequest request,
HTTPResponse response)
Supported API: false |
void |
projectLinkAttributes(Properties params,
Locale locale,
OutputStream os)
Supported API: false |
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(ProjectNotificationProcessor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected String |
removeEnclosingQuotes(String value)
Utility method to remove any enclosing quotes from the given String. |
void |
setExecObjectId(ObjectIdentifier a_ExecObjectId)
Sets the value of the attribute: execObjectId; Identifier of the object that is the subject of the notification. |
void |
unsubscribe(Properties params,
Locale locale,
OutputStream os)
Generates unsubscription URL. |
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
private ObjectIdentifier execObjectId
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String EXECUTION_RESOURCE
private static final String RESOURCE_RESOURCE
private ExecutionObject execObject
private static final String SUBSCRIPTION_ACTION
private static final String SUBSCRIBE
private static final String unSUBSCRIBE
private static final String NOTIFY_RESOURCE
private static final String DELIVERABLE_CLASS_NAME
private static final String MILESTONE_CLASS_NAME
private static final String ACTIVITY_CLASS_NAME
private static final String SUMMARY_CLASS_NAME
private static final String PLAN_CLASS_NAME
private static final String PROXY_CLASS_NAME
Constructor Detail |
public ProjectNotificationProcessor()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BasicTemplateProcessor
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BasicTemplateProcessor
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ProjectNotificationProcessor 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 ObjectIdentifier getExecObjectId()
public void setExecObjectId(ObjectIdentifier a_ExecObjectId) throws WTPropertyVetoException
a_ExecObjectId
-
WTPropertyVetoException
public void handleRequest(HTTPRequest request, HTTPResponse response)
handleRequest
in interface TemplateProcessor
request
- response
- public ExecutionObject getExecObject() throws WTException
WTException
public void getExecObjectType(Properties params, Locale locale, OutputStream os) throws WTException
params
- locale
- os
-
WTException
public void getExecObjectName(Properties params, Locale locale, OutputStream os) throws WTException
params
- locale
- os
-
WTException
public void getDeadline(Properties params, Locale locale, OutputStream os) throws WTException
params
- locale
- os
-
WTException
public void getNewState(Properties params, Locale locale, OutputStream os) throws WTException
params
- locale
- os
-
WTException
public void getNewStatus(Properties params, Locale locale, OutputStream os) throws WTException
params
- locale
- os
-
WTException
public void getNewPercentComplete(Properties params, Locale locale, OutputStream os) throws WTException
params
- locale
- os
-
WTException
public void getNewEstimatedFinish(Properties params, Locale locale, OutputStream os) throws WTException
params
- locale
- os
-
WTException
public void getNewOwner(Properties params, Locale locale, OutputStream os) throws WTException
params
- locale
- os
-
WTException
public void unsubscribe(Properties params, Locale locale, OutputStream os)
params
- locale
- os
- public void projectLinkAttributes(Properties params, Locale locale, OutputStream os) throws WTException
params
- locale
- os
-
WTException
protected String removeEnclosingQuotes(String value)
value
- the String from which to remove quotes
private String getFormattedTimestamp(Timestamp timestamp, Locale locale)
private String getType(ObjectIdentifier obj_id)
public void getObjectName(Properties params, Locale locale, OutputStream os) throws WTException
WTException
private ObjectIdentifier getOid(Object obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |