|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Announcement
Alerts users to important information. Announcements belong to either communities or the system. Each announement has an optional start date and end date; outside of those dates, the announcement will not be displayed to end users.
Each announcement can have an arbitrary number of extended properties, which allow extra data about the announcement to be stored.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.jivesoftware.community.JiveContentObject |
|---|
JiveContentObject.Field, JiveContentObject.Status |
| Method Summary | |
|---|---|
void |
deleteAttachment(Attachment attachment)
Deletes an attachment that belongs to the announcement. |
int |
getAttachmentCount()
Returns the number of attachments the announcement has. |
JiveIterator<Attachment> |
getAttachments()
Returns an Iterable for all the attachments of the message. |
Date |
getEndDate()
Returns the date when the announcement should not longer be visible. |
long |
getObjectID()
|
Map<String,String> |
getProperties()
Retrieve a map of all the extended properties for the announcement. |
Date |
getStartDate()
Returns the date when the announcement should first be visible. |
String |
getSubject()
Returns the announcement subject. |
String |
getUnfilteredSubject()
Returns the annoucenment subject, bypassing any active filters. |
User |
getUser()
Returns the User that is the author of the announcemnt. |
void |
setBody(Document body)
Sets the body of this announcement. |
void |
setEndDate(Date endDate)
Sets the date when the announcement should not longer be visible. |
void |
setProperties(Map<String,String> properties)
Set the properties for the announcement. |
void |
setStartDate(Date startDate)
Sets the start date for when the announcement should first be visible. |
void |
setStatus(JiveContentObject.Status status)
Returns the visibility state of the object. |
void |
setSubject(String subject)
Sets the announcement subject. |
| Methods inherited from interface com.jivesoftware.community.JiveContentObject |
|---|
getBody, getContainerID, getContainerType, getCreationDate, getIndexContent, getModificationDate, getPlainBody, getPlainSubject, getStatus |
| Methods inherited from interface com.jivesoftware.community.JiveObject |
|---|
getID, getObjectType |
| Method Detail |
|---|
User getUser()
getUser in interface JiveContentObjectDate getStartDate()
void setStartDate(Date startDate)
throws UnauthorizedException
startDate - the date the announcement should first be visible.
UnauthorizedException - if not allowed to set the start date.Date getEndDate()
void setEndDate(Date endDate)
throws UnauthorizedException
endDate - the date when the announcement is no longer visible.
UnauthorizedException - if not allowed to set the end date.String getSubject()
getSubject in interface JiveContentObject
void setSubject(String subject)
throws UnauthorizedException
subject - the subject.
UnauthorizedException - if not allowed to set the subject.String getUnfilteredSubject()
Unfiltered content is necessary for a few reasons. One is when saving content to another persistence mechanism such as an XML format.
getUnfilteredSubject in interface JiveContentObject
void setBody(Document body)
throws UnauthorizedException
body - the body.
UnauthorizedException - if not allowed to set the body.int getAttachmentCount()
void deleteAttachment(Attachment attachment)
throws AttachmentException,
UnauthorizedException
attachment - the attachment to delete.
IllegalArgumentException - if the attachment doesn't belong to the announcement.
UnauthorizedException - if not authorized to delete the attachment.
AttachmentException - if there was an error deleting the attachment.JiveIterator<Attachment> getAttachments()
AttachmentMap<String,String> getProperties()
If the user is not authorized to modify the announcement any method which modifies the map will fail with a UnsupportedOperationException;
void setProperties(Map<String,String> properties)
properties - long getObjectID()
void setStatus(JiveContentObject.Status status)
throws UnauthorizedException
status -
UnauthorizedException
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||