Java Doc for ForumDAO.java in  » Forum » JForum-2.1.8 » net » jforum » dao » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Forum » JForum 2.1.8 » net.jforum.dao 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.jforum.dao.ForumDAO

All known Subclasses:   net.jforum.dao.generic.GenericForumDAO,
ForumDAO
public interface ForumDAO (Code)
Model interface for net.jforum.entities.Forum . This interface defines methods which are expected to be implementd by a specific data access driver. The intention is to provide all functionality needed to update, insert, delete and select some specific data.
author:
   Rafael Steil
version:
   $Id: ForumDAO.java,v 1.12 2006/08/28 23:22:27 rafaelsteil Exp $




Method Summary
public  intaddNew(Forum forum)
     Adds a new Forum.
public  ListcheckUnreadTopics(int forumId, long lastVisit)
     Check if the forum has unread topics.
Parameters:
  forumId - The forum's id to check
Parameters:
  lastVisit - The last visit time the user has seen the forum An java.util.List instance, where each entry is anet.jforum.entities.Topic instance.
public  voiddecrementTotalTopics(int forumId, int count)
    
public  voiddelete(int forumId)
     Delete a forum.
public  intdiscoverForumId(String listEmail)
    
public  ForumStatsgetBoardStatus()
    
public  LastPostInfogetLastPostInfo(int forumId)
     Gets information about the latest message posted in some forum.
public  intgetMaxPostId(int forumId)
    
public  ListgetModeratorList(int forumId)
     Get all moderators of some forum
Parameters:
  forumId - the forum's id to inspect a list with all moderators.
public  intgetTotalMessages()
    
public  intgetTotalTopics(int forumId)
    
public  voidincrementTotalTopics(int forumId, int count)
    
public  booleanisUserSubscribed(int forumId, int userId)
     Return the subscrition status of the user on the forum.
public  voidmoveTopics(String[] topics, int fromForumId, int toForumId)
    
public  ListnotifyUsers(Forum forum)
     Get the users to notify
Parameters:
  forum - The forum ArrayList of User objects.
public  voidremoveSubscription(int forumId, int userId)
    
public  voidremoveSubscriptionByForum(int forumId)
    
public  ListselectAll()
     Selects all forums data from the database.
public  ForumselectById(int forumId)
     Gets a specific Forum.
public  voidsetLastPost(int forumId, int postId)
    
public  voidsetModerated(int categoryId, boolean status)
     Enable or disabled moderation for the forum.
public  ForumsetOrderDown(Forum forum, Forum related)
     Sets the forum's order one level down. For more information, take a look at @link #setOrderUp method.
public  ForumsetOrderUp(Forum forum, Forum related)
     Sets the forum's order one level up.
public  voidsubscribeUser(int forumId, int userId)
    
public  voidupdate(Forum forum)
     Updates a Forum.



Method Detail
addNew
public int addNew(Forum forum)(Code)
Adds a new Forum.
Parameters:
  forum - Reference to a valid and configured Forum object The forum's ID



checkUnreadTopics
public List checkUnreadTopics(int forumId, long lastVisit)(Code)
Check if the forum has unread topics.
Parameters:
  forumId - The forum's id to check
Parameters:
  lastVisit - The last visit time the user has seen the forum An java.util.List instance, where each entry is anet.jforum.entities.Topic instance.



decrementTotalTopics
public void decrementTotalTopics(int forumId, int count)(Code)
Decrements the total number of topics of a forum
Parameters:
  forumId - The forum ID to update
Parameters:
  count - Decrement a total of count elements



delete
public void delete(int forumId)(Code)
Delete a forum.
Parameters:
  forumId - The forum ID to delete



discoverForumId
public int discoverForumId(String listEmail)(Code)
Given an email address, finds the forum Id
Parameters:
  listEmail - the email of the forum the forum id of the given email, or 0 if not found



getBoardStatus
public ForumStats getBoardStatus()(Code)
Ges general statistics from the board ForumStats



getLastPostInfo
public LastPostInfo getLastPostInfo(int forumId)(Code)
Gets information about the latest message posted in some forum.
Parameters:
  forumId - the forum's id to inspect A LastPostInfo instance



getMaxPostId
public int getMaxPostId(int forumId)(Code)
Gets the last post id associated to the forum
Parameters:
  forumId - The forum id int



getModeratorList
public List getModeratorList(int forumId)(Code)
Get all moderators of some forum
Parameters:
  forumId - the forum's id to inspect a list with all moderators. Each entry is an instance ofnet.jforum.entities.ModeratorInfo



getTotalMessages
public int getTotalMessages()(Code)
Gets the total number of messages of a forum int



getTotalTopics
public int getTotalTopics(int forumId)(Code)
Gets the total number os topics of some forum Total of topics
Parameters:
  forumId - int



incrementTotalTopics
public void incrementTotalTopics(int forumId, int count)(Code)
Increments the total number of topics of a forum
Parameters:
  forumId - The forum ID to update
Parameters:
  count - Increment a total of count elements



isUserSubscribed
public boolean isUserSubscribed(int forumId, int userId)(Code)
Return the subscrition status of the user on the forum. Added by socialnetwork@gmail.com
Parameters:
  forumId - int
Parameters:
  userId - int boolean



moveTopics
public void moveTopics(String[] topics, int fromForumId, int toForumId)(Code)
Move the topics to a new forum
Parameters:
  topics - The topics id array
Parameters:
  fromForumId - The original forum id
Parameters:
  toForumId - The destination forum id



notifyUsers
public List notifyUsers(Forum forum)(Code)
Get the users to notify
Parameters:
  forum - The forum ArrayList of User objects. Eachentry is an user who will receive the new topic in the forum notification



removeSubscription
public void removeSubscription(int forumId, int userId)(Code)
Remove the user's subscription of the forum
Parameters:
  forumId - The forum id
Parameters:
  userId - the User id



removeSubscriptionByForum
public void removeSubscriptionByForum(int forumId)(Code)
Clean all subscriptions of some forum
Parameters:
  forumId - The forum id



selectAll
public List selectAll()(Code)
Selects all forums data from the database. ArrayList with the forums found
See Also:   ForumDAO.selectById



selectById
public Forum selectById(int forumId)(Code)
Gets a specific Forum.
Parameters:
  forumId - The ForumID to search Forumobject containing all the information
See Also:   ForumDAO.selectAll



setLastPost
public void setLastPost(int forumId, int postId)(Code)
Sets the last topic of a forum
Parameters:
  forumId - The forum ID to update
Parameters:
  postId - Last post ID



setModerated
public void setModerated(int categoryId, boolean status)(Code)
Enable or disabled moderation for the forum.
Parameters:
  categoryId - The main category for the forum
Parameters:
  status - a boolean value representing the desired status



setOrderDown
public Forum setOrderDown(Forum forum, Forum related)(Code)
Sets the forum's order one level down. For more information, take a look at @link #setOrderUp method. The only different between both is that this method sends the forum order down.
Parameters:
  forum - The forum to change its order
Parameters:
  related - The forum which comes after the forum we want to change The changed forum, with the new order set



setOrderUp
public Forum setOrderUp(Forum forum, Forum related)(Code)
Sets the forum's order one level up. When you call this method on a specific forum, the forum that is one level up will be sent down one level, and the forum which you are sending up wil take the order position of the forum which was sent down.
Parameters:
  forum - The forum to change its order
Parameters:
  related - The forum which comes before the forum we want to change The changed forum, with the new order set



subscribeUser
public void subscribeUser(int forumId, int userId)(Code)
Subscribe the user for notification of new topic in the forum Added by socialnetwork@gmail.com
Parameters:
  forumId - int
Parameters:
  userId - int



update
public void update(Forum forum)(Code)
Updates a Forum.
Parameters:
  forum - Reference to a Forum object to update



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.