package net.sourceforge.fenixedu.dataTransferObject.research.activity; import java.io.Serializable; import java.util.List; import net.sourceforge.fenixedu.domain.DomainObject; import net.sourceforge.fenixedu.domain.DomainReference; import net.sourceforge.fenixedu.domain.research.activity.Cooperation; import net.sourceforge.fenixedu.domain.research.activity.Participation.ResearchActivityParticipationRole; public class CooperationParticipantBean extends ParticipantBean implements Serializable { DomainReference cooperation; public CooperationParticipantBean() { super(); this.setCooperation(null); } public Cooperation getCooperation() { return this.cooperation.getObject(); } public void setCooperation(Cooperation cooperation) { this.cooperation = new DomainReference(cooperation); } @Override public List getAllowedRoles() { return ResearchActivityParticipationRole.getAllBilateralCooperationRoles(); } @Override public DomainObject getActivity() { return getCooperation(); } }