|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addAllForums(Category source,
Category target)
DOCUMENT_ME |
Poll |
addPollToTopic(Topic topic,
Poll poll)
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,
java.util.List attachments)
DOCUMENT_ME |
Poster |
createPoster(java.lang.String userID)
|
Post |
createTopic(Forum forum,
Message message,
java.util.Date creationDate,
Poster poster,
Poll poll,
java.util.List attachments,
int type)
DOCUMENT_ME |
Topic |
createTopic(Forum forum,
java.lang.String userID,
java.lang.String subject,
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 |
Attachment |
findFindAttachmentById(java.lang.Integer attachID)
|
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.String userID)
DOCUMENT_ME |
java.util.List |
findPosts()
DOCUMENT_ME |
java.util.List |
findPostsByTopicId(java.lang.Integer topicID)
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 |
findTopics()
Returns some topics of a forum that are not of a certain type |
java.util.List |
findTopics(Forum forum)
* |
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 |
findTopicsByLatestPosts(int limit)
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 |
java.util.List |
findTopicsHot(int replies,
int limit)
DOCUMENT_ME |
java.util.List |
findTopicsHottest(java.util.Date after,
int limit)
DOCUMENT_ME |
java.util.List |
findTopicsMostViewed(java.util.Date after,
int limit)
DOCUMENT_ME |
TopicWatch |
findTopicWatchById(java.lang.Integer topicWatchID)
|
int |
getFloodInterval()
|
java.lang.String |
getFromAddress()
|
HibernateProvider |
getHibernate()
|
Result |
invoke(ActionCommand cmd)
|
void |
removeCategory(Category category)
DOCUMENT_ME |
void |
removeForum(Forum forum)
DOCUMENT_ME |
void |
removePollInTopic(Topic topic)
Delete a post |
void |
removePost(Post post)
Delete a post |
void |
removeTopic(Topic topic)
Delete a topic |
void |
removeWatch(Watch watch)
|
void |
setFloodInterval(int floodInterval)
|
void |
setFromAddress(java.lang.String fromAddress)
|
Method Detail |
public HibernateProvider getHibernate()
public int getFloodInterval()
public void setFloodInterval(int floodInterval)
public java.lang.String getFromAddress()
public void setFromAddress(java.lang.String fromAddress)
public 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.public java.util.List findTopics() throws ModuleException
ModuleException
- Throws an excpetion if unable to find the topics.public 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.public 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.public java.util.List findTopics(Forum forum) throws ModuleException
forum
- Forum in which we want to search for topics
ModuleException
- Throws an excpetion if unable to find the topics.public 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_MEpublic java.util.List findTopicsHot(int replies, int limit) throws ModuleException
replies
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findTopicsByLatestPosts(int limit) throws ModuleException
limit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findTopicsHottest(java.util.Date after, int limit) throws ModuleException
after
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findTopicsMostViewed(java.util.Date after, int limit) throws ModuleException
after
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Forum findForumById(java.lang.Integer id) throws ModuleException
id
- ID of the forum to retrieve
ModuleException
- Throws an exception if the forum cannot be foundpublic Forum createForum(Category category, java.lang.String name, java.lang.String description) throws ModuleException
category
- DOCUMENT_MEname
- DOCUMENT_MEdescription
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findPosts() throws ModuleException
ModuleException
- DOCUMENT_MEpublic Post findPostById(java.lang.Integer id) throws ModuleException
id
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Poster findPosterByUserId(java.lang.String userID) throws ModuleException
userID
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findCategories() throws ModuleException
ModuleException
public java.util.List findForums() throws ModuleException
ModuleException
- DOCUMENT_MEpublic java.util.List findForumsByCategoryId(java.lang.Integer categoryID) throws ModuleException
categoryID
- Category of forums
ModuleException
public Post createTopic(Forum forum, Message message, java.util.Date creationDate, Poster poster, Poll poll, java.util.List attachments, int type) throws ModuleException
forum
- DOCUMENT_MEmessage
- DOCUMENT_MEcreationDate
- DOCUMENT_MEposter
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Topic createTopic(Forum forum, java.lang.String userID, java.lang.String subject, int type) throws ModuleException
forum
- DOCUMENT_MEuserID
- DOCUMENT_MEsubject
- DOCUMENT_MEtype
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Post createPost(Topic topic, Forum forum, Message message, java.util.Date creationTime, Poster poster, java.util.List attachments) throws ModuleException
topic
- DOCUMENT_MEforum
- DOCUMENT_MEmessage
- DOCUMENT_MEcreationTime
- DOCUMENT_MEposter
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Poll addPollToTopic(Topic topic, Poll poll) throws ModuleException
topic
- DOCUMENT_MEpoll
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Category createCategory(java.lang.String name) throws ModuleException
name
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic void removeCategory(Category category) throws ModuleException
category
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic void removeForum(Forum forum) throws ModuleException
forum
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic void removePost(Post post) throws ModuleException
post
- Post to delete
ModuleException
- DOCUMENT_MEpublic void removePollInTopic(Topic topic) throws ModuleException
topic
- Post to delete
ModuleException
- DOCUMENT_MEpublic void removeTopic(Topic topic) throws ModuleException
topic
- Topic to delete
ModuleException
- DOCUMENT_MEpublic Category findCategoryById(java.lang.Integer categoryID) throws ModuleException
categoryID
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic void addAllForums(Category source, Category target)
source
- DOCUMENT_MEtarget
- DOCUMENT_MEpublic Topic findTopicById(java.lang.Integer topicID) throws ModuleException
topicID
-
ModuleException
public java.util.List findPostsByTopicId(java.lang.Integer topicID) throws ModuleException
topicID
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findPostsByTopicIdAsc(java.lang.Integer topicID, int start, int limit) throws ModuleException
topicID
- DOCUMENT_MEstart
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findPostsByTopicIdDesc(java.lang.Integer topicID, int start, int limit) throws ModuleException
topicID
- DOCUMENT_MEstart
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.Date findLastPostDateForUser(User user) throws ModuleException
ModuleException
public Post findLastPost(Forum forum) throws ModuleException
ModuleException
public Post findFirstPost(Topic topic) throws ModuleException
ModuleException
public Post findLastPost(Topic topic) throws ModuleException
ModuleException
public java.util.List findForumWatchByUser(User user) throws ModuleException
ModuleException
public Attachment findFindAttachmentById(java.lang.Integer attachID) throws ModuleException
ModuleException
public Poster createPoster(java.lang.String userID) throws ModuleException
ModuleException
public void createWatch(Poster poster, Forum forum, int i) throws ModuleException
poster
- forum
- i
-
ModuleException
public ForumWatch findForumWatchById(java.lang.Integer forumWatchID) throws ModuleException
forumWatchID
-
ModuleException
public void createWatch(Poster poster, Topic topic) throws ModuleException
poster
- topic
-
ModuleException
public TopicWatch findTopicWatchById(java.lang.Integer topicWatchID) throws ModuleException
topicWatchID
-
ModuleException
public void removeWatch(Watch watch) throws ModuleException
watch
-
ModuleException
public Result invoke(ActionCommand cmd) throws CommandException
cmd
-
CommandException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |