.append(infoExecutionCourse.getAcademicInterval().getResumedRepresentationInStringFormat())
.append("&curricular_year_oid=").append(infoCurricularYear.getExternalId())
.append("&execution_degree_oid=").append(infoExecutionDegree.getExternalId()).append("'>")
.append(lesson.getInfoShift().getShiftTypesCodePrettyPrint()).append("</a>").append(") ");
final Space allocatableSpace = lesson.getAllocatableSpace();
if (allocatableSpace != null) {
/*strBuffer.append(" <a href='");
strBuffer.append(context).append("/resourceAllocationManager/");
strBuffer.append("pesquisarSala.do?name=").append(allocatableSpace.getName()).append("'>")
.append(allocatableSpace.getName()).append("</a>");*/
strBuffer.append(allocatableSpace.getName());
}
if (lesson.getFrequency().equals(FrequencyType.BIWEEKLY)) {
strBuffer.append(" [Q]");
}
} else if (showOccupation instanceof InfoLessonInstance) {
InfoLessonInstance lesson = (InfoLessonInstance) showOccupation;
strBuffer.append(lesson.getInfoShift().getInfoDisciplinaExecucao().getSigla());
final InfoShift infoShift = lesson.getInfoShift();
InfoExecutionCourse infoExecutionCourse = infoShift.getInfoDisciplinaExecucao();
strBuffer.append(" (");
strBuffer.append("<a href='");
strBuffer.append(context).append("/resourceAllocationManager/")
.append("manageShift.do?method=prepareEditShift&page=0").append("&shift_oid=")
.append(infoShift.getExternalId()).append("&execution_course_oid=")
.append(infoExecutionCourse.getExternalId()).append("&" + PresentationConstants.ACADEMIC_INTERVAL + "=")
.append(infoExecutionCourse.getAcademicInterval().getResumedRepresentationInStringFormat())
.append("&curricular_year_oid=").append(infoCurricularYear.getExternalId())
.append("&execution_degree_oid=").append(infoExecutionDegree.getExternalId()).append("'>")
.append(lesson.getShiftTypeCodesPrettyPrint()).append("</a>").append(") ");
if (lesson.getInfoRoomOccupation() != null) {
/*strBuffer.append(" <a href='");
strBuffer.append(context).append("/resourceAllocationManager/");
strBuffer.append("pesquisarSala.do?name=").append(lesson.getInfoRoomOccupation().getInfoRoom().getNome())
.append("'>").append(lesson.getInfoRoomOccupation().getInfoRoom().getNome()).append("</a>");*/
strBuffer.append(lesson.getInfoRoomOccupation().getInfoRoom().getNome());
}
} else if (showOccupation instanceof InfoLessonInstanceAggregation) {
final InfoLessonInstanceAggregation aggregation = (InfoLessonInstanceAggregation) showOccupation;
final Shift shift = aggregation.getShift();
final ExecutionCourse executionCourse = shift.getExecutionCourse();
strBuffer.append(executionCourse.getSigla());
strBuffer.append(" (");
strBuffer.append("<a href='");
strBuffer.append(context).append("/resourceAllocationManager/")
.append("manageShift.do?method=prepareEditShift&page=0").append("&shift_oid=")
.append(shift.getExternalId()).append("&execution_course_oid=").append(executionCourse.getExternalId())
.append("&" + PresentationConstants.ACADEMIC_INTERVAL + "=")
.append(executionCourse.getAcademicInterval().getResumedRepresentationInStringFormat())
.append("&curricular_year_oid=").append(infoCurricularYear.getExternalId())
.append("&execution_degree_oid=").append(infoExecutionDegree.getExternalId()).append("'>")
.append(shift.getShiftTypesCodePrettyPrint()).append("</a>").append(") ");
final Space allocatableSpace = aggregation.getAllocatableSpace();
if (allocatableSpace != null) {
// strBuffer.append(" <a href='");
// strBuffer.append(context).append("/resourceAllocationManager/");
// strBuffer.append("pesquisarSala.do?name=").append(allocatableSpace.getName()).append("'>")
// .append(allocatableSpace.getName()).append("</a>");
strBuffer.append(allocatableSpace.getName());
}
} else if (showOccupation instanceof InfoExam) {
InfoExam infoExam = (InfoExam) showOccupation;
for (int iterEC = 0; iterEC < infoExam.getAssociatedExecutionCourse().size(); iterEC++) {