|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.event.DocumentEvent
public class DocumentEvent
A class for Document events. This class will be passed to DocumentListeners
whenever a document event is fired and contains all the pertinent information to the event.
Certain event types will populate the params Map with additional objects as outlined below:
| Event Type | Extra Params | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DOCUMENT_ADDED | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DOCUMENT_DELETED | None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DOCUMENT_MOVED |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DOCUMENT_RELATED_DOCUMENT_ADDED |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DOCUMENT_RELATED_DOCUMENT_DELETED |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DOCUMENT_RATED |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DOCUMENT_MODIFIED |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
|---|---|
static int |
BINARY_BODY_DOWNLOADED
Event type for when a binary body is downloaded |
static int |
DOCUMENT_ADDED
Event type for whenever a document is added to a community. |
static int |
DOCUMENT_DELETING
Event type for whenever a document is deleted from a community. |
static int |
DOCUMENT_EXPIRE_WARNING
Event type for whenever a document is about to expire. |
static int |
DOCUMENT_EXPIRED
Event type for whenever a document expires. |
static int |
DOCUMENT_MODIFIED
Event type for whenever a document is modified. |
static int |
DOCUMENT_MOVED
Event type for whenever a document is moved. |
static int |
DOCUMENT_RATED
Event type for whenever a document is rated. |
static int |
DOCUMENT_RELATED_DOCUMENT_ADDED
Event type for whenever a related document is added to a document. |
static int |
DOCUMENT_RELATED_DOCUMENT_DELETED
Event type for whenever a related document is deleted from a document. |
static int |
DOCUMENT_UNDELETED
Event type for whenever a document is un-deleted from a community. |
static int |
DOCUMENT_VIEWED
Event type for when a document is marked as viewed |
static int |
VERSION_ADDED
Event type for when a version is added |
static int |
VERSION_DELETING
Event type for when a version is about to be deleted |
static int |
VERSION_MODIFIED
Event type for when a version is modified |
| Constructor Summary | |
|---|---|
DocumentEvent(int eventType,
Document document,
Community community,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
|
|
| Method Summary | |
|---|---|
Community |
getCommunity()
|
java.util.Date |
getCreated()
|
java.util.Date |
getDate()
Returns the date (as a Date object) that the event was created. |
Document |
getDocument()
|
int |
getEventType()
Returns the event type corresponding to the event. |
JiveObject |
getIdentifiedObject()
Return an EntityDescriptor if document is null and documentID is not. |
java.util.Map<java.lang.String,? extends java.lang.Object> |
getParams()
Returns a map of parameters which can be used to pass data to a listener. |
boolean |
isMinorRevision()
|
void |
setCreated(java.util.Date created)
|
void |
setMinorRevision(boolean minorRevision)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DOCUMENT_ADDED
public static final int DOCUMENT_DELETING
public static final int DOCUMENT_UNDELETED
public static final int DOCUMENT_MOVED
public static final int DOCUMENT_MODIFIED
public static final int DOCUMENT_EXPIRE_WARNING
public static final int DOCUMENT_EXPIRED
public static final int DOCUMENT_RELATED_DOCUMENT_ADDED
public static final int DOCUMENT_RELATED_DOCUMENT_DELETED
public static final int DOCUMENT_RATED
public static final int DOCUMENT_VIEWED
public static final int VERSION_ADDED
public static final int VERSION_MODIFIED
public static final int VERSION_DELETING
public static final int BINARY_BODY_DOWNLOADED
| Constructor Detail |
|---|
public DocumentEvent(int eventType,
Document document,
Community community,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
| Method Detail |
|---|
public int getEventType()
JiveEvent
getEventType in interface JiveEventpublic Document getDocument()
public Community getCommunity()
public java.util.Map<java.lang.String,? extends java.lang.Object> getParams()
JiveEvent
getParams in interface JiveEventpublic java.util.Date getDate()
JiveEvent
getDate in interface JiveEventpublic java.util.Date getCreated()
public void setCreated(java.util.Date created)
public boolean isMinorRevision()
public void setMinorRevision(boolean minorRevision)
public JiveObject getIdentifiedObject()
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||