|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.webservices.server.AnnouncementServiceImpl
public class AnnouncementServiceImpl
| Constructor Summary | |
|---|---|
AnnouncementServiceImpl()
|
|
| Method Summary | |
|---|---|
Announcement |
createForumAnnouncement(long userID,
long forumID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate,
java.util.Date endDate)
Creates a new category or forum announcement. |
Announcement |
createForumCategoryAnnouncement(long userID,
long categoryID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate,
java.util.Date endDate)
Creates a new category announcement. |
Announcement |
createNonExpiringForumAnnouncement(long userID,
long forumID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate)
Creates a new non-expiring forum announcement. |
Announcement |
createNonExpiringForumCategoryAnnouncement(long userID,
long categoryID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate)
Creates a new non-expiring category announcement. |
Announcement |
createNonExpiringSystemAnnouncement(long userID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate)
Creates a new non-expiring system announcement. |
Announcement |
createSystemAnnouncement(long userID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate,
java.util.Date endDate)
Creates a new system announcement. |
void |
deleteAnnouncement(long announcementID)
Deletes an announcement. |
void |
editAnnouncement(Announcement announcement)
Updates an existing announcement. |
void |
expireAnnouncement(long announcementID)
Expires an announcement. |
Announcement |
getAnnouncement(long announcementID)
Returns an announcement by announcement ID. |
int |
getAnnouncementCount(int objectType,
long objectID)
Returns the count of all currently viewable announcements in a container. |
int |
getAnnouncementCount(int objectType,
long objectID,
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. |
Announcement[] |
getAnnouncements(int objectType,
long objectID)
Returns all currently viewable announcements in a container. |
Announcement[] |
getAnnouncements(int objectType,
long objectID,
java.util.Date startDate,
java.util.Date endDate)
Returns the announcements in a container that are viewable within a specified date range.If container is null than system announcements will be returned. |
int |
getRecursiveCategoryAnnouncementCount(long categoryID)
Returns the number of viewable announcements recursively using the categoryID provided. |
Announcement[] |
getRecursiveCategoryAnnouncements(long categoryID,
int startIndex,
int numResults)
Returns the viewable announcements recursively using the categoryID provided. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnouncementServiceImpl()
| Method Detail |
|---|
public Announcement createSystemAnnouncement(long userID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate,
java.util.Date endDate)
throws UserNotFoundException,
UnauthorizedException
AnnouncementService
createSystemAnnouncement in interface AnnouncementServiceuserID - the ID of the user creating the announcement.subject - the subject of the announcement.body - the body of the announcement.startDate - the start date for the announcement. Cannot be null.endDate - the end date for the announcement. Cannot be null.
UnauthorizedException - if not allowed to create a system annoucement.
UserNotFoundException
public Announcement createNonExpiringSystemAnnouncement(long userID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate)
throws UserNotFoundException,
UnauthorizedException
AnnouncementService
createNonExpiringSystemAnnouncement in interface AnnouncementServiceuserID - the ID of the user creating the announcement.subject - the subject of the announcement.body - the body of the announcement.startDate - the start date for the announcement. Cannot be null.
UnauthorizedException - if not allowed to create a system annoucement.
UserNotFoundException
public Announcement createForumAnnouncement(long userID,
long forumID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate,
java.util.Date endDate)
throws ForumNotFoundException,
UserNotFoundException,
UnauthorizedException
AnnouncementService
createForumAnnouncement in interface AnnouncementServiceuserID - the user ID creating the announcement.subject - the subject of the announcement.body - the body of the announcement.startDate - the start date for the announcement. Cannot be null.endDate - the end date for the announcement. Cannot be null.
ForumNotFoundException - if the forum is not found.
UnauthorizedException - if not allowed to create a system annoucement.
UserNotFoundException
public Announcement createNonExpiringForumAnnouncement(long userID,
long forumID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate)
throws UserNotFoundException,
ForumNotFoundException,
UnauthorizedException
AnnouncementService
createNonExpiringForumAnnouncement in interface AnnouncementServiceuserID - the user ID creating the announcement.subject - the subject of the announcement.body - the body of the announcement.startDate - the start date for the announcement. Cannot be null.
ForumNotFoundException - if the forum is not found.
UnauthorizedException - if not allowed to create a system annoucement.
UserNotFoundException
public Announcement createForumCategoryAnnouncement(long userID,
long categoryID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate,
java.util.Date endDate)
throws UserNotFoundException,
ForumCategoryNotFoundException,
UnauthorizedException
AnnouncementService
createForumCategoryAnnouncement in interface AnnouncementServiceuserID - the user ID creating the announcement.subject - the subject of the announcement.body - the body of the announcement.startDate - the start date for the announcement. Cannot be null.endDate - the end date for the announcement. Cannot be null.
ForumCategoryNotFoundException - if the category is not found.
UnauthorizedException - if not allowed to create a system annoucement.
UserNotFoundException
public Announcement createNonExpiringForumCategoryAnnouncement(long userID,
long categoryID,
java.lang.String subject,
java.lang.String body,
java.util.Date startDate)
throws UserNotFoundException,
ForumCategoryNotFoundException,
UnauthorizedException
AnnouncementService
createNonExpiringForumCategoryAnnouncement in interface AnnouncementServiceuserID - the user ID creating the announcement.subject - the subject of the announcement.body - the body of the announcement.startDate - the start date for the announcement. Cannot be null.
ForumCategoryNotFoundException - if the category is not found.
UnauthorizedException - if not allowed to create a system annoucement.
UserNotFoundException
public Announcement getAnnouncement(long announcementID)
throws AnnouncementNotFoundException,
UnauthorizedException
AnnouncementService
getAnnouncement in interface AnnouncementServiceannouncementID - 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.
public void editAnnouncement(Announcement announcement)
throws AnnouncementNotFoundException
AnnouncementService
editAnnouncement in interface AnnouncementServiceannouncement - the announcement to update.
AnnouncementNotFoundException
public int getAnnouncementCount(int objectType,
long objectID)
throws ForumNotFoundException,
ForumCategoryNotFoundException
AnnouncementService
getAnnouncementCount in interface AnnouncementServiceobjectType - a forum, category, or -1 for system announcements.objectID - an ID of a forums, category, or -1 for system announcmenents.
ForumNotFoundException
ForumCategoryNotFoundException
public int getAnnouncementCount(int objectType,
long objectID,
java.util.Date startDate,
java.util.Date endDate)
throws ForumNotFoundException,
ForumCategoryNotFoundException
AnnouncementService
getAnnouncementCount in interface AnnouncementServiceobjectType - a forum, category, or -1 for system announcements.objectID - an ID of a forums, category, or -1 for system announcmenents.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.
ForumNotFoundException
ForumCategoryNotFoundException
public Announcement[] getAnnouncements(int objectType,
long objectID)
throws ForumNotFoundException,
ForumCategoryNotFoundException
AnnouncementService
getAnnouncements in interface AnnouncementServiceobjectType - a forum, category, or -1 for system announcements.objectID - an ID of a forums, category, or -1 for system announcmenents.
ForumNotFoundException
ForumCategoryNotFoundException
public Announcement[] getAnnouncements(int objectType,
long objectID,
java.util.Date startDate,
java.util.Date endDate)
throws ForumNotFoundException,
ForumCategoryNotFoundException
AnnouncementService
getAnnouncements in interface AnnouncementServiceobjectType - a forum, category, or -1 for system announcements.objectID - an ID of a forums, category, or -1 for system announcmenents.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.
ForumNotFoundException
ForumCategoryNotFoundException
public int getRecursiveCategoryAnnouncementCount(long categoryID)
throws ForumCategoryNotFoundException
AnnouncementService
getRecursiveCategoryAnnouncementCount in interface AnnouncementServicecategoryID - the category ID, or -1 to start with System Announcements
ForumCategoryNotFoundException - if the category is not found.
public Announcement[] getRecursiveCategoryAnnouncements(long categoryID,
int startIndex,
int numResults)
throws ForumCategoryNotFoundException
AnnouncementService
getRecursiveCategoryAnnouncements in interface AnnouncementServicecategoryID - the category ID, or -1 to start with System AnnouncementsstartIndex - the 0 based index to start at.numResults - the number of results to returned, or Integer.MAX_VALUE for all results.
ForumCategoryNotFoundException - if the category is not found.
public void deleteAnnouncement(long announcementID)
throws UnauthorizedException,
AnnouncementNotFoundException
AnnouncementService
deleteAnnouncement in interface AnnouncementServiceannouncementID - the ID of the announcement to delete.
UnauthorizedException - if not allowed to delete the announcement.
AnnouncementNotFoundException
public void expireAnnouncement(long announcementID)
throws UnauthorizedException,
AnnouncementNotFoundException
AnnouncementService
expireAnnouncement in interface AnnouncementServiceannouncementID - the ID of the announcement to delete.
UnauthorizedException - if not allowed to delete the announcement.
AnnouncementNotFoundException
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||