|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for populating a content type. To populate a database with a CMS content type, add a class that implements this interface. The class should use the setup(), makeContent(), and publish() methods to create and publish one content item of the desired content type. Then, add the class you wrote to the initializer for this package.
Method Summary | |
com.arsdigita.cms.ContentItem |
getContentItem()
Method getContentItem. |
String |
getContentType()
Method getContentType. |
String |
getContentTypeName()
Method getContentTypeName. |
void |
makeContent()
Method makeContent. |
void |
publish()
Method publish. |
void |
setup(String sIdentifier,
com.arsdigita.cms.ContentItem parent,
com.arsdigita.cms.ContentSection section)
Method setup. |
Method Detail |
public void setup(String sIdentifier, com.arsdigita.cms.ContentItem parent, com.arsdigita.cms.ContentSection section)
sIdentifier
- the title of the content item. This should be unique
across content itemsparent
- the parent of the created content tems. Should usually be
a Folder.section
- the content section in which to place the content itempublic void makeContent()
public void publish()
public String getContentType()
public String getContentTypeName()
public com.arsdigita.cms.ContentItem getContentItem()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |