package net.sourceforge.fenixedu.dataTransferObject.messaging; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import net.sourceforge.fenixedu.domain.student.Registration; public class RegistrationsBean implements Serializable { private Registration selected; private List registrations; public RegistrationsBean() { this.selected = null; } public List getRegistrations() { List result = new ArrayList(); for (Registration registration : registrations) { result.add(registration); } return result; } public void setRegistrations(List registrations) { this.registrations = new ArrayList(); for (Registration registration : registrations) { this.registrations.add(registration); } } public Registration getSelected() { return selected; } public void setSelected(Registration selected) { this.selected = selected; } }