|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.ocap.hn.ContentServerEvent
public class ContentServerEvent
Event which will be sent to registered ContentServerListeners when ContentEntrys have been added, changed or removed.
| Field Summary | |
|---|---|
static int |
CONTENT_ADDED
Event ID indicating that content got added to a ContentServerNetModule. |
static int |
CONTENT_CHANGED
Event ID indicating that metadata associated with content has been updated. |
static int |
CONTENT_REMOVED
Event ID indicating that content got removed from a ContentServerNetModule |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ContentServerEvent(Object source,
String[] content,
int evt)
Creates a new ContentServerEvent with the given source object, the ContentItem involved and an event ID indicating whether the content got added or removed. |
|
| Method Summary | |
|---|---|
String[] |
getContent()
Returns the IDs associated with the ContentEntrys involved in this event. |
ContentServerNetModule |
getContentServerNetModule()
Returns the ContentServerNetModule. |
int |
getEventID()
Gets the event ID for this event. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CONTENT_ADDED
ContentServerNetModule,
Constant Field Valuespublic static final int CONTENT_REMOVED
public static final int CONTENT_CHANGED
ContentServerNetModule,
Constant Field Values| Constructor Detail |
|---|
public ContentServerEvent(Object source,
String[] content,
int evt)
source - The source of this event. This must be a ContentServerNetModule.content - the IDs of the ContentEntrys involved.evt - the Event ID, either CONTENT_ADDED,CONTENT_REMOVED or CONTENT_CHANGED.| Method Detail |
|---|
public String[] getContent()
public ContentServerNetModule getContentServerNetModule()
public int getEventID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||