Liferay 6.2-ce-ga5

com.liferay.portlet.journal.util
Class ContentTransformerListener

java.lang.Object
  extended by com.liferay.portal.kernel.templateparser.BaseTransformerListener
      extended by com.liferay.portlet.journal.util.ContentTransformerListener
All Implemented Interfaces:
TransformerListener

public class ContentTransformerListener
extends BaseTransformerListener


Constructor Summary
ContentTransformerListener()
           
 
Method Summary
protected  String getDynamicContent(String xml, String elementName)
           
protected  String injectEditInPlace(String xml, String script)
           
 String onScript(String script, String xml, String languageId, Map<String,String> tokens)
           
 String onXml(String xml, String languageId, Map<String,String> tokens)
           
protected  void replace(Element root, Map<String,String> tokens)
           
protected  String replace(String xml, Map<String,String> tokens)
          Fill one article with content from another approved article.
protected  String wrapEditInPlaceField(String script, String name, String type, String call)
           
 
Methods inherited from class com.liferay.portal.kernel.templateparser.BaseTransformerListener
onOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentTransformerListener

public ContentTransformerListener()
Method Detail

onScript

public String onScript(String script,
                       String xml,
                       String languageId,
                       Map<String,String> tokens)
Specified by:
onScript in interface TransformerListener
Overrides:
onScript in class BaseTransformerListener

onXml

public String onXml(String xml,
                    String languageId,
                    Map<String,String> tokens)
Specified by:
onXml in interface TransformerListener
Overrides:
onXml in class BaseTransformerListener

getDynamicContent

protected String getDynamicContent(String xml,
                                   String elementName)

injectEditInPlace

protected String injectEditInPlace(String xml,
                                   String script)

replace

protected void replace(Element root,
                       Map<String,String> tokens)
                throws Exception
Throws:
Exception

replace

protected String replace(String xml,
                         Map<String,String> tokens)
Fill one article with content from another approved article. See the article DOCUMENTATION-INSTALLATION-BORLAND for a sample use case.

Returns:
the processed string

wrapEditInPlaceField

protected String wrapEditInPlaceField(String script,
                                      String name,
                                      String type,
                                      String call)

Liferay 6.2-ce-ga5