this.portletDefinition = portletDefinition;
}
public void store() throws IOException {
try {
IPortletPreferencesStore portletPrefsStore = PortletPreferencesStoreFactory.getPortletPreferencesStoreImpl();
int userId = person.getID();
int layoutId = Integer.parseInt(layout.getId());
String channelDescId = channelDescription.getId();
portletPrefsStore.setEntityPreferences(userId, layoutId, channelDescId, preferences);
// Save preferences as original preferences
originalPreferences = new PreferenceSetImpl();
((PreferenceSetImpl)originalPreferences).addAll(preferences);