org.apache.lenya.cms.authoring
Class NewBlogEntryCreator

java.lang.Object
  extended by org.apache.lenya.cms.authoring.DefaultCreator
      extended by org.apache.lenya.cms.authoring.DefaultBranchCreator
          extended by org.apache.lenya.cms.authoring.NewBlogEntryCreator
All Implemented Interfaces:
ParentChildCreatorInterface

public class NewBlogEntryCreator
extends DefaultBranchCreator

Create a blog entry


Field Summary
 
Fields inherited from class org.apache.lenya.cms.authoring.DefaultCreator
RESOURCE_META_NAME, RESOURCE_NAME, SAMPLE_META_NAME, SAMPLE_NAME
 
Fields inherited from interface org.apache.lenya.cms.authoring.ParentChildCreatorInterface
BRANCH_NODE, LEAF_NODE
 
Constructor Summary
NewBlogEntryCreator()
           
 
Method Summary
protected  java.lang.String getChildFileName(Publication publication, java.lang.String area, java.lang.String parentId, java.lang.String childId, java.lang.String language)
          (non-Javadoc)
 void init(org.apache.avalon.framework.configuration.Configuration conf)
          Configures the Creator, based on a configuration file.
protected  void transformXML(org.w3c.dom.Document doc, java.lang.String childId, short childType, java.lang.String childName, java.util.Map parameters)
          Apply some transformation on the newly created child.
 
Methods inherited from class org.apache.lenya.cms.authoring.DefaultBranchCreator
getChildMetaFileName, getChildType
 
Methods inherited from class org.apache.lenya.cms.authoring.DefaultCreator
create, generateTreeId, getChildName, getLanguageSuffix, getSampleResourceName, transformMetaXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewBlogEntryCreator

public NewBlogEntryCreator()
Method Detail

init

public void init(org.apache.avalon.framework.configuration.Configuration conf)
Description copied from interface: ParentChildCreatorInterface
Configures the Creator, based on a configuration file.

Specified by:
init in interface ParentChildCreatorInterface
Overrides:
init in class DefaultCreator
Parameters:
conf - DOCUMENT ME!
See Also:
ParentChildCreatorInterface.init(Configuration)

getChildFileName

protected java.lang.String getChildFileName(Publication publication,
                                            java.lang.String area,
                                            java.lang.String parentId,
                                            java.lang.String childId,
                                            java.lang.String language)
Description copied from class: DefaultBranchCreator
(non-Javadoc)

Overrides:
getChildFileName in class DefaultBranchCreator
childId - the id of the child
language - for which the document is created
Returns:
the file name of the child
See Also:
org.apache.lenya.cms.authoring.DefaultCreator#getChildFileName(java.io.File, java.lang.String)

transformXML

protected void transformXML(org.w3c.dom.Document doc,
                            java.lang.String childId,
                            short childType,
                            java.lang.String childName,
                            java.util.Map parameters)
                     throws java.lang.Exception
Description copied from class: DefaultCreator
Apply some transformation on the newly created child.

Overrides:
transformXML in class DefaultCreator
Parameters:
doc - the xml document
childId - the id of the child
childType - the type of child
childName - the name of the child
parameters - additional parameters that can be used in the transformation
Throws:
java.lang.Exception - if the transformation fails


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.