public class ContentHelper extends Object
Constructor and Description |
---|
ContentHelper() |
public static String removeTag(String text)
text
- XHTML Codepublic static List<ComponentBean> createContentWithHTML(String html, String lg) throws XMLManipulationHelper.BadXMLException
public static void main(String[] args)
public static boolean importZipEntryToDataFolder(GlobalContext gc, ZipEntry entry, InputStream in, String localFolder) throws IOException
gc
- entry
- the zip entry.localFolder
- the local forlder in static folder.IOException
public static List<ComponentBean> createContentFromODT(GlobalContext gc, InputStream in, String name, String lang) throws Exception
Exception
public static List<ComponentBean> createContentFromDocx(GlobalContext gc, InputStream in, String name, String lang) throws Exception
Exception
public static List<ComponentBean> createContentFromArray(GlobalContext gc, InputStream in, String name, String lang) throws Exception
Exception
public static String importJCRFile(ContentContext ctx, InputStream in, String name, MenuElement page, String titleXPath, String dateXPath, String dateFormat, String contentXPath, String pageRootXPath, boolean explodeHTML) throws ZipException, IOException
ZipException
IOException
public static void copyPage(ContentContext ctx, MenuElement source, MenuElement target) throws Exception
Exception
public static List<ComponentBean> getAllComponentsOfChildren(MenuElement page) throws Exception
page
- Exception
Copyright © 2012-2018. All Rights Reserved.