|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.events.KeyedEvent
wt.inf.team.ContainerTeamServiceEvent
Provides a service specific event extended from KeyedEvent used in conjunction
with the standard implementation of the server-side functionality as
defined by the ContainerTeamService interface. The event could be used
by a custom implementation of the ContainerTeamService.
Supported API: true
Extendable: false
KeyedEvent
,
Serialized FormField Summary | |
static String |
ADD_MEMBER
A constant that defines an event key that marks the occurrence of the add_member event Supported API: false |
private static String |
CLASSNAME
|
static String |
CONFIRM_PARTICIPATION
A constant that defines an event key that marks the occurrence of the state_change event Supported API: false |
private WTUser |
newUser
|
private ContainerTeamManagedState |
previousState
|
private boolean |
reassign
|
static String |
REMOVE_MEMBER
A constant that defines an event key that marks the occurrence of the remove_member event Supported API: false |
private WTUser |
removedUser
|
static String |
REPLACE_MEMBER
A constant that defines an event key that marks the occurrence of the replace_user event Supported API: false |
private static String |
RESOURCE
|
private ContainerTeamService |
service
|
static String |
STATE_CHANGE
A constant that defines an event key that marks the occurrence of the state_change event Supported API: false |
Fields inherited from class wt.events.KeyedEvent |
|
Constructor Summary | |
ContainerTeamServiceEvent(ContainerTeamService service,
String eventType,
Object eventTarget,
boolean reassign)
Constructs a Conainer Team services event from the specified service and its event type and target. |
|
ContainerTeamServiceEvent(String eventType,
WTKeyedMap map)
Constructs a Conainer Team services event from the specified service and its event type and WTKeyedMap target. |
Method Summary | |
private void |
addEventAttributes(ContainerTeamServiceEvent event)
|
static String |
generateEventKey(String eventType)
Generates an event key from an event type Supported API: false |
WTUser |
getNewUser()
Gets the value of the attribute: newUser. |
ContainerTeamManagedState |
getPreviousState()
Gets the value of the attribute: previousState. |
WTUser |
getRemovedUser()
Gets the value of the attribute: removedUser. |
ContainerTeamService |
getService()
Gets the value of the attribute: service; The Container Team service that emits events. |
ContainerTeamManaged |
getTarget()
Gets the target of the event. |
WTKeyedMap |
getTargets()
Multi-object getter. |
boolean |
isReassign()
Gets the value of the attribute: reassign. |
void |
setNewUser(WTUser a_NewUser)
Sets the value of the attribute: newUser. |
void |
setPreviousState(ContainerTeamManagedState a_PreviousState)
Sets the value of the attribute: previousState. |
void |
setReassign(boolean a_Reassign)
Sets the value of the attribute: reassign. |
void |
setRemovedUser(WTUser a_RemovedUser)
Sets the value of the attribute: removedUser. |
void |
setService(ContainerTeamService a_Service)
Sets the value of the attribute: service; The Container Team service that emits events. |
KeyedEvent |
toMultiObjectEvent()
Converts an event with a single target object to a multiple object event by creating a new target object of type WTKeyedMap with key = the single object event's target object and value = the reassign value. |
KeyedEvent[] |
toSingleObjectEvents()
Constructs an array of KeyedEvent objects given a multi-object event. |
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 |
private static final String RESOURCE
private static final String CLASSNAME
public static final String STATE_CHANGE
public static final String ADD_MEMBER
public static final String REMOVE_MEMBER
public static final String REPLACE_MEMBER
public static final String CONFIRM_PARTICIPATION
private ContainerTeamService service
private WTUser removedUser
private WTUser newUser
private ContainerTeamManagedState previousState
private boolean reassign
Constructor Detail |
public ContainerTeamServiceEvent(ContainerTeamService service, String eventType, Object eventTarget, boolean reassign) throws WTException, WTPropertyVetoException
service
- eventType
- eventTarget
- reassign
-
WTException
WTPropertyVetoException
public ContainerTeamServiceEvent(String eventType, WTKeyedMap map)
eventType
- map
- Method Detail |
public ContainerTeamService getService()
public void setService(ContainerTeamService a_Service) throws WTPropertyVetoException
a_Service
-
WTPropertyVetoException
public WTUser getRemovedUser()
public void setRemovedUser(WTUser a_RemovedUser) throws WTPropertyVetoException
a_RemovedUser
-
WTPropertyVetoException
public WTUser getNewUser()
public void setNewUser(WTUser a_NewUser) throws WTPropertyVetoException
a_NewUser
-
WTPropertyVetoException
public ContainerTeamManagedState getPreviousState()
public void setPreviousState(ContainerTeamManagedState a_PreviousState) throws WTPropertyVetoException
a_PreviousState
-
WTPropertyVetoException
public boolean isReassign()
public void setReassign(boolean a_Reassign) throws WTPropertyVetoException
a_Reassign
-
WTPropertyVetoException
public ContainerTeamManaged getTarget()
ContainerTeamServiceEvent
public static String generateEventKey(String eventType)
eventType
-
public KeyedEvent toMultiObjectEvent()
toMultiObjectEvent
in class KeyedEvent
public KeyedEvent[] toSingleObjectEvents() throws WTException
toSingleObjectEvents
in class KeyedEvent
WTException
public WTKeyedMap getTargets()
private void addEventAttributes(ContainerTeamServiceEvent event)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |