java.lang.Object
com.RuntimeCollective.content.bean.SimpleContent
com.RuntimeCollective.content.bean.TextComponent
com.RuntimeCollective.bboard.bean.SimpleBoard
com.RuntimeCollective.bboard.bean.SimpleBlog
- All Implemented Interfaces:
- Blog, Board, com.RuntimeCollective.content.bean.Content, com.RuntimeCollective.webapps.bean.Duplicable, com.RuntimeCollective.webapps.bean.EntityBean, com.RuntimeCollective.webapps.bean.PermissionBean, java.io.Serializable
- public class SimpleBlog
- extends SimpleBoard
- implements Blog
A simple implementation of a Blog.
- Version:
- $Id: SimpleBlog.java,v 1.4 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 interface com.RuntimeCollective.webapps.bean.EntityBean |
NULL_ID |
|
Constructor Summary |
SimpleBlog()
Default constructor generates a new blank blog. |
SimpleBlog(int id)
Get the given Blog from the database. |
|
Method Summary |
Topic |
getTopic()
Get the single topic for this Blog. |
| 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.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 |
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
SimpleBlog
public SimpleBlog()
throws java.sql.SQLException
- Default constructor generates a new blank blog.
SimpleBlog
public SimpleBlog(int id)
throws java.sql.SQLException
- Get the given Blog from the database.
getTopic
public Topic getTopic()
throws java.sql.SQLException
- Get the single topic for this Blog. If there are no topics for this Blog, then a new one is created.
Blogs may have more than one topic; in which case this method will return the first.
- Specified by:
getTopic in interface Blog