package net.sourceforge.fenixedu.domain.student.registrationStates; import java.util.HashSet; import java.util.Set; import net.sourceforge.fenixedu.domain.Person; import net.sourceforge.fenixedu.domain.student.Registration; import net.sourceforge.fenixedu.domain.util.workflow.IState; import org.joda.time.DateTime; /** * * @author rjmvo * */ public class QuittedState extends QuittedState_Base { public QuittedState() { super(); } public QuittedState(final Registration registration, final Person responsiblePerson, final DateTime stateDate) { this(); init(registration, responsiblePerson, stateDate); } @Override public RegistrationStateType getStateType() { return RegistrationStateType.QUITTED; } public void checkConditionsToForward() { } public void checkConditionsToForward(String nextState) { } public Set getValidNextStates() { Set states = new HashSet(); states.add(RegistrationStateType.REGISTERED.name()); return states; } public IState nextState() { return null; } }