wt.change2
Class ChangeService2Event

java.lang.Object
  extended bywt.events.KeyedEvent
      extended bywt.change2.ChangeService2Event
All Implemented Interfaces:
Serializable

public class ChangeService2Event
extends KeyedEvent
implements Serializable



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
static String CA_STATE_CHANGED
          

Supported API: true
private static String CLASSNAME
           
private  Object eventSecondaryTarget
           
static String ISSUE_FORMALIZED
          A constant that defines an event key that marks the creation of a FormalizedBy association between a Change Issue and a Change Request.
static String ISSUE_UNFORMALIZED
          

Supported API: true
private static String RESOURCE
           
 
Fields inherited from class wt.events.KeyedEvent
 
Constructor Summary
ChangeService2Event(String eventType, Object eventTarget)
          Constructs a ChangeService2 services event from the specified service and its event type and target.
ChangeService2Event(String eventType, Object eventTarget, Object eventSecondaryTarget)
          Constructs a ChangeService2 services event from the specified service and its event type and target.
ChangeService2Event(String eventType, WTCollection eventTarget)
          Constructs a ChangeService2 services multi object event from the specified service and its event type and collection of targets.
ChangeService2Event(String eventType, WTKeyedMap eventTarget)
          Constructs multi object ChangeService2Event.
 
Method Summary
static String generateEventKey(String eventType)
          

Supported API: false
 Object getEventSecondaryTarget()
          Gets the value of the attribute: eventSecondaryTarget; The primary target of this event.
 Persistable getTarget()
          

Supported API: true
 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

ISSUE_FORMALIZED

public static final String ISSUE_FORMALIZED
A constant that defines an event key that marks the creation of a FormalizedBy association between a Change Issue and a Change Request. The Change Issue is the target object.

Supported API: true

See Also:
Constant Field Values

ISSUE_UNFORMALIZED

public static final String ISSUE_UNFORMALIZED


Supported API: true

See Also:
Constant Field Values

eventSecondaryTarget

private Object eventSecondaryTarget

CA_STATE_CHANGED

public static final String CA_STATE_CHANGED


Supported API: true

See Also:
Constant Field Values
Constructor Detail

ChangeService2Event

public ChangeService2Event(String eventType,
                           Object eventTarget)
                    throws WTPropertyVetoException
Constructs a ChangeService2 services event from the specified service and its event type and target.

Supported API: false

Parameters:
eventType - the type of event used to construct the service's event
eventTarget - the object used to construct the service's event
Throws:
WTPropertyVetoException

ChangeService2Event

public ChangeService2Event(String eventType,
                           WTCollection eventTarget)
                    throws WTPropertyVetoException
Constructs a ChangeService2 services multi object event from the specified service and its event type and collection of targets.

Supported API: false

Parameters:
eventType - the type of event used to construct the service's event
eventTarget - the collection object used to construct the service's event
Throws:
WTPropertyVetoException

ChangeService2Event

public ChangeService2Event(String eventType,
                           Object eventTarget,
                           Object eventSecondaryTarget)
                    throws WTPropertyVetoException
Constructs a ChangeService2 services event from the specified service and its event type and target.

Supported API: false

Parameters:
eventType - the type of event used to construct the service's event
eventTarget - the object used to construct the service's event
eventSecondaryTarget - an optional secondary object used to construct the service's event
Throws:
WTPropertyVetoException

ChangeService2Event

public ChangeService2Event(String eventType,
                           WTKeyedMap eventTarget)
                    throws WTPropertyVetoException
Constructs multi object ChangeService2Event.
This constructor is used to dispatch multi object event in place of a single object event that takes eventTarget and eventSecondaryTarget as its arguments. This constructor takes WTMap formed of eventTarget as its key and eventSecondaryTarget as its value.

Supported API: false

Parameters:
eventType - the type of event used to construct the service's event
eventTarget - eventTarget used as key and eventSecondaryTarget used as value
Throws:
WTPropertyVetoException
Method Detail

getEventSecondaryTarget

public Object getEventSecondaryTarget()
Gets the value of the attribute: eventSecondaryTarget; The primary target of this event. May be null.

Supported API: false

Returns:
Object

generateEventKey

public static String generateEventKey(String eventType)


Supported API: false

Parameters:
eventType - the type of event used to generate an event key
Returns:
String

getTarget

public Persistable getTarget()


Supported API: true

Returns:
Persistable

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