/** * . This is the Getter Method for OrganizationName * * @return Returns organizationName. */ public String getOrganizationName() { Organization organization = getOrganization(); if (organization != null) { return organization.getOrganizationName(); } else { return organizationName; } }
/** * This method returns ReportEntity informations including ReportEntityType,ReportEntityIsPrime * and OrganizationName,CongressionalDistrict information for the Prime. * * @return ReportEntity object containing organization and Congressional District details for * prime. */ private ReportEntity getReportEntity() { ReportEntity reportEntity = ReportEntity.Factory.newInstance(); reportEntity.setReportEntityType(ReportEntityDataType.PRIME); reportEntity.setReportEntityIsPrime(YesNoDataType.YES); Prime prime = Prime.Factory.newInstance(); Organization organization = null; organization = pdDoc.getDevelopmentProposal().getApplicantOrganization().getOrganization(); if (organization != null) { if (organization.getOrganizationName() != null) { if (organization.getOrganizationName().length() > ORGANIZATON_NAME_MAX_LENGTH) { prime.setOrganizationName( organization.getOrganizationName().substring(0, ORGANIZATON_NAME_MAX_LENGTH)); } else { prime.setOrganizationName(organization.getOrganizationName()); } } if (organization.getCongressionalDistrict() != null) { if (organization.getCongressionalDistrict().length() > CONGRESSIONAL_DISTRICT_MAX_LENGTH) { prime.setCongressionalDistrict( organization .getCongressionalDistrict() .substring(0, CONGRESSIONAL_DISTRICT_MAX_LENGTH)); } else { prime.setCongressionalDistrict(organization.getCongressionalDistrict()); } } } prime.setReportEntityType(ReportEntityDataType.PRIME); Rolodex rolodex = null; rolodex = pdDoc.getDevelopmentProposal().getApplicantOrganization().getRolodex(); prime.setAddress(globLibV10Generator.getAddressDataType(rolodex)); reportEntity.setPrime(prime); return reportEntity; }