com.arsdigita.cms.installer.xml
Class ContentPageHelper

java.lang.Object
  extended bycom.arsdigita.cms.installer.xml.ContentItemHelper
      extended bycom.arsdigita.cms.installer.xml.ContentBundleHelper
          extended bycom.arsdigita.cms.installer.xml.ContentPageHelper
Direct Known Subclasses:
TextPageHelper

public class ContentPageHelper
extends ContentBundleHelper

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

ContentPageHelper

public ContentPageHelper(ContentSection section)
Method Detail

setBodyText

public void setBodyText(String body)
Description copied from class: ContentItemHelper

Convenience method to set the item's body text. This is a no-op, subclasses should override it.

Overrides:
setBodyText in class ContentItemHelper

getContentPage

public ContentPage getContentPage()

create

public ContentItem create()
Description copied from class: ContentItemHelper

Convenience method that creates (or retrieves) the ContentItem without saving it

Overrides:
create in class ContentItemHelper
See Also:
ContentItemHelper.createContentItem(boolean)

createContentPage

public ContentPage createContentPage()

createContentPage

public ContentPage createContentPage(boolean save)

save

public void save()
Description copied from class: ContentBundleHelper

Saves the Item and it's associated ContentBundle

Overrides:
save in class ContentBundleHelper

cloneItem

public ContentItem cloneItem(String name,
                             Folder parent,
                             boolean save)
Assigning pages to random categories

Overrides:
cloneItem in class ContentBundleHelper

getRandomCategory

public com.arsdigita.categorization.Category getRandomCategory()

setCategory

public void setCategory(com.arsdigita.categorization.Category category)

getCategory

public com.arsdigita.categorization.Category getCategory()


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC