new StringListAttribute(new String[]{ param.getValue() }));
this.portletParameterOverrides.put(param.getName(),
new BooleanAttribute(param.getOverride()));
} else {
this.parameters.put(param.getName(),
new Attribute(param.getValue()));
this.parameterOverrides.put(param.getName(),
new BooleanAttribute(param.getOverride()));
}
}
if (def.isPortlet()) {
final IPortletPreferences prefs = portletDef.getPortletPreferences();
for (IPortletPreference pref : prefs.getPortletPreferences()) {
List<Attribute> attributes = new ArrayList<Attribute>();
for (String value : pref.getValues()) {
attributes.add(new Attribute(value));
}
this.portletPreferences.put(pref.getName(), new StringListAttribute(pref.getValues()));
this.portletParameterOverrides.put(pref.getName(), new BooleanAttribute(!pref.isReadOnly()));
}
}