|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.events.KeyedEvent
wt.vc.wip.WorkInProgressServiceEvent
Provides a service specific event extended from KeyedEvent used in conjunction
with the standard implementation of the server-side functionality as
defined by the WorkInProgressService interface. This event could also
be used by a custom implementation of the WorkInProgressService.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private boolean |
multiObjectTrx
|
static String |
POST_CHECKIN
A constant that defines an event marking the occurrance of a checkin that has completed. |
static String |
POST_CHECKOUT
A constant that defines an event marking the occurrance of a checkout that has completed. |
static String |
POST_UNDO_CHECKOUT
A constant that defines an event marking the occurrance of an undo of a checkout that has completed. |
static String |
PRE_CHECKIN
A constant that defines an event marking the occurrance of a checkin that is about to commense. |
static String |
PRE_CHECKOUT
A constant that defines an event marking the occurrance of a checkout that is about to commense. |
static String |
PRE_UNDO_CHECKOUT
A constant that defines an event marking the occurrance of an undo of a checkout that is about to commense. |
private static String |
RESOURCE
|
private WorkInProgressService |
service
|
private Folder |
workingFolder
|
Fields inherited from class wt.events.KeyedEvent |
|
Constructor Summary | |
WorkInProgressServiceEvent(String eventType,
Object eventTarget)
Supported API: false |
|
WorkInProgressServiceEvent(String eventType,
WTCollection eventTarget)
Supported API: false |
|
WorkInProgressServiceEvent(String eventType,
WTValuedMap eventTarget,
Folder a_workingFolder)
Constructs an WIP service's event from the map of Workables and event type, as well as the working folder of the target object. |
|
WorkInProgressServiceEvent(WorkInProgressService service,
String eventType,
Vector eventTarget)
Constructs an WIP service's event from the specified service and its event type and target. |
|
WorkInProgressServiceEvent(WorkInProgressService service,
String eventType,
Vector eventTarget,
Folder workingFolder)
Constructs an WIP service's event from the specified service, its event type and target, and the working folder of the target object. |
|
WorkInProgressServiceEvent(WorkInProgressService service,
String eventType,
Workable eventTarget)
Constructs an WIP service's event from the specified service and its event type and target. |
Method Summary | |
static String |
generateEventKey(String eventType)
Generates an event key from an event type. |
Object |
getEventTarget()
Gets the value of the attribute: eventTarget; The primary target of this event. |
Workable |
getOriginalCopy()
Gets the original copy target of the event. |
WorkInProgressService |
getService()
Gets the object for the association that plays role: service; The WIP service that emits events. |
Workable |
getTarget()
Deprecated. Replaced by getOriginalCopy() |
WTValuedMap |
getTargetMap()
Return a WTValuedMap with key=original copy and value = working copy. |
WTCollection |
getTargets()
Gets the event targent (WTKeyedMap of original - working pairs) as a WTCollection. |
Workable |
getWorkingCopy()
Gets the working copy target of the event. |
Folder |
getWorkingFolder()
Gets the value of the attribute: workingFolder. |
boolean |
isMultiObjectTrx()
Gets the value of the attribute: multiObjectTrx; Flag to indicate if this event was dispatched in the context of a call to a MultiWorkInProgressSerivce method where there is an enclosing transaction for all wip operations on each object (one_transaction argument is true). |
private void |
serviceValidate(WorkInProgressService a_Service)
|
protected void |
setMultiObjectTrx(boolean a_MultiObjectTrx)
Sets the value of the attribute: multiObjectTrx; Flag to indicate if this event was dispatched in the context of a call to a MultiWorkInProgressSerivce method where there is an enclosing transaction for all wip operations on each object (one_transaction argument is true). |
void |
setService(WorkInProgressService a_Service)
Sets the object for the association that plays role: service; The WIP service that emits events. |
protected void |
setWorkingFolder(Folder a_WorkingFolder)
Sets the value of the attribute: workingFolder. |
KeyedEvent |
toMultiObjectEvent()
Given a single object event, if the event's target is a Vector returns a single KeyedEvent with a WTKeyedMap target having key = original copy and value = working copy. |
KeyedEvent[] |
toSingleObjectEvents()
Given a multi-object WorkInProgressServiceEvent if the event's target is a WTCollection returns an array of KeyedEvents each with a Workable event target. |
Methods inherited from class wt.events.KeyedEvent |
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, 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_CHECKIN
public static final String POST_CHECKIN
public static final String PRE_CHECKOUT
public static final String POST_CHECKOUT
public static final String PRE_UNDO_CHECKOUT
public static final String POST_UNDO_CHECKOUT
private Folder workingFolder
private boolean multiObjectTrx
private WorkInProgressService service
Constructor Detail |
public WorkInProgressServiceEvent(WorkInProgressService service, String eventType, Workable eventTarget) throws WorkInProgressException, WTPropertyVetoException
service
- eventType
- eventTarget
-
WorkInProgressException
WTPropertyVetoException
public WorkInProgressServiceEvent(WorkInProgressService service, String eventType, Vector eventTarget) throws WorkInProgressException, WTPropertyVetoException
service
- eventType
- eventTarget
-
WorkInProgressException
WTPropertyVetoException
public WorkInProgressServiceEvent(WorkInProgressService service, String eventType, Vector eventTarget, Folder workingFolder) throws WorkInProgressException, WTPropertyVetoException
service
- eventType
- eventTarget
- workingFolder
- Folder that the object has been checked-out to.
WorkInProgressException
WTPropertyVetoException
public WorkInProgressServiceEvent(String eventType, WTValuedMap eventTarget, Folder a_workingFolder)
eventType
- eventTarget
- a_workingFolder
- public WorkInProgressServiceEvent(String eventType, WTCollection eventTarget)
eventType
- eventTarget
- public WorkInProgressServiceEvent(String eventType, Object eventTarget)
eventType
- eventTarget
- Method Detail |
public Folder getWorkingFolder()
protected void setWorkingFolder(Folder a_WorkingFolder)
a_WorkingFolder
- public boolean isMultiObjectTrx()
wt.vc.wip.MultiWorkInProgressSerivce
protected void setMultiObjectTrx(boolean a_MultiObjectTrx) throws WTPropertyVetoException
a_MultiObjectTrx
-
WTPropertyVetoException
wt.vc.wip.MultiWorkInProgressSerivce
public WorkInProgressService getService()
WorkInProgressService
public void setService(WorkInProgressService a_Service) throws WTPropertyVetoException
a_Service
-
WTPropertyVetoException
WorkInProgressService
private void serviceValidate(WorkInProgressService a_Service) throws WTPropertyVetoException
a_Service
-
WTPropertyVetoException
public static String generateEventKey(String eventType)
eventType
-
public Workable getOriginalCopy()
wt.vc.wip.PRE_CHECKOUT
,
wt.vc.wip.POST_CHECKOUT
,
wt.vc.wip.PRE_CHECKIN
,
wt.vc.wip.POST_CHECKIN
,
wt.vc.wip.PRE_UNDO_CHECKOUT
,
wt.vc.wip.POST_UNDO_CHECKOUT
public Workable getWorkingCopy()
wt.vc.wip.POST_CHECKOUT
,
wt.vc.wip.PRE_CHECKIN
,
wt.vc.wip.POST_CHECKIN
,
wt.vc.wip.PRE_UNDO_CHECKOUT
,
wt.vc.wip.POST_UNDO_CHECKOUT
public Workable getTarget()
wt.vc.wip.PRE_CHECKOUT
public WTValuedMap getTargetMap()
public WTCollection getTargets()
public KeyedEvent toMultiObjectEvent()
toMultiObjectEvent
in class KeyedEvent
public KeyedEvent[] toSingleObjectEvents() throws WTException
toSingleObjectEvents
in class KeyedEvent
WTException
public Object getEventTarget()
KeyedEvent
getEventTarget
in class KeyedEvent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |