bldr.append("\\\\\n"); bldr.append("Implemented using search: "); String searchPage = calcWikiSearchPage(lm.getSearchTypeId()); bldr.append("[" + lm.getSearchTypeId() + "|" + searchPage + "#" + lm.getSearchTypeId() + "]"); List<LookupParamMetadata> configuredParameters = filterConfiguredParams(lm .getParams());
private SearchRequestInfo generateRequest(LookupMetadata versionSearch){ SearchRequestInfo sr = new SearchRequestInfo(); List<SearchParamInfo> params = new ArrayList<SearchParamInfo>(); SearchParamInfo param = new SearchParamInfo(); param.setKey("lu.queryParam.cluVersionIndId"); String versionIndId = programModel.get(ProgramConstants.VERSION_IND_ID); versionIndId = (versionIndId == null ? "":versionIndId); param.getValues().add(versionIndId); params.add(param); sr.setSortDirection(SortDirection.DESC); sr.setParams(params); sr.setSearchKey(versionSearch.getSearchTypeId()); if (versionSearch.getResultSortKey() != null) { sr.setSortColumn(versionSearch.getResultSortKey()); } return sr; }
sr.setNeededTotalResults(false); sr.setSearchKey(lookupMetadata.getSearchTypeId()); sr.setSortColumn(lookupMetadata.getResultSortKey()); LOG.warn("Unable to build search request for " + lookupMetadata.getSearchTypeId() + " translation for id " + searchId);
private void setupDefaultWidget(LookupMetadata inLookupMetadata){ basicWidget = new BasicWidget(config != null && config.canEdit ? new KSTextBox() : new KSLabel()); GWT.log("KSTextBox for " + inLookupMetadata.getSearchTypeId(), null); layout.add(basicWidget.get()); }
sr.setSortColumn(meta.getResultSortKey()); sr.setSearchKey(meta.getSearchTypeId()); return sr;
lookupMDs, searchRequest.getParams()); if (lookupMetadata == null || !nullSafeEquals(lookupMetadata.getSearchTypeId(), selectedSearchKey)) { lookupMetadata = findLookupMetadataByLookupId(selectedSearchKey,
sr.setSearchKey(meta.getSearchTypeId()); return sr;
public SearchSuggestOracle(LookupMetadata lookupMetadata) { this.lookupMetaData = lookupMetadata; this.searchTypeKey = lookupMetaData.getSearchTypeId(); for (LookupParamMetadata param : lookupMetadata.getParams()) { if ((param.getUsage() != null) && param.getUsage().name().equals("DEFAULT")) { this.searchTextKey = param.getKey(); } //Add in any writeaccess never default values to the additional params if(WriteAccess.NEVER.equals(param.getWriteAccess())||param.getDefaultValueString()!=null||param.getDefaultValueList()!=null){ SearchParamInfo searchParam = new SearchParamInfo(); searchParam.setKey(param.getKey()); if(param.getDefaultValueList()==null){ searchParam.getValues().add(param.getDefaultValueString()); }else{ searchParam.setValues(param.getDefaultValueList()); } additionalParams.add(searchParam); } } if (this.searchTextKey == null) { KSErrorDialog.show(new Throwable("Cannot find searchTextKey for " + searchTypeKey) ); } this.searchIdKey = lookupMetadata.getSearchParamIdKey(); this.resultIdKey = lookupMetadata.getResultReturnKey(); this.resultDisplayKey = lookupMetadata.getResultDisplayKey(); this.resultSortKey = lookupMetadata.getResultSortKey(); this.sortDirection = lookupMetadata.getSortDirection(); }
List<SearchParamInfo> params = new ArrayList<SearchParamInfo>(); sr.setSearchKey(lookup.getSearchTypeId());
if (lookupMetadatas != null) { for (LookupMetadata lookupMetadata : lookupMetadatas) { if (nullSafeEquals(lookupMetadata.getSearchTypeId(), searchTypeId)) {