Package org.apache.jetspeed.om.portlet

Examples of org.apache.jetspeed.om.portlet.Preference.addValue()


        Preference pref = prefs.getPortletPreference(prefName);
        if (pref == null)
        {
            pref = prefs.addPreference(prefName);
            pref.setReadOnly(false);
            pref.addValue(keywords);           
        }
        else
        {
            return modifyPref(prefName, keywords, prefs);          
        }       
View Full Code Here


                        .getService(CommonPortletServices.CPS_PORTLET_PREFERENCES_PROVIDER);
                   
                    if (newName != null && newValue != null)
                    {
                        Preference pref = def.getPortletPreferences().addPreference(newName);
                        pref.addValue(newValue);
                       
                        prefProvider.storeDefaults(def, pref);
                       
                        newName = null;
                        newValue = null;
View Full Code Here

        {
            Preference p = preferences.addPreference(pref.getName());
            p.setReadOnly(pref.isReadOnly());
            for (String s : pref.getValues())
            {
                p.addValue(s);
            }
        }
        return preferences;
    }
View Full Code Here

            Preference copyPref = copy.addDescriptorPreference(pref.getName());
            copyPref.setReadOnly(pref.isReadOnly());
           
            for (String value : pref.getValues())
            {
                copyPref.addValue(value);
            }           
        }
        try
        {
            preferenceService.storeDefaults(copy, (Preferences)null);
View Full Code Here

                        .getService(CommonPortletServices.CPS_PORTLET_PREFERENCES_PROVIDER);
                   
                    if (newName != null && newValue != null)
                    {
                        Preference pref = def.getPortletPreferences().addPreference(newName);
                        pref.addValue(newValue);
                       
                        prefProvider.storeDefaults(def, pref);
                       
                        newName = null;
                        newValue = null;
View Full Code Here

        Preference pref = prefs.getPortletPreference(prefName);
        if (pref == null)
        {
            pref = prefs.addPreference(prefName);
            pref.setReadOnly(false);
            pref.addValue(keywords);           
        }
        else
        {
            return modifyPref(prefName, keywords, prefs);          
        }       
View Full Code Here

        Preference pref = portlet.getPortletPreferences().getPortletPreference(prefName);       
        if (pref == null)
        {
            portlet.getPortletPreferences().addPreference(prefName);
            pref = portlet.getPortletPreferences().getPortletPreference(prefName);
            pref.addValue(keywords);
        }
        else
        {
            return modifyPref(prefName, keywords, portlet);          
        }       
View Full Code Here

        initParam.setParamValue("test value");
        initParam.addDescription(lang).setDescription("This is a test portlet parameter");
       
        Preferences prefs = portlet.getPortletPreferences();
        Preference pref = prefs.addPreference("pref1");
        pref.addValue("1");

        registry.registerPortletApplication(app);
    }

    protected String getBeanDefinitionFilterCategories()
View Full Code Here

        initParam.setParamValue("test value");
        initParam.addDescription(lang).setDescription("This is a test portlet parameter");

        Preferences prefs = portlet.getPortletPreferences();
        Preference pref = prefs.addPreference("preference 1");
        pref.addValue("value 1");
        pref.addValue("value 2");

        Language language = portlet.addLanguage(Locale.getDefault());
        language.setTitle("Portlet 1");
        language.setShortTitle("Portlet 1");
View Full Code Here

        initParam.addDescription(lang).setDescription("This is a test portlet parameter");

        Preferences prefs = portlet.getPortletPreferences();
        Preference pref = prefs.addPreference("preference 1");
        pref.addValue("value 1");
        pref.addValue("value 2");

        Language language = portlet.addLanguage(Locale.getDefault());
        language.setTitle("Portlet 1");
        language.setShortTitle("Portlet 1");
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.