[jboss-svn-commits] JBL Code SVN: r16871 - labs/jbossforums/branches/multipleforums110P26/forums/src/main/org/jboss/portlet/forums.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Nov 27 19:05:14 EST 2007
Author: sviluppatorefico
Date: 2007-11-27 19:05:14 -0500 (Tue, 27 Nov 2007)
New Revision: 16871
Modified:
labs/jbossforums/branches/multipleforums110P26/forums/src/main/org/jboss/portlet/forums/ForumsModule.java
Log:
[JBFORUMS-245] added multiple forums updates
Modified: labs/jbossforums/branches/multipleforums110P26/forums/src/main/org/jboss/portlet/forums/ForumsModule.java
===================================================================
--- labs/jbossforums/branches/multipleforums110P26/forums/src/main/org/jboss/portlet/forums/ForumsModule.java 2007-11-27 23:55:49 UTC (rev 16870)
+++ labs/jbossforums/branches/multipleforums110P26/forums/src/main/org/jboss/portlet/forums/ForumsModule.java 2007-11-28 00:05:14 UTC (rev 16871)
@@ -42,16 +42,17 @@
*/
void setFloodInterval(int floodInterval);
+
/**
- *
- */
+ * *
+ * */
String getGuestUserName();
/**
- *
- */
+ * *
+ * */
void setGuestUserName(String guestUserName);
-
+
/**
*
*/
@@ -78,7 +79,10 @@
* @return List of topics
* @throws ModuleException Throws an excpetion if unable to find the topics.
*/
- List findTopics()
+ /* Luca Stancapiano - findTopics method need to a forumInstanceId argument
+ to take only topics of a specific forum instance
+ */
+ List findTopics(Integer indexInstance)
throws ModuleException;
@@ -180,9 +184,14 @@
* @return DOCUMENT_ME
* @throws ModuleException DOCUMENT_ME
*/
- List findTopicsHot(int replies, int limit)
- throws ModuleException;
+ /* Luca Stancapiano start - findTopicsHot, findTopicsByLatestPosts,
+ findTopicsHottest, findTopicsMostViewed methods need to a forumInstanceId argument
+ to take only objects of a specific forum instance
+ */
+ List findTopicsHot(int replies, int limit, Integer indexInstance)
+ throws ModuleException;
+
/**
* DOCUMENT_ME
*
@@ -190,7 +199,7 @@
* @return DOCUMENT_ME
* @throws ModuleException DOCUMENT_ME
*/
- List findTopicsByLatestPosts(int limit)
+ List findTopicsByLatestPosts(int limit, Integer indexInstance)
throws ModuleException;
/**
@@ -201,7 +210,7 @@
* @return DOCUMENT_ME
* @throws ModuleException DOCUMENT_ME
*/
- List findTopicsHottest(Date after, int limit)
+ List findTopicsHottest(Date after, int limit, Integer indexInstance)
throws ModuleException;
/**
@@ -212,8 +221,9 @@
* @return DOCUMENT_ME
* @throws ModuleException DOCUMENT_ME
*/
- List findTopicsMostViewed(Date after, int limit)
+ List findTopicsMostViewed(Date after, int limit, Integer indexInstance)
throws ModuleException;
+ // Luca Stancapiano end
/**
@@ -256,8 +266,12 @@
* @return DOCUMENT_ME
* @throws ModuleException DOCUMENT_ME
*/
- public List findPosts() throws ModuleException;
+ /* Luca Stancapiano - findPosts method need to a forumInstanceId argument
+ to take only posts of a specific forum instance
+ */
+ public List findPosts(Integer indexInstance) throws ModuleException;
+
/**
* DOCUMENT_ME
*
@@ -284,7 +298,12 @@
* @return All the categories
* @throws ModuleException
*/
- List findCategories()
+
+ /* Luca Stancapiano start - findCategories, findCategoriesFetchForums and
+ findForums methods need to a forumInstanceId argument
+ to take only categories of a specific forum instance
+ */
+ List findCategories(Integer indexInstance)
throws ModuleException;
/**
@@ -293,8 +312,8 @@
* @return All the categories
* @throws ModuleException
*/
- List findCategoriesFetchForums()
- throws ModuleException;
+ List findCategoriesFetchForums(Integer indexInstance)
+ throws ModuleException;
/**
* DOCUMENT_ME
@@ -302,8 +321,9 @@
* @return DOCUMENT_ME
* @throws ModuleException DOCUMENT_ME
*/
- List findForums()
+ List findForums(Integer indexInstance)
throws ModuleException;
+ // Luca Stancapiano end
/**
* Get all the forums of a category
@@ -387,7 +407,10 @@
* @return DOCUMENT_ME
* @throws ModuleException DOCUMENT_ME
*/
- Category createCategory(String name)
+ /* Luca Stancapiano - createCategory method need to a forumInstanceId argument
+ to create only categories of a specific forum instance
+ */
+ Category createCategory(String name, ForumInstance forumInstance)
throws ModuleException;
/**
@@ -398,10 +421,35 @@
*/
void removeCategory(Category category)
throws ModuleException;
-
+
+ /* Luca Stancapiano start - I add createForumInstance
+ and removeForumInstance methods
+ to manage create and remove of a ForumInstance.
+ */
/**
* DOCUMENT_ME
*
+ * @param name DOCUMENT_ME
+ * @return DOCUMENT_ME
+ * @throws ModuleException DOCUMENT_ME
+ */
+ ForumInstance createForumInstance(Integer indexInstance, String name)
+ throws ModuleException;
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param forumInstance DOCUMENT_ME
+ * @throws ModuleException DOCUMENT_ME
+ */
+ void removeForumInstance(ForumInstance forumInstance)
+ throws ModuleException;
+
+ // Luca Stancapiano end
+
+ /**
+ * DOCUMENT_ME
+ *
* @param forum DOCUMENT_ME
* @throws ModuleException DOCUMENT_ME
*/
@@ -575,15 +623,30 @@
Map findLastPostsOfTopics(Collection topics) throws ModuleException;
- Map findLastPostsOfForums() throws ModuleException;
+ /* Luca Stancapiano - findLastPostsOfForums method need to a forumInstanceId argument
+ to take only posts of a specific forum instance
+ */
+ Map findLastPostsOfForums(Integer indexInstance) throws ModuleException;
- List findForumWatchByUser(User user) throws ModuleException;
+ /* Luca Stancapiano - findForumWatchByUser method need to a forumInstanceId argument
+ to take only categories of a specific forum instance
+ */
+ List findForumWatchByUser(User user, Integer indexInstance) throws ModuleException;
- List findForumWatchedByUser(User user) throws ModuleException;
+ /* Luca Stancapiano - findForumWatchedByUser method need to a forumInstanceId argument
+ to take only forums of a specific forum instance
+ */
+ List findForumWatchedByUser(User user, Integer indexInstance) throws ModuleException;
- List findTopicWatchedByUser(User user) throws ModuleException;
+ /* Luca Stancapiano - findTopicWatchedByUser method need to a forumInstanceId argument
+ to take only topics of a specific forum instance
+ */
+ List findTopicWatchedByUser(User user, Integer indexInstance) throws ModuleException;
- List findTopicWatchedByUser(User user,Date date) throws ModuleException;
+ /* Luca Stancapiano - findTopicWatchedByUser method need to a forumInstanceId argument
+ to take only topics of a specific forum instance
+ */
+ List findTopicWatchedByUser(User user,Date date, Integer indexInstance) throws ModuleException;
List findPostsFromForumAsc(Forum forum, int limit) throws ModuleException;
@@ -595,7 +658,10 @@
List findPostsFromCategoryDesc(Category category, int limit)
throws ModuleException;
- Map findTopicWatches(User user) throws ModuleException;
+ /* Luca Stancapiano - findTopicWatches method need to a forumInstanceId argument
+ to take only topics of a specific forum instance
+ */
+ Map findTopicWatches(User user, Integer indexInstance) throws ModuleException;
Attachment findFindAttachmentById(Integer attachID)
throws ModuleException;
@@ -616,7 +682,10 @@
*/
ForumWatch findForumWatchById(Integer forumWatchID) throws ModuleException;
- Map findForumWatches(User user) throws ModuleException;
+ /* Luca Stancapiano - findForumWatches method need to a forumInstanceId argument
+ to take only forums of a specific forum instance
+ */
+ Map findForumWatches(User user, Integer indexInstance) throws ModuleException;
/**
*
@@ -636,7 +705,19 @@
*/
TopicWatch findTopicWatchByUserAndTopic(User user,int topicId) throws ModuleException;
+ // Luca Stancapiano start - search method for forum instances
/**
+ * DOCUMENT_ME
+ *
+ * @param forumInstanceID DOCUMENT_ME
+ * @return DOCUMENT_ME
+ * @throws ModuleException DOCUMENT_ME
+ */
+ ForumInstance findForumInstanceById(Integer forumInstanceID)
+ throws ModuleException;
+ // Luca Stancapiano end
+
+ /**
* @param poster
* @param topic
*/
@@ -677,4 +758,4 @@
*/
public List findPostsAsc(int limit) throws ModuleException;
-}
\ No newline at end of file
+}
More information about the jboss-svn-commits
mailing list