|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.events.KeyedEvent
wt.ownership.OwnershipServiceEvent
The event emitted when Ownership operations occur on an Ownable object.
The event contains information which indicates the specify type of event
that happened, the Ownable object that it occured on and other related
information. The event is emitted in response to operations of the OwnershipService.
Supported API: false
Extendable: false
OwnershipService
,
StandardManager
,
Serialized FormField Summary | |
private boolean |
changeCommited
|
private static String |
CLASSNAME
|
private Ownership |
ownership
|
static String |
POST_CHANGEOWNER
An eventType value that indicates the event is being emitted
just after the change of ownership. |
static String |
PRE_CHANGEOWNER
An eventType value that indicates the event is being emitted
just prior to the change of ownership. |
private static String |
RESOURCE
|
Fields inherited from class wt.events.KeyedEvent |
|
Constructor Summary | |
OwnershipServiceEvent(String eventType,
Ownable obj,
Ownership new_ownership,
boolean commited)
Constructs an OwnershipServiceEvent. |
|
OwnershipServiceEvent(String eventType,
WTCollection obj,
Ownership new_ownership,
boolean commited)
Constructs a multi object OwnershipServiceEvent. |
Method Summary | |
static String |
generateEventKey(String eventType)
Generates a Key for the event for the StandardManager event dispatcher. |
Ownership |
getOwnership()
Gets the value of the attribute: ownership; This object contains the new Ownership for the object. |
Ownable |
getTarget()
Return the Ownable object that is the target of this event. |
boolean |
isChangeCommited()
Gets the value of the attribute: changeCommited; This boolean indicates that for the event, will the change be commited in the database. |
protected void |
setChangeCommited(boolean a_ChangeCommited)
Sets the value of the attribute: changeCommited; This boolean indicates that for the event, will the change be commited in the database. |
protected void |
setOwnership(Ownership a_Ownership)
Sets the value of the attribute: ownership; This object contains the new Ownership for 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 |
private static final String RESOURCE
private static final String CLASSNAME
public static final String PRE_CHANGEOWNER
eventType
value that indicates the event is being emitted
just prior to the change of ownership.
KeyedEvent
,
Constant Field Valuespublic static final String POST_CHANGEOWNER
eventType
value that indicates the event is being emitted
just after the change of ownership.
KeyedEvent
,
Constant Field Valuesprivate boolean changeCommited
private Ownership ownership
Constructor Detail |
public OwnershipServiceEvent(String eventType, Ownable obj, Ownership new_ownership, boolean commited) throws WTException
eventType
- obj
- new_ownership
- commited
-
WTException
public OwnershipServiceEvent(String eventType, WTCollection obj, Ownership new_ownership, boolean commited) throws WTException
eventType
- obj
- new_ownership
- commited
-
WTException
Method Detail |
public boolean isChangeCommited()
protected void setChangeCommited(boolean a_ChangeCommited)
a_ChangeCommited
- public Ownership getOwnership()
protected void setOwnership(Ownership a_Ownership)
a_Ownership
- public static String generateEventKey(String eventType)
eventType
-
public Ownable getTarget()
KeyedEvent
public KeyedEvent[] toSingleObjectEvents() throws WTException
toSingleObjectEvents
in class KeyedEvent
WTException
public KeyedEvent toMultiObjectEvent()
toMultiObjectEvent
in class KeyedEvent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |