org.paneris.messageboard.model
Class Board

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by org.paneris.util.ExtendedHash
              extended by org.paneris.jal.model.DDRecord
                  extended by org.paneris.messageboard.model.Board
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class Board
extends DDRecord

A messageboard.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.paneris.jal.model.DDRecord
database, dataCache, debug, metaData
 
Constructor Summary
Board(java.lang.String db)
          Constructor
Board(java.lang.String db, java.lang.Integer record)
          Constructor
Board(java.lang.String db, java.sql.ResultSet rs)
          Constructor
 
Method Summary
static java.lang.Integer getLurkerBoard(java.lang.String db)
           
 java.lang.String getMessageboardEmail()
           
 java.lang.String getMessageboardURL()
           
 java.lang.Integer getMessages()
           
 java.lang.String getMessageURL(java.lang.String id)
           
 java.lang.String getServletURL()
           
 java.lang.Integer getSubscribers()
           
 java.lang.String getUnsubscribeURL()
           
 boolean isSubscribed(User user)
          Is this user subscribed to this board?
 void subscribe(User user)
          Subscribe this user to this board.
 void unSubscribe(User user)
          Unsubscribe us from this board
 
Methods inherited from class org.paneris.jal.model.DDRecord
appendFieldValue, delete, get, getChildren, getField, getFieldValue, getLinksToThis, getLinksToThis, getMetaData, getOrderedChildren, getProblems, getResultSet, init, isDuplicated, setFieldValue, setFieldValue, setFromDefaults, setFromForm, setFromForm, setFromForm, write, write
 
Methods inherited from class org.paneris.util.ExtendedHash
clear, elements, joinKeys, keys, put, remove
 
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, putAll, rehash, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Board

public Board(java.lang.String db,
             java.sql.ResultSet rs)
      throws java.lang.Exception
Constructor

Throws:
java.lang.Exception - If somthing fails

Board

public Board(java.lang.String db)
      throws java.lang.Exception
Constructor

Throws:
java.lang.Exception - If somthing fails

Board

public Board(java.lang.String db,
             java.lang.Integer record)
      throws java.lang.Exception
Constructor

Throws:
java.lang.Exception - If somthing fails
Method Detail

getMessages

public java.lang.Integer getMessages()

getSubscribers

public java.lang.Integer getSubscribers()

getServletURL

public java.lang.String getServletURL()

getMessageboardURL

public java.lang.String getMessageboardURL()

getUnsubscribeURL

public java.lang.String getUnsubscribeURL()

getMessageURL

public java.lang.String getMessageURL(java.lang.String id)

getMessageboardEmail

public java.lang.String getMessageboardEmail()

getLurkerBoard

public static java.lang.Integer getLurkerBoard(java.lang.String db)

subscribe

public void subscribe(User user)
               throws java.lang.Exception
Subscribe this user to this board.

Throws:
java.lang.Exception - If somthing fails

unSubscribe

public void unSubscribe(User user)
                 throws java.lang.Exception
Unsubscribe us from this board

Throws:
java.lang.Exception - If somthing fails

isSubscribed

public boolean isSubscribed(User user)
                     throws java.lang.Exception
Is this user subscribed to this board?

Throws:
java.lang.Exception - If somthing fails


Copyright © 2000-2008 PanEris. All Rights Reserved.