|
Jive API (5.0.0.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PrivateMessage
Private messages are used for user to user communication.
PrivateMessageFolder,
PrivateMessageManager| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.jivesoftware.community.JiveContentObject |
|---|
JiveContentObject.Field, JiveContentObject.Status |
| Method Summary | |
|---|---|
Document |
getBody()
Returns the message body. |
Date |
getDate()
Returns the date the message was saved or sent, or null if the message hasn't been sent or saved yet. |
PrivateMessageFolder |
getFolder()
Returns the folder the private message or null if the message does not yet belong to a folder. |
long |
getID()
Returns the id of the message. |
Map<String,String> |
getProperties()
Retrieve a map of all the extended properties for the private message. |
User |
getRecipient()
Returns the user the message was sent to. |
List |
getRecipients()
Returns the list of users the message was sent to. |
User |
getSender()
Returns the user the message was sent by, or null if the message was sent by the system. |
String |
getSubject()
Returns the message subject. |
String |
getUnfilteredProperty(String name)
Returns an extended property of the private message, bypassing any filters. |
String |
getUnfilteredSubject()
Returns the message subject, bypassing any active filters. |
boolean |
isRead()
Returns true if this message has been marked as read. |
void |
setBody(Document body)
Sets the body of the message. |
void |
setRead(boolean read)
Marks this message as read or unread. |
void |
setStatus(JiveContentObject.Status status)
Sets the Status of the PrivateMessage |
void |
setSubject(String subject)
Sets the subject of the message. |
| Methods inherited from interface com.jivesoftware.community.JiveContentObject |
|---|
getContainerID, getContainerType, getCreationDate, getJiveObjectType, getModificationDate, getPlainBody, getStatus |
| Methods inherited from interface com.jivesoftware.community.UserAuthoredObject |
|---|
getAuthorIDs, getAuthors, getUser, getUserID |
| Methods inherited from interface com.jivesoftware.community.objecttype.SubjectAware |
|---|
getPlainSubject |
| Methods inherited from interface com.jivesoftware.community.JiveObject |
|---|
getObjectType |
| Method Detail |
|---|
long getID()
getID in interface JiveObjectDate getDate()
PrivateMessageFolder getFolder()
String getSubject()
getSubject in interface com.jivesoftware.community.objecttype.SubjectAwareString getUnfilteredSubject()
Unfiltered content is necessary for a few reasons. One is when saving Jive content to another persistence mechanism such as an XML format. Another is when you need to skip filter formatting, such as when a user is responding to another user's message.
getUnfilteredSubject in interface JiveContentObject
void setSubject(String subject)
throws UnauthorizedException
subject - the subject of the message.
UnauthorizedException - if not allowed to edit the message.Document getBody()
getBody in interface JiveContentObject
void setBody(Document body)
throws UnauthorizedException
body - the body of the message.
UnauthorizedException - if does not have ADMIN permissions.User getSender()
User getRecipient()
List getRecipients()
boolean isRead()
void setRead(boolean read)
read - true to mark the message as read.Map<String,String> getProperties()
If the user is not authorized to modify the private message any method which modifies the map will fail with a UnsupportedOperationException;
String getUnfilteredProperty(String name)
Because properties are not filtered before being returned, this method should be used with caution. In particular, you should avoid showing unfiltered data in an environment where embedded HTML might be interpreted.
name - the name of the property to get.
void setStatus(JiveContentObject.Status status)
Status of the PrivateMessage
status - the status.
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||