Java Doc for Category.java in  » Forum » JForum-2.1.8 » net » jforum » entities » 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.entities 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.jforum.entities.Category

Category
public class Category implements Serializable(Code)
Represents a category in the System. Each category holds a reference to all its forums, which can be retrieved by calling either @link #getForums(), #getForum(int) and related methods.
This class also controls the access to its forums, so a callto @link #getForums() will only return the forums accessibleto the user who make the call tho the method.
author:
   Rafael Steil
version:
   $Id: Category.java,v 1.22 2007/08/18 07:03:20 andowson Exp $



Constructor Summary
public  Category()
    
public  Category(int id)
    
public  Category(String name, int id)
    
public  Category(Category c)
    

Method Summary
public  voidaddForum(Forum forum)
    
public  voidchangeForumOrder(Forum forum)
     Changes a forum's display order.
public  booleanequals(Object o)
    
public  ForumgetForum(int userId, int forumId)
     Gets a forum.
public  ForumgetForum(int forumId)
     Gets a forum.
public  CollectiongetForums()
     Get all forums from this category.
public  CollectiongetForums(int userId)
     Gets all forums from this category.
public  intgetId()
    
public  StringgetName()
    
public  intgetOrder()
    
public  inthashCode()
    
public  booleanisModerated()
    
public  voidreloadForum(Forum forum)
     Reloads a forum. The forum should already be in the cache and SHOULD NOT have its order changed.
public  voidremoveForum(int forumId)
     Removes a forum from the list.
public  voidsetId(int id)
     Sets the id.
public  voidsetModerated(boolean status)
    
public  voidsetName(String name)
     Sets the name.
public  voidsetOrder(int order)
     Sets the order.
public  StringtoString()
    


Constructor Detail
Category
public Category()(Code)



Category
public Category(int id)(Code)



Category
public Category(String name, int id)(Code)



Category
public Category(Category c)(Code)




Method Detail
addForum
public void addForum(Forum forum)(Code)
Adds a forum to this category
Parameters:
  forum - Forum



changeForumOrder
public void changeForumOrder(Forum forum)(Code)
Changes a forum's display order. This method changes the position of the forum in the current display order of the forum instance passed as argument, if applicable.
Parameters:
  forum - The forum to change



equals
public boolean equals(Object o)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



getForum
public Forum getForum(int userId, int forumId)(Code)
Gets a forum.
Parameters:
  userId - The user's id who is trying to see the forum
Parameters:
  forumId - The id of the forum to get The Forum instance if found, or nullotherwhise.
See Also:   Category.getForum(int)



getForum
public Forum getForum(int forumId)(Code)
Gets a forum.
Parameters:
  forumId - The forum's id The requested forum, if found, or null ifthe forum does not exists or access to it is denied.
See Also:   Category.getForum(int,int)



getForums
public Collection getForums()(Code)
Get all forums from this category. All forums, regardless it is accessible to the user or not.



getForums
public Collection getForums(int userId)(Code)
Gets all forums from this category. The forums available to the user who make the call
See Also:   Category.getForums()
Parameters:
  userId - int



getId
public int getId()(Code)
int



getName
public String getName()(Code)
String



getOrder
public int getOrder()(Code)
int



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



isModerated
public boolean isModerated()(Code)



reloadForum
public void reloadForum(Forum forum)(Code)
Reloads a forum. The forum should already be in the cache and SHOULD NOT have its order changed. If the forum's order was changed, then you MUST CALL @link #changeForumOrder(Forum) BEFORE calling this method.
Parameters:
  forum - The forum to reload its information
See Also:   Category.changeForumOrder(Forum)



removeForum
public void removeForum(int forumId)(Code)
Removes a forum from the list.
Parameters:
  forumId - int



setId
public void setId(int id)(Code)
Sets the id.
Parameters:
  id - The id to set



setModerated
public void setModerated(boolean status)(Code)



setName
public void setName(String name)(Code)
Sets the name.
Parameters:
  name - The name to set



setOrder
public void setOrder(int order)(Code)
Sets the order.
Parameters:
  order - The order to set



toString
public String toString()(Code)

See Also:   java.lang.Object.toString



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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