protected void addCopyLink( BusinessObject businessObject, List<String> pkNames, List<HtmlData> htmlDataList, String hrefPattern, String methodToCall) { AnchorHtmlData htmlData = getUrlData(businessObject, methodToCall, pkNames); AwardDocument document = ((Award) businessObject).getAwardDocument(); htmlData.setHref( String.format(hrefPattern, document.getDocumentNumber(), getDocumentTypeName())); htmlDataList.add(htmlData); }
/** * @param award * @return */ protected AnchorHtmlData getOpenLink(Award award, Boolean viewOnly) { AwardDocument awardDocument = award.getAwardDocument(); AnchorHtmlData htmlData = new AnchorHtmlData(); htmlData.setDisplayText("open"); Properties parameters = new Properties(); parameters.put(KNSConstants.DISPATCH_REQUEST_PARAMETER, KNSConstants.DOC_HANDLER_METHOD); parameters.put(KNSConstants.PARAMETER_COMMAND, KEWConstants.DOCSEARCH_COMMAND); parameters.put(KNSConstants.DOCUMENT_TYPE_NAME, getDocumentTypeName()); parameters.put("viewDocument", viewOnly.toString()); parameters.put("docOpenedFromAwardSearch", "true"); parameters.put("docId", awardDocument.getDocumentNumber()); parameters.put("placeHolderAwardId", award.getAwardId().toString()); String href = UrlFactory.parameterizeUrl("../" + getHtmlAction(), parameters); htmlData.setHref(href); return htmlData; }