@Override
protected void makeLine(AcademicServiceRequest request) {
IDocumentRequest document = (IDocumentRequest) request;
addCell("Código", document.getRegistryCode().getCode());
addCell("Tipo de Documento", BundleUtil.getString(Bundle.ENUMERATION, document.getDocumentRequestType().name()));
CycleType cycle = null;
switch (document.getDocumentRequestType()) {
case REGISTRY_DIPLOMA_REQUEST:
cycle = ((IRegistryDiplomaRequest) document).getRequestedCycle();
break;
case DIPLOMA_REQUEST:
cycle = ((IDiplomaRequest) document).getWhatShouldBeRequestedCycle();
break;
case DIPLOMA_SUPPLEMENT_REQUEST:
cycle = ((IDiplomaSupplementRequest) document).getRequestedCycle();
break;
default:
addCell("Ciclo", null);
}
addCell("Ciclo", cycle != null ? BundleUtil.getString(Bundle.ENUMERATION, cycle.name()) : null);
if (document.isRequestForRegistration()) {
addCell("Tipo de Curso", BundleUtil.getString(Bundle.ENUMERATION,
((RegistrationAcademicServiceRequest) document).getDegreeType().name()));
} else if (document.isRequestForPhd()) {