org.kohsuke.jnt
Class JNForum

java.lang.Object
  extended by org.kohsuke.jnt.JNForum

public final class JNForum
extends Object

java.net discussion forum.

Author:
Kohsuke Kawaguchi

Constructor Summary
JNForum(JNProject project, String name, int id, int messageCount, String description)
           
 
Method Summary
 void delete()
          Deletes this mailing list.
 boolean equals(Object o)
           
 String getDescription()
          Gets the one-line description of this forum.
 int getId()
          Gets the unique ID of this forum.
 int getMessageCount()
          Gets the total number of messages in this forum.
 String getName()
          Gets the name of this forum, such as "Wish List".
 JNProject getProject()
          Gets the project to which this forum belongs.
 URL getURL()
          Gets the URL that points to the top page of this forum, such as https://java-net.dev.java.net/servlets/ForumMessageList?forumID=93.
 int hashCode()
           
 void subscribe()
          Subscribes yourself.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNForum

public JNForum(JNProject project,
               String name,
               int id,
               int messageCount,
               String description)
Method Detail

getProject

public JNProject getProject()
Gets the project to which this forum belongs.

Returns:
always non-null.

getName

public String getName()
Gets the name of this forum, such as "Wish List".

Returns:
always non-null.

getId

public int getId()
Gets the unique ID of this forum.

The forum ID is internally used by the java.net system to identify a forum.


getMessageCount

public int getMessageCount()
Gets the total number of messages in this forum.


getDescription

public String getDescription()
Gets the one-line description of this forum.

Returns:
always non-null.

getURL

public URL getURL()
Gets the URL that points to the top page of this forum, such as https://java-net.dev.java.net/servlets/ForumMessageList?forumID=93.

Returns:
always non-null valid URL.

delete

public void delete()
            throws ProcessingException
Deletes this mailing list.

This is a priviledged operation.

Throws:
ProcessingException

subscribe

public void subscribe()
               throws ProcessingException
Subscribes yourself.

Throws:
ProcessingException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003-2008 Kohsuke Kawaguchi. All Rights Reserved.