Examples of DocumentHandlerFactoryImpl


Examples of org.apache.jetspeed.page.document.psml.DocumentHandlerFactoryImpl

            DocumentHandler fpsmlHandler = new CastorFileSystemDocumentHandler(idGen, "/JETSPEED-INF/castor/page-mapping.xml", FragmentDefinition.DOCUMENT_TYPE, FragmentDefinitionImpl.class, baseDir + "target/testdata/" + pagesDirName, cache);
            DocumentHandler linkHandler = new CastorFileSystemDocumentHandler(idGen, "/JETSPEED-INF/castor/page-mapping.xml", Link.DOCUMENT_TYPE, LinkImpl.class, baseDir + "target/testdata/" + pagesDirName, cache);
            DocumentHandler folderMetaDataHandler = new CastorFileSystemDocumentHandler(idGen, "/JETSPEED-INF/castor/page-mapping.xml", FolderMetaDataImpl.DOCUMENT_TYPE, FolderMetaDataImpl.class, baseDir + "target/testdata/" + pagesDirName, cache);
            DocumentHandler pageSecurityHandler = new CastorFileSystemDocumentHandler(idGen, "/JETSPEED-INF/castor/page-mapping.xml", PageSecurityImpl.DOCUMENT_TYPE, PageSecurity.class, baseDir + "target/testdata/" + pagesDirName, cache);
           
            DocumentHandlerFactory handlerFactory = new DocumentHandlerFactoryImpl();
            handlerFactory.registerDocumentHandler(psmlHandler);
            handlerFactory.registerDocumentHandler(tpsmlHandler);
            handlerFactory.registerDocumentHandler(dpsmlHandler);
            handlerFactory.registerDocumentHandler(fpsmlHandler);
            handlerFactory.registerDocumentHandler(linkHandler);
            handlerFactory.registerDocumentHandler(folderMetaDataHandler);
            handlerFactory.registerDocumentHandler(pageSecurityHandler);
            FolderHandler folderHandler = new FileSystemFolderHandler(idGen, baseDir+"target/testdata/" + pagesDirName, handlerFactory, cache);

            CastorXmlPageManager pageManager = new CastorXmlPageManager(idGen, handlerFactory, folderHandler, cache, permissionsEnabled, constraintsEnabled);
            pageManager.init();
            return pageManager;
View Full Code Here

Examples of org.apache.jetspeed.page.document.psml.DocumentHandlerFactoryImpl

            getBaseDir()+"src/test/testdata/pages",
            cache);
           
        Map handlerMap = new HashMap();
        handlerMap.put("folder.metadata", folderMetaDataDocumentHandler);
        DocumentHandlerFactory handlerFactory = new DocumentHandlerFactoryImpl(handlerMap);
        folderMetaDataDocumentHandler.setHandlerFactory(handlerFactory);
    }
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.