public class WGContentEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_CREATED
A content was created
|
static int |
TYPE_HASBEENDELETED
A content has been deleted
|
static int |
TYPE_HASBEENMOVED
A content has been moved (by a movage of a struct entry)
|
static int |
TYPE_HASBEENSAVED
A content has been saved
|
static int |
TYPE_SAVED
A content is to be saved
|
static int |
TYPE_STATUSCHANGED
The status of a content has been changed
|
Constructor and Description |
---|
WGContentEvent(int type,
java.lang.String documentKey,
java.lang.String contentType,
WGDatabase db) |
Modifier and Type | Method and Description |
---|---|
WGContent |
getContent()
Retrieves and returns the content document that has changed.
|
java.lang.String |
getContentType()
The content type of the content.
|
WGDatabase |
getDatabase()
Returns the database of the content document.
|
java.lang.String |
getDocumentKey()
The document key of the content that triggered the event
|
int |
getType()
The type of the event.
|
public static final int TYPE_CREATED
public static final int TYPE_SAVED
public static final int TYPE_HASBEENSAVED
public static final int TYPE_HASBEENDELETED
public static final int TYPE_HASBEENMOVED
public static final int TYPE_STATUSCHANGED
public WGContentEvent(int type, java.lang.String documentKey, java.lang.String contentType, WGDatabase db)
public java.lang.String getDocumentKey()
public int getType()
public WGDatabase getDatabase()
public java.lang.String getContentType()
public WGContent getContent() throws WGAPIException
WGAPIException