Examples of importPages()


Examples of org.apache.jetspeed.page.JetspeedPageSerializerApplication.importPages()

       
        try
        {
            if (importing)
            {
                app.importPages(logger, applicationRootPath, categories, filterPropertiesFileName, props, rootFolder);
            }
            else
            {
                app.exportPages(logger, applicationRootPath, categories, filterPropertiesFileName, props, rootFolder);
            }
View Full Code Here

Examples of org.apache.jetspeed.page.JetspeedPageSerializerApplication.importPages()

    {
        JetspeedPageSerializerApplication app = new JetspeedPageSerializerApplicationImpl();
        String applicationRootPath = getBaseDir()+"target/test-classes/webapp";
        Properties initProperties = new Properties();
        initProperties.put("psml.pages.path",getBaseDir()+"../../applications/jetspeed/src/main/webapp/WEB-INF/pages");
        app.importPages(logger, applicationRootPath, "pageSerializer", applicationRootPath+"/WEB-INF/conf/spring-filter.properties", initProperties, "/");
        File exportPath = new File(applicationRootPath+"/WEB-INF/exportedPages");
        exportPath.mkdirs();
        initProperties.put("psml.pages.path",exportPath.getAbsolutePath());
        app.exportPages(logger, applicationRootPath, "pageSerializer", applicationRootPath+"/WEB-INF/conf/spring-filter.properties", initProperties, "/");
    }
View Full Code Here

Examples of org.apache.jetspeed.page.PageSerializer.importPages()

            scm.start();
           
            PageSerializer serializer = (PageSerializer)scm.getComponent(PageSerializer.class.getName());
            if (importing)
            {
                result = serializer.importPages(logger, rootFolder);
            }
            else
            {
                result = serializer.exportPages(logger, rootFolder);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.