|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.cms.installer.xml.ContentItemHelper
com.arsdigita.cms.installer.xml.ContentBundleHelper
com.arsdigita.cms.installer.xml.ContentPageHelper
Parses and XML file definition of content items in a folder. the XML configuration should look like this:
| Field Summary |
| Fields inherited from class com.arsdigita.cms.installer.xml.ContentItemHelper |
m_item, m_language |
| Constructor Summary | |
ContentPageHelper(ContentSection section)
|
|
| Method Summary | |
ContentItem |
cloneItem(String name,
Folder parent,
boolean save)
Assigning pages to random categories |
ContentItem |
create()
Convenience method that creates (or retrieves) the ContentItem without saving it |
ContentPage |
createContentPage()
|
ContentPage |
createContentPage(boolean save)
|
com.arsdigita.categorization.Category |
getCategory()
|
ContentPage |
getContentPage()
|
com.arsdigita.categorization.Category |
getRandomCategory()
|
void |
save()
Saves the Item and it's associated ContentBundle |
void |
setBodyText(String body)
Convenience method to set the item's body text. |
void |
setCategory(com.arsdigita.categorization.Category category)
|
| Methods inherited from class com.arsdigita.cms.installer.xml.ContentBundleHelper |
createContentItem, createNewContentItem, setContentItem, setParent |
| Methods inherited from class com.arsdigita.cms.installer.xml.ContentItemHelper |
cloneItem, cloneItem, cloneName, create, createContentItem, getCloneCount, getContentItem, getContentItemByName, getContentSection, getContentType, getName, getParent, newCloneItem, set, setCloneCount, setContentSection, setContentType, setLanguage, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContentPageHelper(ContentSection section)
| Method Detail |
public void setBodyText(String body)
ContentItemHelperConvenience method to set the item's body text. This is a no-op, subclasses should override it.
setBodyText in class ContentItemHelperpublic ContentPage getContentPage()
public ContentItem create()
ContentItemHelperConvenience method that creates (or retrieves) the ContentItem without saving it
create in class ContentItemHelperContentItemHelper.createContentItem(boolean)public ContentPage createContentPage()
public ContentPage createContentPage(boolean save)
public void save()
ContentBundleHelperSaves the Item and it's associated ContentBundle
save in class ContentBundleHelper
public ContentItem cloneItem(String name,
Folder parent,
boolean save)
cloneItem in class ContentBundleHelperpublic com.arsdigita.categorization.Category getRandomCategory()
public void setCategory(com.arsdigita.categorization.Category category)
public com.arsdigita.categorization.Category getCategory()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||