|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 AbstractModulejava.lang.Exceptionpublic HibernateProvider getHibernate()
getHibernate in interface ForumsModulepublic void setHibernate(HibernateProvider hibernate)
public int getFloodInterval()
getFloodInterval in interface ForumsModulepublic void setFloodInterval(int floodInterval)
setFloodInterval in interface ForumsModulepublic java.lang.String getFromAddress()
getFromAddress in interface ForumsModulepublic void setFromAddress(java.lang.String fromAddress)
setFromAddress in interface ForumsModulepublic Forum findForumById(java.lang.Integer id) throws ModuleException
ForumsModule
findForumById in interface ForumsModuleid - 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 ForumsModuleid - DOCUMENT_ME
ModuleException - DOCUMENT_MEpublic Poster findPosterByUserId(java.lang.String userId) throws ModuleException
ForumsModule
findPosterByUserId in interface ForumsModuleuserId - DOCUMENT_ME
ModuleException - DOCUMENT_MEpublic Poster createPoster(java.lang.String userId) throws ModuleException
createPoster in interface ForumsModuleModuleException
public java.util.List findCategories()
throws ModuleException
ForumsModule
findCategories in interface ForumsModuleModuleException
public java.util.List findForums()
throws ModuleException
ForumsModule
findForums in interface ForumsModuleModuleException - DOCUMENT_ME
public java.util.List findForumsByCategoryId(java.lang.Integer categoryId)
throws ModuleException
ForumsModule
findForumsByCategoryId in interface ForumsModulecategoryId - Category of forums
ModuleExceptionpublic java.util.List findAnnouncements(Forum forum) throws ModuleException
ForumsModule
findAnnouncements in interface ForumsModuleforum - 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 ForumsModuleModuleException - 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 ForumsModuleforum - 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 ForumsModuleforum - 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 ForumsModuleforum - DOCUMENT_MEtype - DOCUMENT_MEstart - DOCUMENT_MEperPage - DOCUMENT_MEdate - DOCUMENT_ME
ModuleException - DOCUMENT_ME
public java.util.List findTopicsHot(int replies,
int limit)
throws ModuleException
ForumsModule
findTopicsHot in interface ForumsModulereplies - DOCUMENT_MElimit - DOCUMENT_ME
ModuleException - DOCUMENT_ME
public java.util.List findTopicsByLatestPosts(int limit)
throws ModuleException
ForumsModule
findTopicsByLatestPosts in interface ForumsModulelimit - DOCUMENT_ME
ModuleException - DOCUMENT_ME
public java.util.List findTopicsHottest(java.util.Date after,
int limit)
throws ModuleException
ForumsModule
findTopicsHottest in interface ForumsModuleafter - DOCUMENT_MElimit - DOCUMENT_ME
ModuleException - DOCUMENT_ME
public java.util.List findTopicsMostViewed(java.util.Date after,
int limit)
throws ModuleException
ForumsModule
findTopicsMostViewed in interface ForumsModuleafter - 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 ForumsModuleforum - 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 ForumsModuleforum - 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 ForumsModuletopic - 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 ForumsModuletopic - DOCUMENT_MEpoll - DOCUMENT_ME
ModuleException - DOCUMENT_MEpublic Category createCategory(java.lang.String name) throws ModuleException
ForumsModule
createCategory in interface ForumsModulename - DOCUMENT_ME
ModuleException - DOCUMENT_MEpublic void removeCategory(Category category) throws ModuleException
ForumsModule
removeCategory in interface ForumsModulecategory - DOCUMENT_ME
ModuleException - DOCUMENT_MEpublic void removeForum(Forum forum) throws ModuleException
ForumsModule
removeForum in interface ForumsModuleforum - DOCUMENT_ME
ModuleException - DOCUMENT_MEpublic void removePost(Post post) throws ModuleException
ForumsModule
removePost in interface ForumsModulepost - Post to delete
ModuleException - DOCUMENT_MEpublic void removePollInTopic(Topic topic) throws ModuleException
ForumsModule
removePollInTopic in interface ForumsModuletopic - Post to delete
ModuleException - DOCUMENT_MEpublic void removeTopic(Topic topic) throws ModuleException
ForumsModule
removeTopic in interface ForumsModuletopic - Topic to delete
ModuleException - DOCUMENT_MEpublic Forum createForum(Category category, java.lang.String name, java.lang.String description) throws ModuleException
ForumsModule
createForum in interface ForumsModulecategory - DOCUMENT_MEname - DOCUMENT_MEdescription - DOCUMENT_ME
ModuleException - DOCUMENT_MEpublic Topic findTopicById(java.lang.Integer id) throws ModuleException
findTopicById in interface ForumsModuleid -
ModuleExceptionpublic java.util.List findTopics(Forum forum) throws ModuleException
ForumsModule
findTopics in interface ForumsModuleforum - 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 ForumsModuleModuleException - DOCUMENT_MEpublic Post findPostById(java.lang.Integer id) throws ModuleException
ForumsModule
findPostById in interface ForumsModuleid - DOCUMENT_ME
ModuleException - DOCUMENT_MEpublic Attachment findFindAttachmentById(java.lang.Integer attachID) throws ModuleException
findFindAttachmentById in interface ForumsModuleModuleException
public java.util.List findPostsByTopicId(java.lang.Integer topicId)
throws ModuleException
ForumsModule
findPostsByTopicId in interface ForumsModuletopicId - DOCUMENT_ME
ModuleException - DOCUMENT_MEpublic void addAllForums(Category source, Category target)
ForumsModule
addAllForums in interface ForumsModulesource - DOCUMENT_MEtarget - DOCUMENT_ME
public java.util.List findPostsByTopicIdAsc(java.lang.Integer topicId,
int start,
int limit)
throws ModuleException
ForumsModule
findPostsByTopicIdAsc in interface ForumsModuletopicId - DOCUMENT_MEstart - DOCUMENT_MElimit - DOCUMENT_ME
ModuleException - DOCUMENT_ME
public java.util.List findPostsByTopicIdDesc(java.lang.Integer topicId,
int start,
int limit)
throws ModuleException
ForumsModule
findPostsByTopicIdDesc in interface ForumsModuletopicId - DOCUMENT_MEstart - DOCUMENT_MElimit - DOCUMENT_ME
ModuleException - DOCUMENT_MEpublic java.util.Date findLastPostDateForUser(User user) throws ModuleException
findLastPostDateForUser in interface ForumsModuleModuleExceptionpublic Post findLastPost(Forum forum) throws ModuleException
findLastPost in interface ForumsModuleModuleExceptionpublic Post findFirstPost(Topic topic) throws ModuleException
findFirstPost in interface ForumsModuleModuleExceptionpublic Post findLastPost(Topic topic) throws ModuleException
findLastPost in interface ForumsModuleModuleExceptionpublic java.util.List findForumWatchByUser(User user) throws ModuleException
findForumWatchByUser in interface ForumsModuleModuleExceptionpublic void createWatch(Poster poster, Forum forum, int mode) throws ModuleException
createWatch in interface ForumsModuleposter - forum - mode -
ModuleExceptionpublic void removeWatch(Watch watch) throws ModuleException
removeWatch in interface ForumsModulewatch -
ModuleExceptionpublic ForumWatch findForumWatchById(java.lang.Integer forumWatchId) throws ModuleException
findForumWatchById in interface ForumsModuleforumWatchId -
ModuleExceptionpublic void createWatch(Poster poster, Topic topic) throws ModuleException
createWatch in interface ForumsModuleposter - topic -
ModuleExceptionpublic TopicWatch findTopicWatchById(java.lang.Integer topicWatchId) throws ModuleException
findTopicWatchById in interface ForumsModuletopicWatchId -
ModuleExceptionpublic Result invoke(ActionCommand cmd) throws CommandException
invoke in interface ForumsModulecmd -
CommandException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||