|
|||||||||
| Home >> All >> com >> RuntimeCollective >> bboard >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.bboard.bean
Interface Message

- All Superinterfaces:
- com.RuntimeCollective.content.bean.Content, com.RuntimeCollective.webapps.bean.Duplicable, com.RuntimeCollective.webapps.bean.EntityBean, java.io.Serializable
- All Known Implementing Classes:
- SimpleMessage
- public interface Message
- extends com.RuntimeCollective.content.bean.Content
An interface defining a bulletin board message.
If you want to be spared the hassle of writing JSPs for the creation of your Message objects, do have a look at the pages written for the Sussex Enterprise project. You can find them by checking out the relevent project: "cvs co rsework", then look in rsework/web and in rsework/web/admin.
The pages are called add/edit/delete(Topic)MessageXXX.jsp. They should be pretty self-explanatory. The rsework/struts-config.xml file is also worth checking, for the action mappings etc.
And while you're at it, why not vanilla them and copy them to bboard/web/admin ...
You can also check the Sussex Enterprise staging server (ask Fabrice, JoeH or Sophie).
- Version:
- $Id: Message.java,v 1.9 2003/09/30 15:12:43 joe Exp $
| Field Summary | |
static java.lang.String |
DATABASE_TABLE
The name of the database table for this bean type. |
| Fields inherited from interface com.RuntimeCollective.webapps.bean.EntityBean |
INTERFACE_BEAN, NULL_ID |
| Method Summary | |
java.lang.String |
getContent()
Set the content. |
java.lang.String |
getContent(java.lang.String format)
Set the content under a given format. |
java.lang.String |
getFlag()
Get a string identifying the flag to be shown next to this message. |
Message |
getResponse()
Get the message that this is a response to. |
int |
getResponseId()
Get the id of the message that this is a response to (or -1 if this is not a response). |
Topic |
getTopic()
Get the topic that this message is part of. |
boolean |
isNew(com.RuntimeCollective.webapps.bean.User user)
Whether this message is new to this user. |
void |
setContent(java.lang.String content)
Set the content. |
void |
setContent(java.lang.String content,
java.lang.String format)
Set the content under a given format. |
void |
setFlag(java.lang.String flag)
Set a string identifying the flag to be shown next to this message. |
void |
setResponse(Message previous)
Set the message that this is a response to. |
void |
setResponseId(int responseId)
Set the id of the message that this is a response to (or -1 if this is not a response). |
void |
setTopic(Topic topic)
Set the topic that this message is part of. |
| 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 |
| Field Detail |
DATABASE_TABLE
public static final java.lang.String DATABASE_TABLE
- The name of the database table for this bean type.
- See Also:
- Constant Field Values
| Method Detail |
getTopic
public Topic getTopic()
- Get the topic that this message is part of.
setTopic
public void setTopic(Topic topic)
- Set the topic that this message is part of.
getFlag
public java.lang.String getFlag()
- Get a string identifying the flag to be shown next to this message.
setFlag
public void setFlag(java.lang.String flag)
- Set a string identifying the flag to be shown next to this message.
getResponseId
public int getResponseId()
- Get the id of the message that this is a response to (or -1 if this is not a response).
setResponseId
public void setResponseId(int responseId)
- Set the id of the message that this is a response to (or -1 if this is not a response).
getResponse
public Message getResponse()
- Get the message that this is a response to.
setResponse
public void setResponse(Message previous)
- Set the message that this is a response to.
setContent
public void setContent(java.lang.String content)
- Set the content.
setContent
public void setContent(java.lang.String content, java.lang.String format)
- Set the content under a given format.
getContent
public java.lang.String getContent()
- Set the content.
getContent
public java.lang.String getContent(java.lang.String format)
- Set the content under a given format.
isNew
public boolean isNew(com.RuntimeCollective.webapps.bean.User user)
- Whether this message is new to this user.
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> bboard >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC