|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Draft
A container for a draft of a message of any type. Every draft lives in a container specified by the draftContainerObjectType and draftContainerObjectID which means a draft can be created for any type of object in the system that has a subject and body. Each draft can have an arbitrary number of extended properties, which allow extra data about the draft to be stored.
| Method Summary | |
|---|---|
java.lang.String |
getBody()
Returns the body of the draft. |
long |
getDraftContainerObjectID()
Returns the ID of the object that contains this draft. |
int |
getDraftContainerObjectType()
Returns the type of the object that contains this draft. |
int |
getDraftObjectType()
Returns the type of object this draft represents. |
java.util.List<Image> |
getImages()
Returns a list of images for the draft, or an empty list if no images are associated with the draft. |
java.util.Date |
getModificationDate()
Returns the date that the draft was last modified. |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns a map of properties associated with this draft. |
java.lang.String |
getSubject()
Returns the subject of the draft. |
long |
getUserID()
Returns the ID of the user that authored this draft. |
void |
setBody(java.lang.String body)
Sets the body of the draft. |
void |
setImages(java.util.List<Image> images)
Sets a list of images for the draft. |
void |
setModificationDate(java.util.Date modificationDate)
Sets the draft modification date. |
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties associated with this draft. |
void |
setSubject(java.lang.String subject)
Set the subject of the draft. |
| Methods inherited from interface com.jivesoftware.community.JiveObject |
|---|
getID, getObjectType |
| Method Detail |
|---|
long getUserID()
int getDraftObjectType()
long getDraftContainerObjectID()
int getDraftContainerObjectType()
java.lang.String getSubject()
void setSubject(java.lang.String subject)
subject - the subject of the draft.java.lang.String getBody()
void setBody(java.lang.String body)
body - the body of the draft.java.util.List<Image> getImages()
void setImages(java.util.List<Image> images)
images - a list of images for the draft.java.util.Date getModificationDate()
void setModificationDate(java.util.Date modificationDate)
modificationDate - the date that the draft was last modified.java.util.Map<java.lang.String,java.lang.String> getProperties()
void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties - the properties associated with this draft.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||