/* * This method will get the type required if input param checked then it is * true.If true means value 1 otherwise 0. */ private String getPrintRequirementTypeRequired( Map<String, Object> reportParameters, String printRequirementType) { String required = null; if (reportParameters.get(printRequirementType) != null && ((Boolean) reportParameters.get(printRequirementType)).booleanValue()) { required = REQUIRED; } else { required = NOT_REQUIRED; } return required; }
/** * This method generates XML for Award Notice Report. It uses data passed in {@link * ResearchDocumentBase} for populating the XML nodes. The XML once generated is returned as * {@link XmlObject} * * @param printableBusinessObject using which XML is generated * @param reportParameters parameters related to XML generation * @return {@link XmlObject} representing the XML */ public Map<String, XmlObject> generateXmlStream( KraPersistableBusinessObjectBase printableBusinessObject, Map<String, Object> reportParameters) { Map<String, XmlObject> xmlObjectList = new LinkedHashMap<String, XmlObject>(); AwardNoticeDocument awardNoticeDocument = AwardNoticeDocument.Factory.newInstance(); initialize((Award) printableBusinessObject); if (award != null) { awardNoticeDocument.setAwardNotice(getAwardNotice(reportParameters)); } xmlObjectList.put(AwardPrintType.AWARD_NOTICE_REPORT.getAwardPrintType(), awardNoticeDocument); return xmlObjectList; }