Package org.apache.jetspeed.om.portlet

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


            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


        portlet.addSupportedPublishingEvent(q2);
       
        portlet.addSupportedPublicRenderParameter("city");
        portlet.addSupportedPublicRenderParameter("zipcode");
       
        ContainerRuntimeOption opt1 = portlet.addContainerRuntimeOption("PortletOption1");
        opt1.addValue("p-value-1");
        opt1.addValue("p-value-2");
        opt1.addValue("p-value-3");
        ContainerRuntimeOption opt2 = portlet.addContainerRuntimeOption("PortletOption2");
        opt2.addValue("p-value-4");
        opt2.addValue("p-value-5");

        ContainerRuntimeOption opt3 = app.addContainerRuntimeOption("AppOption1");
        opt3.addValue("a-value-1");
        opt3.addValue("a-value-2");
        opt3.addValue("a-value-3");
        ContainerRuntimeOption opt4 = app.addContainerRuntimeOption("AppOption2");       
        opt4.addValue("a-value-4");
       
        PublicRenderParameter prp1 = app.addPublicRenderParameter("prp1", "prp1-id");
        Description d1 = prp1.addDescription("en");
        d1.setDescription("dog");
        Description d2 = prp1.addDescription("fr");
View Full Code Here

        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

   
    public void resolveActionScopedRequestAttributes()
    {
        if (pd != null)
        {
            ContainerRuntimeOption actionScopedRequestAttributesOption =
                pd.getContainerRuntimeOption(ContainerRuntimeOption.ACTION_SCOPED_REQUEST_ATTRIBUTES_OPTION);
            if (actionScopedRequestAttributesOption == null)
            {
                actionScopedRequestAttributesOption =
                    pd.getApplication().getContainerRuntimeOption(ContainerRuntimeOption.ACTION_SCOPED_REQUEST_ATTRIBUTES_OPTION);
            }
            setActionScopedRequestAttributes((actionScopedRequestAttributesOption != null) &&
                                             (actionScopedRequestAttributesOption.getValues() != null) &&
                                             (actionScopedRequestAttributesOption.getValues().size() > 0) &&
                                             Boolean.parseBoolean(actionScopedRequestAttributesOption.getValues().get(0)));
        }
    }
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

            PortletDefinition jpd = jpa.addPortlet(pd.getPortletName());
            upgradePortlet(jpd, pd);
        }
        for (org.apache.pluto.container.om.portlet.ContainerRuntimeOption cro : pa.getContainerRuntimeOptions())
        {
            ContainerRuntimeOption jcro = jpa.addContainerRuntimeOption(cro.getName());
            for (String value : cro.getValues())
            {
                jcro.addValue(value);
            }
        }
        for (org.apache.pluto.container.om.portlet.CustomPortletMode cpm : pa.getCustomPortletModes())
        {
            CustomPortletMode jcpm = jpa.addCustomPortletMode(cpm.getPortletMode());
View Full Code Here

            }
           
        }       
        for (org.apache.pluto.container.om.portlet.ContainerRuntimeOption cro : pd.getContainerRuntimeOptions())
        {
            ContainerRuntimeOption jcro = jpd.addContainerRuntimeOption(cro.getName());
            for (String value : cro.getValues())
            {
                jcro.addValue(value);
            }
        }
        for (org.apache.pluto.container.om.portlet.Description desc : pd.getDescriptions())
        {
            Description jdesc = jpd.addDescription(desc.getLang());
View Full Code Here

            PortletDefinition jpd = jpa.addPortlet(pd.getPortletName());
            upgradePortlet(jpd, pd);
        }
        for (org.apache.pluto.container.om.portlet.ContainerRuntimeOption cro : pa.getContainerRuntimeOptions())
        {
            ContainerRuntimeOption jcro = jpa.addContainerRuntimeOption(cro.getName());
            for (String value : cro.getValues())
            {
                jcro.addValue(value);
            }
        }
        for (org.apache.pluto.container.om.portlet.CustomPortletMode cpm : pa.getCustomPortletModes())
        {
            CustomPortletMode jcpm = jpa.addCustomPortletMode(cpm.getPortletMode());
View Full Code Here

            }
           
        }       
        for (org.apache.pluto.container.om.portlet.ContainerRuntimeOption cro : pd.getContainerRuntimeOptions())
        {
            ContainerRuntimeOption jcro = jpd.addContainerRuntimeOption(cro.getName());
            for (String value : cro.getValues())
            {
                jcro.addValue(value);
            }
        }
        for (org.apache.pluto.container.om.portlet.Description desc : pd.getDescriptions())
        {
            Description jdesc = jpd.addDescription(desc.getLang());
View Full Code Here

        portlet.addSupportedPublishingEvent(q2);
       
        portlet.addSupportedPublicRenderParameter("city");
        portlet.addSupportedPublicRenderParameter("zipcode");
       
        ContainerRuntimeOption opt1 = portlet.addContainerRuntimeOption("PortletOption1");
        opt1.addValue("p-value-1");
        opt1.addValue("p-value-2");
        opt1.addValue("p-value-3");
        ContainerRuntimeOption opt2 = portlet.addContainerRuntimeOption("PortletOption2");
        opt2.addValue("p-value-4");
        opt2.addValue("p-value-5");

        ContainerRuntimeOption opt3 = app.addContainerRuntimeOption("AppOption1");
        opt3.addValue("a-value-1");
        opt3.addValue("a-value-2");
        opt3.addValue("a-value-3");
        ContainerRuntimeOption opt4 = app.addContainerRuntimeOption("AppOption2");       
        opt4.addValue("a-value-4");
       
        PublicRenderParameter prp1 = app.addPublicRenderParameter("prp1", "prp1-id");
        Description d1 = prp1.addDescription("en");
        d1.setDescription("dog");
        Description d2 = prp1.addDescription("fr");
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.