org.paneris.messageboard.model
Class Message

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.Message
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class Message
extends DDRecord

An item on the messageboard.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.paneris.jal.model.DDRecord
connMgr, database, dataCache, debug, metaData
 
Constructor Summary
Message(java.lang.String db)
          Constructor to build an empty DDRecord
Message(java.lang.String db, java.lang.Integer record)
          Constructor to build a DDRecord given a string or int describing the table and an record id int.
Message(java.lang.String db, java.sql.ResultSet rs)
          Constructor to build a DDRecord given a string describing the table and a java.sql.resultSet.
 
Method Summary
 void distribute()
           
 int getAttachments()
          get the level of indentation for displaying this message
 int getIndentation()
          get the level of indentation for displaying this message
 java.util.Vector getIndentationVector()
          get the level of indentation for displaying this message we should not need to do this, as there should be a construct in webmacro
 Message getParent()
          get the parent message to this one
 Message getTopParent()
          get the top parent message to this one
 boolean hasAttachments()
           
 void send(java.lang.String addresseeList)
           
 void setAttachments()
           
 void setIndentation(int i)
          set the level of indentation for displaying this message
 void write()
          set the timesamp if we are writing a message
 
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
 
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

Message

public Message(java.lang.String db,
               java.sql.ResultSet rs)
        throws java.lang.Exception
Constructor to build a DDRecord given a string describing the table and a java.sql.resultSet.

Throws:
java.lang.Exception - If somthing fails

Message

public Message(java.lang.String db)
        throws java.lang.Exception
Constructor to build an empty DDRecord

Throws:
java.lang.Exception - If somthing fails

Message

public Message(java.lang.String db,
               java.lang.Integer record)
        throws java.lang.Exception
Constructor to build a DDRecord given a string or int describing the table and an record id int. if you don't have a record id, send it in as null

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

setAttachments

public void setAttachments()
                    throws java.lang.Exception
Throws:
java.lang.Exception - If somthing fails

getIndentationVector

public java.util.Vector getIndentationVector()
get the level of indentation for displaying this message we should not need to do this, as there should be a construct in webmacro


getParent

public Message getParent()
                  throws java.lang.Exception
get the parent message to this one

Throws:
java.lang.Exception - If somthing fails

getTopParent

public Message getTopParent()
                     throws java.lang.Exception
get the top parent message to this one

Throws:
java.lang.Exception - If somthing fails

setIndentation

public void setIndentation(int i)
set the level of indentation for displaying this message


getIndentation

public int getIndentation()
get the level of indentation for displaying this message


getAttachments

public int getAttachments()
get the level of indentation for displaying this message


hasAttachments

public boolean hasAttachments()

write

public void write()
           throws java.lang.Exception
set the timesamp if we are writing a message

Overrides:
write in class DDRecord
Throws:
java.lang.Exception - If somthing fails

distribute

public void distribute()
                throws java.lang.Exception
Throws:
java.lang.Exception - If somthing fails FIXME: String toString --> addresseeList

send

public void send(java.lang.String addresseeList)
          throws java.lang.Exception
Throws:
java.lang.Exception - If somthing fails


Copyright © 2000-2008 PanEris. All Rights Reserved.