static private class BindPersonToCandidacy extends Activity<SecondCycleIndividualCandidacyProcess> {
@Override
public void checkPreConditions(SecondCycleIndividualCandidacyProcess process, User userView) {
if (!isAllowedToManageProcess(process, userView)) {
throw new PreConditionNotValidException();
}
if (process.isCandidacyInternal()) {
throw new PreConditionNotValidException();
}
if (process.isCandidacyCancelled()) {
throw new PreConditionNotValidException();
}
}