|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.events.KeyedEvent
wt.locks.LockServiceEvent
Provides an abstraction of an extended keyed event used in conjunction
with the standard implementation of the server-side functionality as
defined by the LockService interface. This event could also be used by
a custom implementation of the LockService.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static String |
POST_LOCK
A constant that defines an event marking the occurrance of a persistent lock that has completed. |
static String |
POST_UNLOCK
A constant that defines an event marking the occurrance of a persistent unlock that has completed. |
static String |
PRE_LOCK
A constant that defines an event marking the occurrance of a persistent lock that is about to commense. |
static String |
PRE_UNLOCK
A constant that defines an event marking the occurrance of a persistent unlock that is about to commense. |
private static String |
RESOURCE
|
private LockService |
service
|
Fields inherited from class wt.events.KeyedEvent |
|
Constructor Summary | |
LockServiceEvent(LockService service,
String eventType,
Object eventTarget)
Constructs an locking service's event from the specified service and its event type and target. |
|
LockServiceEvent(String eventType,
Object eventTarget)
Supported API: false |
|
LockServiceEvent(String eventType,
WTCollection targetObjects)
Supported API: false |
Method Summary | |
static String |
generateEventKey(String eventType)
Generates an event key from an event type. |
LockService |
getService()
Gets the value of the attribute: service; The locking service that dispatched the event. |
Lockable |
getTarget()
Gets the lockable object target of the event. |
WTCollection |
getTargets()
Returns WTCollection of event targets. |
protected void |
setService(LockService a_Service)
Sets the value of the attribute: service; The locking service that dispatched the event. |
KeyedEvent |
toMultiObjectEvent()
Given a single object event convert it to a multi object event with a WTCollection target. |
KeyedEvent[] |
toSingleObjectEvents()
Given an event with a target object of type WTCollection convert it to an array of single object KeyedEvents. |
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_LOCK
public static final String POST_LOCK
public static final String PRE_UNLOCK
public static final String POST_UNLOCK
private LockService service
Constructor Detail |
public LockServiceEvent(LockService service, String eventType, Object eventTarget) throws LockException, WTPropertyVetoException
service
- eventType
- eventTarget
-
LockException
WTPropertyVetoException
public LockServiceEvent(String eventType, WTCollection targetObjects)
eventType
- targetObjects
- public LockServiceEvent(String eventType, Object eventTarget)
eventType
- eventTarget
- Method Detail |
public LockService getService()
protected void setService(LockService a_Service) throws WTPropertyVetoException
a_Service
-
WTPropertyVetoException
public static String generateEventKey(String eventType)
eventType
-
public Lockable getTarget()
wt.locks.PRE_LOCK
,
wt.locks.POST_LOCK
,
wt.locks.PRE_UNLOCK
,
wt.locks.POST_UNLOCK
public KeyedEvent toMultiObjectEvent()
toMultiObjectEvent
in class KeyedEvent
public KeyedEvent[] toSingleObjectEvents() throws WTException
toSingleObjectEvents
in class KeyedEvent
WTException
public WTCollection getTargets()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |