Examples of PreferenceInputType


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

            if (!this.portletPreferences.containsKey(pref.getName())) {
              this.portletPreferences.put(pref.getName(), new StringListAttribute());
            }
           
            // 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());
                }
View Full Code Here

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

           
            final List<Preference> preferences = step.getPreferences();
            if (preferences != null) {
                for (final Preference preference : preferences) {
                    final JAXBElement<? extends PreferenceInputType> preferenceInput = preference.getPreferenceInput();
                    final PreferenceInputType preferenceInputType = preferenceInput.getValue();
                    if (preferenceInputType instanceof MultiValuedPreferenceInputType) {
                        final MultiValuedPreferenceInputType multiValuedPreferenceInputType = (MultiValuedPreferenceInputType)preferenceInputType;
                        final List<String> defaultValues = multiValuedPreferenceInputType.getDefaults();
                        if (defaultValues != null && !defaultValues.isEmpty()) {
                            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.