Examples of SingleValuedPreferenceInputType


Examples of org.jasig.portal.portletpublishing.xml.SingleValuedPreferenceInputType

            }
           
            // use the default value if one exists
            PreferenceInputType input = pref.getPreferenceInput().getValue();
            if (input instanceof SingleValuedPreferenceInputType) {
                SingleValuedPreferenceInputType singleValued = (SingleValuedPreferenceInputType) input;
                if (singleValued.getDefault() != null) {
                    this.portletPreferences.get(pref.getName()).getValue().add(singleValued.getDefault());
                }
            } else if (input instanceof MultiValuedPreferenceInputType) {
                            MultiValuedPreferenceInputType multiValued = (MultiValuedPreferenceInputType) input;
                            if (multiValued.getDefaults() != null) {
                                this.portletPreferences.get(pref.getName()).getValue().addAll(multiValued.getDefaults());
View Full Code Here

Examples of org.jasig.portal.portletpublishing.xml.SingleValuedPreferenceInputType

                        if (defaultValues != null && !defaultValues.isEmpty()) {
                            preferenceNames.add(preference.getName());
                        }
                    }
                    else if (preferenceInputType instanceof SingleValuedPreferenceInputType) {
                        final SingleValuedPreferenceInputType SingleValuedPreferenceInputType = (SingleValuedPreferenceInputType)preferenceInputType;
                        if (SingleValuedPreferenceInputType.getDefault() != null) {
                            preferenceNames.add(preference.getName());
                        }
                    }
                }
            }
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.