|
Clearspace API (1.7.0) 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,
Community community)
Creates a new community announcement. |
void |
deleteAnnouncement(Announcement announcement)
Deletes an announcement. |
Announcement |
getAnnouncement(long announcementID)
Returns an announcement by announcement ID. |
int |
getAnnouncementCount(java.lang.Object container)
Returns the count of all currently viewable announcements in a container. |
int |
getAnnouncementCount(java.lang.Object container,
java.util.Date startDate,
java.util.Date endDate)
Returns the count of all announcements in a container that are viewable within the specified date range. |
JiveIterator<Announcement> |
getAnnouncements(java.lang.Object container)
Returns all currently viewable announcements in a container. |
JiveIterator<Announcement> |
getAnnouncements(java.lang.Object container,
java.util.Date startDate,
java.util.Date endDate)
Returns the announcements in a container that are viewable within a specified date range. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy, initialize |
| 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,
Community community)
throws UnauthorizedException
addAnnouncement(Announcement) method.
user - the user creating the announcement.community - the community 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.
java.lang.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(java.lang.Object container)
container - a community, or null for system announcements.
int getAnnouncementCount(java.lang.Object container,
java.util.Date startDate,
java.util.Date endDate)
container - a community, 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(java.lang.Object container)
container - a community, or null for system announcements.
JiveIterator<Announcement> getAnnouncements(java.lang.Object container,
java.util.Date startDate,
java.util.Date endDate)
container - a community, 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.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||