package net.sourceforge.fenixedu.domain.candidacy; import net.sourceforge.fenixedu.domain.RootDomainObject; public class SecondCycleCandidacyReference extends SecondCycleCandidacyReference_Base implements Comparable { public SecondCycleCandidacyReference(SecondCycleCandidacy candidacy, Integer order, String name, String position, String company, String email) { super(); setSecondCycleCandidacy(candidacy); setReferenceOrder(order); setName(name); setPosition(position); setCompany(company); setEmail(email); setRootDomainObject(RootDomainObject.getInstance()); } public int compareTo(SecondCycleCandidacyReference o) { return getReferenceOrder().compareTo(o.getReferenceOrder()); } public void edit(String name, String position, String company, String email) { setName(name); setPosition(position); setCompany(company); setEmail(email); } public void delete() { removeSecondCycleCandidacy(); removeRootDomainObject(); deleteDomainObject(); } }