|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.portal.common.system.AbstractJBossService org.jboss.portal.core.modules.AbstractModule org.jboss.portlet.forums.impl.ForumsModuleImpl
Field Summary |
Fields inherited from class org.jboss.portal.core.modules.AbstractModule |
JNDIName |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
ForumsModuleImpl()
|
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 creationDate,
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 mode)
|
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 id)
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 id)
|
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)
|
void |
setHibernate(HibernateProvider hibernate)
|
protected void |
startService()
|
Methods inherited from class org.jboss.portal.core.modules.AbstractModule |
getJNDIName, setJNDIName, stopService |
Methods inherited from class org.jboss.portal.common.system.AbstractJBossService |
create, destroy, getState, getStateString, start, stop |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ForumsModuleImpl()
Method Detail |
protected void startService() throws java.lang.Exception
startService
in class AbstractModule
java.lang.Exception
public HibernateProvider getHibernate()
getHibernate
in interface ForumsModule
public void setHibernate(HibernateProvider hibernate)
public int getFloodInterval()
getFloodInterval
in interface ForumsModule
public void setFloodInterval(int floodInterval)
setFloodInterval
in interface ForumsModule
public java.lang.String getFromAddress()
getFromAddress
in interface ForumsModule
public void setFromAddress(java.lang.String fromAddress)
setFromAddress
in interface ForumsModule
public Forum findForumById(java.lang.Integer id) throws ModuleException
ForumsModule
findForumById
in interface ForumsModule
id
- ID of the forum to retrieve
ModuleException
- Throws an exception if the forum cannot be foundpublic Category findCategoryById(java.lang.Integer id) throws ModuleException
ForumsModule
findCategoryById
in interface ForumsModule
id
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Poster findPosterByUserId(java.lang.String userId) throws ModuleException
ForumsModule
findPosterByUserId
in interface ForumsModule
userId
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Poster createPoster(java.lang.String userId) throws ModuleException
createPoster
in interface ForumsModule
ModuleException
public java.util.List findCategories() throws ModuleException
ForumsModule
findCategories
in interface ForumsModule
ModuleException
public java.util.List findForums() throws ModuleException
ForumsModule
findForums
in interface ForumsModule
ModuleException
- DOCUMENT_MEpublic java.util.List findForumsByCategoryId(java.lang.Integer categoryId) throws ModuleException
ForumsModule
findForumsByCategoryId
in interface ForumsModule
categoryId
- Category of forums
ModuleException
public java.util.List findAnnouncements(Forum forum) throws ModuleException
ForumsModule
findAnnouncements
in interface ForumsModule
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
ForumsModule
findTopics
in interface ForumsModule
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
ForumsModule
findTopicsAsc
in interface ForumsModule
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
ForumsModule
findTopicsDesc
in interface ForumsModule
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 findTopicsBefore(Forum forum, int type, int start, int perPage, java.util.Date date) throws ModuleException
ForumsModule
findTopicsBefore
in interface ForumsModule
forum
- DOCUMENT_MEtype
- DOCUMENT_MEstart
- DOCUMENT_MEperPage
- DOCUMENT_MEdate
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findTopicsHot(int replies, int limit) throws ModuleException
ForumsModule
findTopicsHot
in interface ForumsModule
replies
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findTopicsByLatestPosts(int limit) throws ModuleException
ForumsModule
findTopicsByLatestPosts
in interface ForumsModule
limit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findTopicsHottest(java.util.Date after, int limit) throws ModuleException
ForumsModule
findTopicsHottest
in interface ForumsModule
after
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findTopicsMostViewed(java.util.Date after, int limit) throws ModuleException
ForumsModule
findTopicsMostViewed
in interface ForumsModule
after
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Post createTopic(Forum forum, Message message, java.util.Date creationDate, Poster poster, Poll poll, java.util.List attachments, int type) throws ModuleException
ForumsModule
createTopic
in interface ForumsModule
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
ForumsModule
createTopic
in interface ForumsModule
forum
- DOCUMENT_MEuserId
- DOCUMENT_MEsubject
- DOCUMENT_MEtype
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Post createPost(Topic topic, Forum forum, Message message, java.util.Date creationDate, Poster poster, java.util.List attachments) throws ModuleException
ForumsModule
createPost
in interface ForumsModule
topic
- DOCUMENT_MEforum
- DOCUMENT_MEmessage
- DOCUMENT_MEcreationDate
- DOCUMENT_MEposter
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Poll addPollToTopic(Topic topic, Poll poll) throws ModuleException
ForumsModule
addPollToTopic
in interface ForumsModule
topic
- DOCUMENT_MEpoll
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Category createCategory(java.lang.String name) throws ModuleException
ForumsModule
createCategory
in interface ForumsModule
name
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic void removeCategory(Category category) throws ModuleException
ForumsModule
removeCategory
in interface ForumsModule
category
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic void removeForum(Forum forum) throws ModuleException
ForumsModule
removeForum
in interface ForumsModule
forum
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic void removePost(Post post) throws ModuleException
ForumsModule
removePost
in interface ForumsModule
post
- Post to delete
ModuleException
- DOCUMENT_MEpublic void removePollInTopic(Topic topic) throws ModuleException
ForumsModule
removePollInTopic
in interface ForumsModule
topic
- Post to delete
ModuleException
- DOCUMENT_MEpublic void removeTopic(Topic topic) throws ModuleException
ForumsModule
removeTopic
in interface ForumsModule
topic
- Topic to delete
ModuleException
- DOCUMENT_MEpublic Forum createForum(Category category, java.lang.String name, java.lang.String description) throws ModuleException
ForumsModule
createForum
in interface ForumsModule
category
- DOCUMENT_MEname
- DOCUMENT_MEdescription
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Topic findTopicById(java.lang.Integer id) throws ModuleException
findTopicById
in interface ForumsModule
id
-
ModuleException
public java.util.List findTopics(Forum forum) throws ModuleException
ForumsModule
findTopics
in interface ForumsModule
forum
- Forum in which we want to search for topics
ModuleException
- Throws an excpetion if unable to find the topics.public java.util.List findPosts() throws ModuleException
ForumsModule
findPosts
in interface ForumsModule
ModuleException
- DOCUMENT_MEpublic Post findPostById(java.lang.Integer id) throws ModuleException
ForumsModule
findPostById
in interface ForumsModule
id
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic Attachment findFindAttachmentById(java.lang.Integer attachID) throws ModuleException
findFindAttachmentById
in interface ForumsModule
ModuleException
public java.util.List findPostsByTopicId(java.lang.Integer topicId) throws ModuleException
ForumsModule
findPostsByTopicId
in interface ForumsModule
topicId
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic void addAllForums(Category source, Category target)
ForumsModule
addAllForums
in interface ForumsModule
source
- DOCUMENT_MEtarget
- DOCUMENT_MEpublic java.util.List findPostsByTopicIdAsc(java.lang.Integer topicId, int start, int limit) throws ModuleException
ForumsModule
findPostsByTopicIdAsc
in interface ForumsModule
topicId
- DOCUMENT_MEstart
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.List findPostsByTopicIdDesc(java.lang.Integer topicId, int start, int limit) throws ModuleException
ForumsModule
findPostsByTopicIdDesc
in interface ForumsModule
topicId
- DOCUMENT_MEstart
- DOCUMENT_MElimit
- DOCUMENT_ME
ModuleException
- DOCUMENT_MEpublic java.util.Date findLastPostDateForUser(User user) throws ModuleException
findLastPostDateForUser
in interface ForumsModule
ModuleException
public Post findLastPost(Forum forum) throws ModuleException
findLastPost
in interface ForumsModule
ModuleException
public Post findFirstPost(Topic topic) throws ModuleException
findFirstPost
in interface ForumsModule
ModuleException
public Post findLastPost(Topic topic) throws ModuleException
findLastPost
in interface ForumsModule
ModuleException
public java.util.List findForumWatchByUser(User user) throws ModuleException
findForumWatchByUser
in interface ForumsModule
ModuleException
public void createWatch(Poster poster, Forum forum, int mode) throws ModuleException
createWatch
in interface ForumsModule
poster
- forum
- mode
-
ModuleException
public void removeWatch(Watch watch) throws ModuleException
removeWatch
in interface ForumsModule
watch
-
ModuleException
public ForumWatch findForumWatchById(java.lang.Integer forumWatchId) throws ModuleException
findForumWatchById
in interface ForumsModule
forumWatchId
-
ModuleException
public void createWatch(Poster poster, Topic topic) throws ModuleException
createWatch
in interface ForumsModule
poster
- topic
-
ModuleException
public TopicWatch findTopicWatchById(java.lang.Integer topicWatchId) throws ModuleException
findTopicWatchById
in interface ForumsModule
topicWatchId
-
ModuleException
public Result invoke(ActionCommand cmd) throws CommandException
invoke
in interface ForumsModule
cmd
-
CommandException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |