use of org.apache.openmeetings.backup.converter.AppointmentConverter in project openmeetings by apache.
the class BackupImport method importMeetingMembers.
/*
* ##################### Import MeetingMembers
*
* Reminder Invitations will be NOT send!
*/
private void importMeetingMembers(File f) throws Exception {
log.info("Appointement import complete, starting meeting members import");
Registry registry = new Registry();
Strategy strategy = new RegistryStrategy(registry);
Serializer ser = new Persister(strategy);
registry.bind(User.class, new UserConverter(userDao, userMap));
registry.bind(Appointment.class, new AppointmentConverter(appointmentDao, appointmentMap));
List<MeetingMember> list = readList(ser, f, "meetingmembers.xml", "meetingmembers", MeetingMember.class);
for (MeetingMember ma : list) {
ma.setId(null);
meetingMemberDao.update(ma);
}
}
Aggregations