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

- All Superinterfaces:
- com.RuntimeCollective.webapps.bean.Duplicable, com.RuntimeCollective.webapps.bean.EntityBean, java.io.Serializable
- All Known Implementing Classes:
- SimpleContent
- public interface Content
- extends com.RuntimeCollective.webapps.bean.EntityBean, com.RuntimeCollective.webapps.bean.Duplicable
Interface to implement if you want an object to be considerable as a piece of content. Typical subclasses: TextComponent, Image.
- Version:
- $Id: Content.java,v 1.7 2003/09/30 15:12:46 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 | |
com.RuntimeCollective.webapps.bean.User |
getAuthor()
Get the author |
java.util.Date |
getCreationDate()
Get the creation date bean |
java.lang.String |
getDescription()
Get the description The description will be extracted from sub-class specific information, for example from the caption of an image, or the first line of an abstract. |
java.util.Date |
getLastModifiedDate()
Get the last modified date bean |
com.RuntimeCollective.webapps.bean.User |
getLastModifierUser()
Get the last modifier user |
java.lang.String |
getTitle()
Get the title The title will be extracted from sub-class specific information, for example from the caption of an image, or the first line of an abstract. |
void |
setAuthor(com.RuntimeCollective.webapps.bean.User author)
Set the author |
void |
setCreationDate(java.util.Date date)
Set the creation date bean |
void |
setDescription(java.lang.String description)
Set the description This method *may* set the description of the Content. |
void |
setLastModifiedDate(java.util.Date date)
Set the last modified date bean |
void |
setLastModifierUser(com.RuntimeCollective.webapps.bean.User user)
Set the last modifier user |
void |
setTitle(java.lang.String title)
Set the title This method *may* set the title of the Content. |
java.lang.Object |
viewFormat(java.lang.String format)
Get the content in a certain format This most important method will return a view of the content, under the specified format. |
| 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 |
setAuthor
public void setAuthor(com.RuntimeCollective.webapps.bean.User author)
- Set the author
getAuthor
public com.RuntimeCollective.webapps.bean.User getAuthor()
- Get the author
setCreationDate
public void setCreationDate(java.util.Date date)
- Set the creation date bean
getCreationDate
public java.util.Date getCreationDate()
- Get the creation date bean
setLastModifiedDate
public void setLastModifiedDate(java.util.Date date)
- Set the last modified date bean
getLastModifiedDate
public java.util.Date getLastModifiedDate()
- Get the last modified date bean
setLastModifierUser
public void setLastModifierUser(com.RuntimeCollective.webapps.bean.User user)
- Set the last modifier user
getLastModifierUser
public com.RuntimeCollective.webapps.bean.User getLastModifierUser()
- Get the last modifier user
getTitle
public java.lang.String getTitle()
- Get the title
The title will be extracted from sub-class specific information,
for example from the caption of an image, or the first line of
an abstract. The title will be in plain text format.
This is a commodity method useful when displaying lists of contents.
setTitle
public void setTitle(java.lang.String title)
- Set the title
This method *may* set the title of the Content.
Some implementations may automatically extract the title
from the content, so this method may not be effective.
getDescription
public java.lang.String getDescription()
- Get the description
The description will be extracted from sub-class specific information,
for example from the caption of an image, or the first line of
an abstract. The title will be in plain text format.
This is a commodity method useful when displaying lists of contents.
setDescription
public void setDescription(java.lang.String description)
- Set the description
This method *may* set the description of the Content.
Some implementations may automatically extract the description
from the content, so this method may not be effective.
viewFormat
public java.lang.Object viewFormat(java.lang.String format)
- Get the content in a certain format
This most important method will return a view of the content,
under the specified format.
For now, formats will be unconstrained. We only expect to use "html".
In the future we can set up a global list of formats, and for each
content subclass a list of the formats it supports.
Each format would also specify what type it returns (for "html",
it is "String").
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> content >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC