Package org.apache.jetspeed.descriptor

Examples of org.apache.jetspeed.descriptor.JetspeedDescriptorService


    {
        File webXmlFile = new File(getBaseDir()+"src/test/testdata/deploy/web.xml");
        File portletXmlFile = new File(getBaseDir()+"src/test/testdata/deploy/portlet.xml");
        File jetspeedPortletXmlFile = new File(getBaseDir()+"src/test/testdata/deploy/jetspeed-portlet.xml");
       
        JetspeedDescriptorService descriptorService = new JetspeedDescriptorServiceImpl(new PortletAppDescriptorServiceImpl());
        InputStream webDescriptor = new FileInputStream(webXmlFile);
        InputStream portletDescriptor = new FileInputStream(portletXmlFile);
        InputStream jetspeedPortletDescriptor = new FileInputStream(jetspeedPortletXmlFile);
        ClassLoader paClassLoader = Thread.currentThread().getContextClassLoader();
       
        String appName = "TestRegistry";
        String contextPath = "/TestRegistry";
        long paChecksum = MultiFileChecksumHelper.getChecksum(new File[] {webXmlFile, portletXmlFile, jetspeedPortletXmlFile});
       
        portletApp = descriptorService.read(appName, contextPath, webDescriptor, portletDescriptor, jetspeedPortletDescriptor, paClassLoader);
        portletApp.setName(appName);
        portletApp.setContextPath(contextPath);
        portletApp.setChecksum(paChecksum);
       
        assertNotNull("App is null", portletApp);
View Full Code Here


   
    public void testSecurityRoles() throws Exception
    {
        System.out.println("Testing securityRoles");
        File warFile = new File(getBaseDir()+"src/test/testdata/deploy/webapp");
        JetspeedDescriptorService descriptorService = new JetspeedDescriptorServiceImpl(new PortletAppDescriptorServiceImpl());
        PortletApplicationWar paWar = new PortletApplicationWar(new DirectoryHelper(warFile), "unit-test", "/", descriptorService );

        PortletApplication portletApp = null;
       
        boolean validateFailed = false;
View Full Code Here

    {
        File webXmlFile = new File(getBaseDir()+"src/test/testdata/deploy/web.xml");
        File portletXmlFile = new File(getBaseDir()+"src/test/testdata/deploy/portlet.xml");
        File jetspeedPortletXmlFile = new File(getBaseDir()+"src/test/testdata/deploy/jetspeed-portlet.xml");
       
        JetspeedDescriptorService descriptorService = new JetspeedDescriptorServiceImpl(new PortletAppDescriptorServiceImpl());
        InputStream webDescriptor = new FileInputStream(webXmlFile);
        InputStream portletDescriptor = new FileInputStream(portletXmlFile);
        InputStream jetspeedPortletDescriptor = new FileInputStream(jetspeedPortletXmlFile);
        ClassLoader paClassLoader = Thread.currentThread().getContextClassLoader();
       
        String appName = "TestRegistry";
        String contextPath = "/TestRegistry";
        long paChecksum = MultiFileChecksumHelper.getChecksum(new File[] {webXmlFile, portletXmlFile, jetspeedPortletXmlFile});
       
        portletApp = descriptorService.read(appName, contextPath, webDescriptor, portletDescriptor, jetspeedPortletDescriptor, paClassLoader);
        portletApp.setName(appName);
        portletApp.setContextPath(contextPath);
        portletApp.setChecksum(paChecksum);
       
        assertNotNull("App is null", portletApp);
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.descriptor.JetspeedDescriptorService

Copyright © 2018 www.massapicom. 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.