|
Clearspace API (2.5.18) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnnouncementManager
Manages announcements, including viewing, creating, and deleting them.
Announcement| Method Summary | |
|---|---|
void |
addAnnouncement(Announcement announcement)
Adds an an announcement to the database. |
Announcement |
createAnnouncement(User user)
Creates a new system announcement. |
Announcement |
createAnnouncement(User user,
JiveContainer jiveContainer)
Creates a new community announcement. |
void |
deleteAnnouncement(Announcement announcement)
Deletes an announcement. |
void |
deleteUserAnnouncements(User user)
Deletes all of a user's announcements. |
Announcement |
getAnnouncement(long announcementID)
Returns an announcement by announcement ID. |
int |
getAnnouncementCount(JiveContainer jiveContainer)
Returns the count of all currently viewable announcements in a container. |
int |
getAnnouncementCount(JiveContainer jiveContainer,
boolean recursive)
Returns the count of all currently viewable announcements in a container. |
int |
getAnnouncementCount(JiveContainer jiveContainer,
Date startDate,
Date endDate)
Returns the count of all announcements in a container that are viewable within the specified date range. |
JiveIterator<Announcement> |
getAnnouncements(JiveContainer jiveContainer)
Returns all currently viewable announcements in a container. |
JiveIterator<Announcement> |
getAnnouncements(JiveContainer jiveContainer,
Date startDate,
Date endDate)
Returns the announcements in a container that are viewable within a specified date range. |
void |
updateAnnouncement(Announcement announcement)
Updates an announcement to the database. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
Announcement createAnnouncement(User user)
throws UnauthorizedException
addAnnouncement(Announcement) method.
user - the user creating the announcement.
UnauthorizedException - if not allowed to create a system annoucement.
Announcement createAnnouncement(User user,
JiveContainer jiveContainer)
throws UnauthorizedException
addAnnouncement(Announcement) method.
user - the user creating the announcement.jiveContainer - the jiveContainer to add the announcement to.
UnauthorizedException - if not allowed to create a system annoucement.
void addAnnouncement(Announcement announcement)
throws RejectedException,
UnauthorizedException
announcement - the announcement to add to the database.
RejectedException - if one of the installed interceptors prevents the
announcement from being posted.
UnauthorizedException - if not allowed to create a system annoucement.
IllegalStateException - if the announcement has already been added.
void updateAnnouncement(Announcement announcement)
throws UnauthorizedException
announcement - the announcement to updated in the database.
UnauthorizedException - if not allowed to create a system annoucement.
IllegalStateException - if the announcement has already been added.
Announcement getAnnouncement(long announcementID)
throws AnnouncementNotFoundException,
UnauthorizedException
announcementID - the ID of the announcement to return.
AnnouncementNotFoundException - if the announcement could not be loaded
or does not exist.
UnauthorizedException - if not allowed to get the announcement.int getAnnouncementCount(JiveContainer jiveContainer)
jiveContainer - a jiveContainer, or null for system announcements.
int getAnnouncementCount(JiveContainer jiveContainer,
boolean recursive)
jiveContainer - a jiveContainer, or null for system announcements.recursive - a flag to determine if sub communities are included in the calculation.
included.
int getAnnouncementCount(JiveContainer jiveContainer,
Date startDate,
Date endDate)
jiveContainer - a jiveContainer, or null for system announcements.startDate - the start date of announcements, or null to leave this value
unbounded.endDate - the end date of announcements, or null to leave this value
unbounded.
JiveIterator<Announcement> getAnnouncements(JiveContainer jiveContainer)
jiveContainer - a jiveObjectContainer, or null for system announcements.
JiveIterator<Announcement> getAnnouncements(JiveContainer jiveContainer,
Date startDate,
Date endDate)
jiveContainer - a jiveContainer, or null for system announcements.startDate - the start date of announcements, or null to leave this value
unbounded.endDate - the end date of announcements, or null to leave this value
unbounded.
void deleteAnnouncement(Announcement announcement)
throws UnauthorizedException
announcement - the announcement to delete.
UnauthorizedException - if not allowed to delete the announcement.
void deleteUserAnnouncements(User user)
throws UnauthorizedException
user - the author of the announcements being deleted.
UnauthorizedException - if not allowed to delete the announcements.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||