|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.events.KeyedEvent
wt.content.ContentServiceEvent
Events dispatched by the ContentService. All events have a ContentHolder and an ApplicationData attached. Note that the target object of the
PRE_UPLOAD is dispatched right before an upload is started.
POST_UPLOAD is dispatched right after an upload is complete.
PRE_DOWNLOAD is dispatched right before an download is started.
POST_DOWNLOAD is dispatched right after an download is complete.
WARNING- if the sytem running has content replication enabled,
the download events MAY NOT be dispatched to the correct server for processing.
Do not depend on the dispatch of these events if you are using content
replication.
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static String |
CONTENT_COPY_FORWARD
Supported API: true |
static String |
POST_DOWNLOAD
Supported API: true |
static String |
POST_UPLOAD
Supported API: true |
static String |
PRE_DOWNLOAD
Supported API: true |
static String |
PRE_UPLOAD
Supported API: true |
private static String |
RESOURCE
|
private ApplicationData |
theApplicationData
|
private ContentHolder |
theContentHolder
|
private ContentServiceSvr |
theContentServiceSvr
|
Fields inherited from class wt.events.KeyedEvent |
|
Constructor Summary | |
ContentServiceEvent(ContentServiceSvr service,
String eventType,
ContentHolder holder,
ApplicationData appData)
Supported API: false |
|
ContentServiceEvent(ContentServiceSvr service,
String eventType,
WTKeyedMap holderAppDataMap)
Create a ContentServiceEvent using the input WTKeyedHashMap as a event target. |
Method Summary | |
static String |
generateEventKey(String eventType)
Generates an event key from an event type. |
ApplicationData |
getApplicationData()
Gets the object for the association that plays role: theApplicationData. |
ContentHolder |
getContentHolder()
Gets the object for the association that plays role: theContentHolder. |
ContentServiceSvr |
getContentServiceSvr()
Gets the object for the association that plays role: theContentServiceSvr. |
void |
setApplicationData(ApplicationData a_ApplicationData)
Sets the object for the association that plays role: theApplicationData. |
void |
setContentHolder(ContentHolder a_ContentHolder)
Sets the object for the association that plays role: theContentHolder. |
void |
setContentServiceSvr(ContentServiceSvr a_ContentServiceSvr)
Sets the object for the association that plays role: theContentServiceSvr. |
private void |
theApplicationDataValidate(ApplicationData a_ApplicationData)
|
private void |
theContentHolderValidate(ContentHolder a_ContentHolder)
|
private void |
theContentServiceSvrValidate(ContentServiceSvr a_ContentServiceSvr)
|
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_UPLOAD
public static final String POST_UPLOAD
public static final String PRE_DOWNLOAD
public static final String POST_DOWNLOAD
public static final String CONTENT_COPY_FORWARD
private ContentHolder theContentHolder
private ApplicationData theApplicationData
private ContentServiceSvr theContentServiceSvr
Constructor Detail |
public ContentServiceEvent(ContentServiceSvr service, String eventType, ContentHolder holder, ApplicationData appData) throws VersionControlException, WTPropertyVetoException
service
- eventType
- holder
- appData
-
VersionControlException
WTPropertyVetoException
public ContentServiceEvent(ContentServiceSvr service, String eventType, WTKeyedMap holderAppDataMap) throws VersionControlException, WTPropertyVetoException
service
- eventType
- holderAppDataMap
-
VersionControlException
WTPropertyVetoException
Method Detail |
public ContentHolder getContentHolder()
public void setContentHolder(ContentHolder a_ContentHolder) throws WTPropertyVetoException
a_ContentHolder
-
WTPropertyVetoException
private void theContentHolderValidate(ContentHolder a_ContentHolder) throws WTPropertyVetoException
a_ContentHolder
-
WTPropertyVetoException
public ApplicationData getApplicationData()
public void setApplicationData(ApplicationData a_ApplicationData) throws WTPropertyVetoException
a_ApplicationData
-
WTPropertyVetoException
private void theApplicationDataValidate(ApplicationData a_ApplicationData) throws WTPropertyVetoException
a_ApplicationData
-
WTPropertyVetoException
public ContentServiceSvr getContentServiceSvr()
public void setContentServiceSvr(ContentServiceSvr a_ContentServiceSvr) throws WTPropertyVetoException
a_ContentServiceSvr
-
WTPropertyVetoException
private void theContentServiceSvrValidate(ContentServiceSvr a_ContentServiceSvr) throws WTPropertyVetoException
a_ContentServiceSvr
-
WTPropertyVetoException
public static String generateEventKey(String eventType)
eventType
-
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 |