|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ForumsModule
Method Summary | |
---|---|
void |
addAllForums(Category source,
Category target)
DOCUMENT_ME |
Category |
createCategory(java.lang.String name)
DOCUMENT_ME |
Forum |
createForum(Category category,
java.lang.String name,
java.lang.String description)
DOCUMENT_ME |
Post |
createPost(Topic topic,
Forum forum,
Message message,
java.util.Date creationTime,
Poster poster)
DOCUMENT_ME |
Poster |
createPoster(java.lang.Integer userID)
|
Post |
createTopic(Forum forum,
Message message,
java.util.Date creationDate,
Poster poster,
int type)
DOCUMENT_ME |
void |
createWatch(Poster poster,
Forum forum,
int i)
|
void |
createWatch(Poster poster,
Topic topic)
|
java.util.List |
findAnnouncements(Forum forum)
Returns all the announcements of the forum |
java.util.List |
findCategories()
Get all the categories of forums. |
Category |
findCategoryByID(java.lang.Integer categoryID)
DOCUMENT_ME |
Post |
findFirstPost(Topic topic)
|
Forum |
findForumByID(java.lang.Integer id)
Find a forum by specifying its ID |
java.util.List |
findForums()
DOCUMENT_ME |
java.util.List |
findForumsByCategoryID(java.lang.Integer categoryID)
Get all the forums of a category |
ForumWatch |
findForumWatchByID(java.lang.Integer forumWatchID)
|
java.util.List |
findForumWatchByUser(User user)
|
Post |
findLastPost(Forum forum)
|
Post |
findLastPost(Topic topic)
|
java.util.Date |
findLastPostDateForUser(User user)
|
Post |
findPostByID(java.lang.Integer id)
DOCUMENT_ME |
Poster |
findPosterByUserID(java.lang.Integer userID)
DOCUMENT_ME |
java.util.List |
findPostsByTopicIDAsc(java.lang.Integer topicID,
int start,
int limit)
DOCUMENT_ME |
java.util.List |
findPostsByTopicIDDesc(java.lang.Integer topicID,
int start,
int limit)
DOCUMENT_ME |
Topic |
findTopicByID(java.lang.Integer topicID)
|
java.util.List |
findTopicsAsc(Forum forum,
int type,
int start,
int perPage)
Returns some topics of a forum that are not of a certain type The topics are ordered by creation date from oldest to newest |
java.util.List |
findTopicsBefore(Forum forum,
int type,
int start,
int perPage,
java.util.Date date)
DOCUMENT_ME |
java.util.List |
findTopicsDesc(Forum forum,
int type,
int start,
int perPage)
Returns some topics of a forum that are not of a certain type The topics are ordered by creation date from newest to oldest |
TopicWatch |
findTopicWatchByID(java.lang.Integer topicWatchID)
|
void |
removeCategory(Category category)
DOCUMENT_ME |
void |
removeForum(Forum forum)
DOCUMENT_ME |
void |
removePost(Post post)
Delete a post |
void |
removeTopic(Topic topic)
Delete a topic |
void |
removeWatch(Watch watch)
|
Method Detail |
---|
java.util.List findAnnouncements(Forum forum) throws ModuleException
forum
- Forum in which we want to search for the announcements
ModuleException
- Throws an exception if unable to find the announcements.java.util.List findTopicsAsc(Forum forum, int type, int start, int perPage) throws ModuleException
forum
- Forum in which we want to search for topicstype
- Type to avoidstart
- Index for fetching resultperPage
- Number of result to return
ModuleException
- Throws an excpetion if unable to find the topics.java.util.List findTopicsDesc(Forum forum, int type, int start, int perPage) throws ModuleException
forum
- Forum in which we want to search for topicstype
- Type to avoidstart
- Index for fetching resultperPage
- Number of result to return
ModuleException
- Throws an excpetion if unable to find the topics.java.util.List findTopicsBefore(Forum forum, int type, int start, int perPage, java.util.Date date) throws ModuleException
forum
- DOCUMENT_MEtype
- DOCUMENT_MEstart
- DOCUMENT_MEperPage
- DOCUMENT_MEdate
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEForum findForumByID(java.lang.Integer id) throws ModuleException
id
- ID of the forum to retrieve
ModuleException
- Throws an exception if the forum cannot be foundForum createForum(Category category, java.lang.String name, java.lang.String description) throws ModuleException
category
- DOCUMENT_MEname
- DOCUMENT_MEdescription
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEPost findPostByID(java.lang.Integer id) throws ModuleException
id
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEPoster findPosterByUserID(java.lang.Integer userID) throws ModuleException
userID
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEjava.util.List findCategories() throws ModuleException
ModuleException
java.util.List findForums() throws ModuleException
ModuleException
- DOCUMENT_MEjava.util.List findForumsByCategoryID(java.lang.Integer categoryID) throws ModuleException
categoryID
- Category of forums
ModuleException
Post createTopic(Forum forum, Message message, java.util.Date creationDate, Poster poster, int type) throws ModuleException
forum
- DOCUMENT_MEmessage
- DOCUMENT_MEcreationDate
- DOCUMENT_MEposter
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEPost createPost(Topic topic, Forum forum, Message message, java.util.Date creationTime, Poster poster) throws ModuleException
topic
- DOCUMENT_MEforum
- DOCUMENT_MEmessage
- DOCUMENT_MEcreationTime
- DOCUMENT_MEposter
- DOCUMENT_ME
ModuleException
- DOCUMENT_MECategory createCategory(java.lang.String name) throws ModuleException
name
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEvoid removeCategory(Category category) throws ModuleException
category
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEvoid removeForum(Forum forum) throws ModuleException
forum
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEvoid removePost(Post post) throws ModuleException
post
- Post to delete
ModuleException
- DOCUMENT_MEvoid removeTopic(Topic topic) throws ModuleException
topic
- Topic to delete
ModuleException
- DOCUMENT_MECategory findCategoryByID(java.lang.Integer categoryID) throws ModuleException
categoryID
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEvoid addAllForums(Category source, Category target)
source
- DOCUMENT_MEtarget
- DOCUMENT_METopic findTopicByID(java.lang.Integer topicID) throws ModuleException
topicID
-
ModuleException
java.util.List findPostsByTopicIDAsc(java.lang.Integer topicID, int start, int limit) throws ModuleException
topicID
- DOCUMENT_MEstart
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEjava.util.List findPostsByTopicIDDesc(java.lang.Integer topicID, int start, int limit) throws ModuleException
topicID
- DOCUMENT_MEstart
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEjava.util.Date findLastPostDateForUser(User user) throws ModuleException
ModuleException
Post findLastPost(Forum forum) throws ModuleException
ModuleException
Post findFirstPost(Topic topic) throws ModuleException
ModuleException
Post findLastPost(Topic topic) throws ModuleException
ModuleException
java.util.List findForumWatchByUser(User user) throws ModuleException
ModuleException
Poster createPoster(java.lang.Integer userID) throws ModuleException
ModuleException
void createWatch(Poster poster, Forum forum, int i) throws ModuleException
poster
- forum
- i
-
ModuleException
ForumWatch findForumWatchByID(java.lang.Integer forumWatchID) throws ModuleException
forumWatchID
-
ModuleException
void createWatch(Poster poster, Topic topic) throws ModuleException
poster
- topic
-
ModuleException
TopicWatch findTopicWatchByID(java.lang.Integer topicWatchID) throws ModuleException
topicWatchID
-
ModuleException
void removeWatch(Watch watch) throws ModuleException
watch
-
ModuleException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |