@Override protected void checkParameters(final CandidacyProcess candidacyProcess) { if (candidacyProcess == null || !candidacyProcess.hasCandidacyPeriod()) { throw new DomainException( "error.DegreeChangeIndividualCandidacyProcess.invalid.candidacy.process"); } }
/** Set context information used by intro page */ protected void setMainCandidacyProcessInformation( final HttpServletRequest request, final CandidacyProcess process) { request.setAttribute("process", process); request.setAttribute("processName", getParentProcessType().getSimpleName()); request.setAttribute("canCreateProcess", canCreateProcess(getParentProcessType().getName())); request.setAttribute( "processActivities", process.getAllowedActivities(AccessControl.getUserView())); request.setAttribute("canCreateChildProcess", canCreateProcess(getProcessType().getName())); request.setAttribute("childProcessName", getProcessType().getSimpleName()); request.setAttribute("childProcesses", process.getChildProcesses()); request.setAttribute( "executionIntervalId", process.getCandidacyExecutionInterval().getIdInternal()); request.setAttribute( "executionIntervals", ExecutionInterval.readExecutionIntervalsWithCandidacyPeriod( process.getCandidacyPeriod().getClass())); }