package net.sourceforge.fenixedu.domain.candidacy; import pt.ist.fenixWebFramework.services.Service; import net.sourceforge.fenixedu.domain.DegreeCurricularPlan; import net.sourceforge.fenixedu.domain.ExecutionYear; import net.sourceforge.fenixedu.domain.RootDomainObject; public class CandidacyProperties extends CandidacyProperties_Base { public CandidacyProperties(DegreeCurricularPlan degreeCurricularPlan, ExecutionYear executionYear, Boolean hidden, Boolean notAvailable) { super(); setRootDomainObject(RootDomainObject.getInstance()); setDegreeCurricularPlan(degreeCurricularPlan); setExecutionYear(executionYear); setHidden(hidden); setNotAvailable(notAvailable); } @Service public void edit(Boolean hidden, Boolean notAvailable) { setHidden(hidden); setNotAvailable(notAvailable); } @Service public void delete() { removeDegreeCurricularPlan(); removeExecutionYear(); removeRootDomainObject(); super.deleteDomainObject(); } public boolean isHidden() { return Boolean.TRUE == getHidden(); } public boolean isAvailable() { return Boolean.FALSE == getNotAvailable(); } }