Package org.apache.jetspeed.om.portlet

Examples of org.apache.jetspeed.om.portlet.ContainerRuntimeOption


        String p2 = supportedRenderParams.get(1);
        assertEquals(p2, "zipcode");

        List<ContainerRuntimeOption> portletOptions = portlet.getContainerRuntimeOptions();
        assertEquals(portletOptions.size(), 2);
        ContainerRuntimeOption opt1 = portlet.getContainerRuntimeOption("PortletOption1");
        assertEquals(opt1.getName(), "PortletOption1");
        assertEquals(opt1.getValues().size(), 3);
        assertEquals(opt1.getValues().get(0), "p-value-1");
        assertEquals(opt1.getValues().get(1), "p-value-2");
        assertEquals(opt1.getValues().get(2), "p-value-3");
        ContainerRuntimeOption opt2 = portlet.getContainerRuntimeOption("PortletOption2");
        assertEquals(opt2.getName(), "PortletOption2");
        assertEquals(opt2.getValues().size(), 2);
        assertEquals(opt2.getValues().get(0), "p-value-4");
        assertEquals(opt2.getValues().get(1), "p-value-5");
       
        List<ContainerRuntimeOption> appOptions = app.getContainerRuntimeOptions();
        assertEquals(appOptions.size(), 2);
        ContainerRuntimeOption opt3 = app.getContainerRuntimeOption("AppOption1");
        assertEquals(opt3.getName(), "AppOption1");
        assertEquals(opt3.getValues().size(), 3);
        assertEquals(opt3.getValues().get(0), "a-value-1");
        assertEquals(opt3.getValues().get(1), "a-value-2");
        assertEquals(opt3.getValues().get(2), "a-value-3");
        ContainerRuntimeOption opt4 = app.getContainerRuntimeOption("AppOption2");
        assertEquals(opt4.getName(), "AppOption2");
        assertEquals(opt4.getValues().size(), 1);
        assertEquals(opt4.getValues().get(0), "a-value-4");
       
        PublicRenderParameter x = app.getPublicRenderParameter("prp1-id");
        assertNotNull(x);
        assertEquals(x.getName(), "prp1");
        List<PublicRenderParameter> xs = app.getPublicRenderParameters();
View Full Code Here


            copyLanguage.setSupportedLocale(language.isSupportedLocale());
        }

        for (ContainerRuntimeOption runtimeOption : source.getContainerRuntimeOptions())
        {
            ContainerRuntimeOption copyRuntimeOption = copy.addContainerRuntimeOption(runtimeOption.getName());

            for (String value : runtimeOption.getValues())
            {
                copyRuntimeOption.addValue(value);
            }
        }

        copy.getSupportedPublicRenderParameters().addAll(source.getSupportedPublicRenderParameters());
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.om.portlet.ContainerRuntimeOption

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.