
|
If you were logged in you would be able to see more operations.
|
|
|
|
When running the ant target crn-export on the entity type of preferences, the target fails due to the getEntityPreferences() method of org.jasig.portal.io.support.PortletEntityPreferenceHandler requiring an Integer as its argument while the crn script (uportal-impl/src/main/resources/org/jasig/portal/io/export-preferences.crn) calls it with a BigDecimal.
As we use Oracle 10g as our DB, this hasn't been tested on other DB platforms.
|
|
Description
|
When running the ant target crn-export on the entity type of preferences, the target fails due to the getEntityPreferences() method of org.jasig.portal.io.support.PortletEntityPreferenceHandler requiring an Integer as its argument while the crn script (uportal-impl/src/main/resources/org/jasig/portal/io/export-preferences.crn) calls it with a BigDecimal.
As we use Oracle 10g as our DB, this hasn't been tested on other DB platforms. |
Show » |
|
public Set<IPortletEntity> getEntityPreferences(Number userIdArg) {
Integer userId = new Integer(userIdArg.intValue()); //Argument might be any number type, but we need to deal with an Integer
final Set<IPortletEntity> portletEntities = this.portletEntityRegistry.getPortletEntitiesForUser(userId);
for (final Iterator<IPortletEntity> entityItr = portletEntities.iterator(); entityItr.hasNext(); ) {
final IPortletEntity portletEntity = entityItr.next();
final IPortletPreferences portletPreferences = portletEntity.getPortletPreferences();
final List<IPortletPreference> preferencesList = portletPreferences.getPortletPreferences();
//Only bother with entities that have preferences
if (preferencesList.size() <= 0) { entityItr.remove(); }
}
return portletEntities;
}