|
Clearspace API (2.5.18) 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 container. |
static int |
DOCUMENT_DELETING
Event type for whenever a document is deleted from a container. |
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 container. |
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,
JiveContainer container,
Map<String,? extends Object> params)
|
|
| Method Summary | |
|---|---|
Date |
getCreated()
|
Date |
getDate()
|
Document |
getDocument()
|
int |
getEventType()
|
JiveObject |
getIdentifiedObject()
Return an EntityDescriptor if document is null and documentID is not. |
JiveContainer |
getJiveContainer()
|
Map<String,? extends Object> |
getParams()
|
JiveContentObject.Status |
getPreviousStatus()
|
boolean |
isDocumentStateChanged()
|
boolean |
isMinorRevision()
|
void |
setCreated(Date created)
|
void |
setDocumentStateChanged(boolean documentStateChanged)
|
void |
setMinorRevision(boolean minorRevision)
|
void |
setPreviousStatus(JiveContentObject.Status status)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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,
JiveContainer container,
Map<String,? extends Object> params)
| Method Detail |
|---|
public int getEventType()
getEventType in interface com.jivesoftware.community.JiveEventpublic Document getDocument()
public JiveContainer getJiveContainer()
public Map<String,? extends Object> getParams()
getParams in interface com.jivesoftware.community.JiveEventpublic Date getDate()
getDate in interface com.jivesoftware.community.JiveEventpublic Date getCreated()
public void setCreated(Date created)
public void setPreviousStatus(JiveContentObject.Status status)
public JiveContentObject.Status getPreviousStatus()
public boolean isDocumentStateChanged()
public void setDocumentStateChanged(boolean documentStateChanged)
public boolean isMinorRevision()
public void setMinorRevision(boolean minorRevision)
public JiveObject getIdentifiedObject()
public String toString()
toString in class Object
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||