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.IOExceptionpublic static List<ComponentBean> createContentFromODT(GlobalContext gc, InputStream in, String name, String lang) throws Exception
Exceptionpublic static List<ComponentBean> createContentFromDocx(GlobalContext gc, InputStream in, String name, String lang) throws Exception
Exceptionpublic static List<ComponentBean> createContentFromArray(GlobalContext gc, InputStream in, String name, String lang) throws Exception
Exceptionpublic 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
ZipExceptionIOExceptionpublic static void copyPage(ContentContext ctx, MenuElement source, MenuElement target) throws Exception
Exceptionpublic static List<ComponentBean> getAllComponentsOfChildren(MenuElement page) throws Exception
page - ExceptionCopyright © 2012-2018. All Rights Reserved.