Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.bboard.bean
Class SimpleFaq  view SimpleFaq download SimpleFaq.java

java.lang.Object
  extended bycom.RuntimeCollective.content.bean.SimpleContent
      extended bycom.RuntimeCollective.content.bean.TextComponent
          extended bycom.RuntimeCollective.bboard.bean.SimpleBoard
              extended bycom.RuntimeCollective.bboard.bean.SimpleFaq
All Implemented Interfaces:
Board, com.RuntimeCollective.content.bean.Content, com.RuntimeCollective.webapps.bean.Duplicable, com.RuntimeCollective.webapps.bean.EntityBean, Faq, com.RuntimeCollective.webapps.bean.PermissionBean, java.io.Serializable
Direct Known Subclasses:
SimpleHelp

public class SimpleFaq
extends SimpleBoard
implements Faq

A simple implementation of a Faq list, which uses the same DB tables as SimpleBoard/Topic/Message

Version:
$Id: SimpleFaq.java,v 1.8 2003/09/30 15:12:43 joe Exp $

Field Summary
static java.lang.String INTERFACE_BEAN
          The name of the interface that this bean implements, and which may be used to key this bean on the session.
 
Fields inherited from class com.RuntimeCollective.bboard.bean.SimpleBoard
DATABASE_TABLE, LIVE_ORDER, Open, SELECT_ID, T_COMMA, WHERE_BOARD
 
Fields inherited from class com.RuntimeCollective.content.bean.TextComponent
Format, MAX_DESCRIPTION_LENGTH, Text, Title
 
Fields inherited from class com.RuntimeCollective.content.bean.SimpleContent
Author_id, CreationDate, id, LastModifiedDate, LastModifierUser_id
 
Fields inherited from interface com.RuntimeCollective.bboard.bean.Board
DATABASE_TABLE
 
Fields inherited from interface com.RuntimeCollective.webapps.bean.EntityBean
NULL_ID
 
Constructor Summary
SimpleFaq()
          Default constructor generates a new blank faq.
SimpleFaq(int id)
          Get the given Faq from the database.
 
Method Summary
 Message[] getAllQuestions()
          Get all the questions in this faq.
 java.util.List getAllQuestionsAsList()
          Get all the questions in this faq, as a List
 
Methods inherited from class com.RuntimeCollective.bboard.bean.SimpleBoard
addTopic, approveAll, archive, canEdit, canView, delete, deleteTopics, getDescription, getDescription, getFaq, getIndexedTopics, getLastUpdated, getNumTopics, getOpen, getTopicList, getTopicListByMessageDate, getTopics, hasUnread, removeTopic, save, setDescription, setDescription, setOpen
 
Methods inherited from class com.RuntimeCollective.content.bean.TextComponent
getFormat, getText, getTitle, setFormat, setText, setTextAsHtml, setTitle, viewFormat
 
Methods inherited from class com.RuntimeCollective.content.bean.SimpleContent
customiseDuplicate, getAuthor, getCreationDate, getId, getLastModifiedDate, getLastModifierUser, makeDuplicate, makeDuplicate, setAuthor, setCreationDate, setId, setLastModifiedDate, setLastModifierUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.RuntimeCollective.bboard.bean.Board
addTopic, approveAll, getDescription, getFaq, getIndexedTopics, getOpen, getTopicList, getTopicListByMessageDate, getTopics, hasUnread, removeTopic, setDescription, setOpen
 
Methods inherited from interface com.RuntimeCollective.content.bean.Content
getAuthor, getCreationDate, getDescription, getLastModifiedDate, getLastModifierUser, getTitle, setAuthor, setCreationDate, setDescription, setLastModifiedDate, setLastModifierUser, setTitle, viewFormat
 
Methods inherited from interface com.RuntimeCollective.webapps.bean.EntityBean
delete, getId, save, setId
 
Methods inherited from interface com.RuntimeCollective.webapps.bean.Duplicable
customiseDuplicate, makeDuplicate, makeDuplicate
 
Methods inherited from interface com.RuntimeCollective.webapps.bean.PermissionBean
canEdit, canView
 

Field Detail

INTERFACE_BEAN

public static final java.lang.String INTERFACE_BEAN
The name of the interface that this bean implements, and which may be used to key this bean on the session.

See Also:
Constant Field Values
Constructor Detail

SimpleFaq

public SimpleFaq()
          throws java.sql.SQLException
Default constructor generates a new blank faq.


SimpleFaq

public SimpleFaq(int id)
          throws java.sql.SQLException
Get the given Faq from the database.

Method Detail

getAllQuestionsAsList

public java.util.List getAllQuestionsAsList()
                                     throws java.sql.SQLException
Get all the questions in this faq, as a List


getAllQuestions

public Message[] getAllQuestions()
                          throws java.sql.SQLException
Get all the questions in this faq.