wt.projmgmt
Class ProjMgmtServiceEvent

java.lang.Object
  extended bywt.events.KeyedEvent
      extended bywt.projmgmt.ProjMgmtServiceEvent
All Implemented Interfaces:
Serializable

public class ProjMgmtServiceEvent
extends KeyedEvent
implements Serializable

Event emitted by project management when there is a significant change on the project. Examples of these changes are status change and object deletion.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static String CONTAINMENT_CHANGE
          Parent summary change.
static String DEPENDENCY_CHANGE
          Predecessor change.
private  Object emitter
           
private  Timestamp eventTime
           
static String EXPORT_OBJECT
          

Supported API: false
static String NODE_ID_CHANGE
          Project id change.
private  Object oldValue
           
private static String RESOURCE
           
static String TASK_COMPLETION
          Project workitem completion.
static String VIEW_CONTENT
          

Supported API: false
 
Fields inherited from class wt.events.KeyedEvent
 
Constructor Summary
ProjMgmtServiceEvent(String event_type, Object source)
          Constructor of the event.
 
Method Summary
static void checkEventType(String event_type)
          Throws an exception if event type passed as argument is not valid.
static String generateEventKey(ProjectEventType event_type)
          

Supported API: false
static String generateEventKey(String event_type)
          Helper function used to generate event key.
 Object getEmitter()
          Gets the value of the attribute: emitter; Service or class that originated the event.
 Timestamp getEventTime()
          Gets the value of the attribute: eventTime; Time when the event occurred.
 Object getOldValue()
          Gets the value of the attribute: oldValue; In case of change events, this is the old value of the object.
 ProjectEventType getProjEventType()
          

Supported API: false
 void setEmitter(Object a_Emitter)
          Sets the value of the attribute: emitter; Service or class that originated the event.
 void setEventTime(Timestamp a_EventTime)
          Sets the value of the attribute: eventTime; Time when the event occurred.
 void setOldValue(Object a_OldValue)
          Sets the value of the attribute: oldValue; In case of change events, this is the old value of the object.
 KeyedEvent toMultiObjectEvent()
          

Supported API: false
 KeyedEvent[] toSingleObjectEvents()
          

Supported API: false
 
Methods inherited from class wt.events.KeyedEvent
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, getEventTarget, getEventType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

CONTAINMENT_CHANGE

public static final String CONTAINMENT_CHANGE
Parent summary change.

Supported API: false

See Also:
Constant Field Values

DEPENDENCY_CHANGE

public static final String DEPENDENCY_CHANGE
Predecessor change.

Supported API: false

See Also:
Constant Field Values

emitter

private Object emitter

eventTime

private Timestamp eventTime

EXPORT_OBJECT

public static final String EXPORT_OBJECT


Supported API: false

See Also:
Constant Field Values

NODE_ID_CHANGE

public static final String NODE_ID_CHANGE
Project id change.

Supported API: false

See Also:
Constant Field Values

oldValue

private Object oldValue

TASK_COMPLETION

public static final String TASK_COMPLETION
Project workitem completion.

Supported API: false

See Also:
Constant Field Values

VIEW_CONTENT

public static final String VIEW_CONTENT


Supported API: false

See Also:
Constant Field Values
Constructor Detail

ProjMgmtServiceEvent

public ProjMgmtServiceEvent(String event_type,
                            Object source)
Constructor of the event. For non change events, old and new value parameters may be null.

Supported API: false

Parameters:
event_type -
source -
Method Detail

getEmitter

public Object getEmitter()
Gets the value of the attribute: emitter; Service or class that originated the event.

Supported API: false

Returns:
Object

setEmitter

public void setEmitter(Object a_Emitter)
Sets the value of the attribute: emitter; Service or class that originated the event.

Supported API: false

Parameters:
a_Emitter -

getEventTime

public Timestamp getEventTime()
Gets the value of the attribute: eventTime; Time when the event occurred.

Supported API: false

Returns:
Timestamp

setEventTime

public void setEventTime(Timestamp a_EventTime)
Sets the value of the attribute: eventTime; Time when the event occurred.

Supported API: false

Parameters:
a_EventTime -

getOldValue

public Object getOldValue()
Gets the value of the attribute: oldValue; In case of change events, this is the old value of the object. For STATUS_CHANGE, this is the MonitorInfo containing the old status values.

Supported API: false

Returns:
Object

setOldValue

public void setOldValue(Object a_OldValue)
Sets the value of the attribute: oldValue; In case of change events, this is the old value of the object. For STATUS_CHANGE, this is the MonitorInfo containing the old status values.

Supported API: false

Parameters:
a_OldValue -

checkEventType

public static void checkEventType(String event_type)
Throws an exception if event type passed as argument is not valid.

Supported API: false

Parameters:
event_type -

generateEventKey

public static String generateEventKey(String event_type)
Helper function used to generate event key.

Supported API: false

Parameters:
event_type -
Returns:
String

generateEventKey

public static String generateEventKey(ProjectEventType event_type)


Supported API: false

Parameters:
event_type -
Returns:
String

getProjEventType

public ProjectEventType getProjEventType()


Supported API: false

Returns:
ProjectEventType

toSingleObjectEvents

public KeyedEvent[] toSingleObjectEvents()
                                  throws WTException


Supported API: false

Overrides:
toSingleObjectEvents in class KeyedEvent
Returns:
KeyedEvent[]
Throws:
WTException

toMultiObjectEvent

public KeyedEvent toMultiObjectEvent()


Supported API: false

Overrides:
toMultiObjectEvent in class KeyedEvent
Returns:
KeyedEvent