|
Jive API (3.0.13) 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 | |
|---|---|
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. |
List<Image> |
getImages()
Returns a list of images for the draft, or an empty list if no images are associated with the draft. |
Date |
getModificationDate()
Returns the date that the draft was last modified. |
Map<String,String> |
getProperties()
Returns a map of properties associated with this draft. |
String |
getSubject()
Returns the subject of the draft. |
long |
getUserID()
Returns the ID of the user that authored this draft. |
void |
setBody(String body)
Sets the body of the draft. |
void |
setImages(List<Image> images)
Sets a list of images for the draft. |
void |
setModificationDate(Date modificationDate)
Sets the draft modification date. |
void |
setProperties(Map<String,String> properties)
Sets the properties associated with this draft. |
void |
setSubject(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()
String getSubject()
void setSubject(String subject)
subject - the subject of the draft.String getBody()
void setBody(String body)
body - the body of the draft.List<Image> getImages()
void setImages(List<Image> images)
images - a list of images for the draft.Date getModificationDate()
void setModificationDate(Date modificationDate)
modificationDate - the date that the draft was last modified.Map<String,String> getProperties()
void setProperties(Map<String,String> properties)
properties - the properties associated with this draft.
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||