com.liferay.portlet.journal.util
Class ContentTransformerListener
java.lang.Object
com.liferay.portal.kernel.templateparser.BaseTransformerListener
com.liferay.portlet.journal.util.ContentTransformerListener
- All Implemented Interfaces:
- TransformerListener
public class ContentTransformerListener
- extends BaseTransformerListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentTransformerListener
public ContentTransformerListener()
onOutput
public String onOutput(String s)
- Specified by:
onOutput
in interface TransformerListener
- Specified by:
onOutput
in class BaseTransformerListener
onScript
public String onScript(String s)
- Specified by:
onScript
in interface TransformerListener
- Specified by:
onScript
in class BaseTransformerListener
onXml
public String onXml(String s)
- Specified by:
onXml
in interface TransformerListener
- Specified by:
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)
throws Exception
- Throws:
Exception
replace
protected String replace(String xml)
- 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)