/** * @return to official search property result screen * @description searches property based on Boundary : zone and ward */ @ValidationErrorPage(value = "new") @Action(value = "/search/searchProperty-srchByBndry") public String srchByBndry() { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Entered into srchByBndry method"); LOGGER.debug( "srchByBndry : Zone Id : " + zoneId + ", " + "ward Id : " + wardId + ", " + "House Num : " + houseNumBndry + ", " + "Owner Name : " + ownerNameBndry); } final String strZoneNum = boundaryService.getBoundaryById(zoneId).getName(); final String strWardNum = boundaryService.getBoundaryById(wardId).getName(); if (zoneId != null && zoneId != -1 && wardId != null && wardId != -1) try { final List<PropertyMaterlizeView> propertyList = propertyService.getPropertyByBoundary(zoneId, wardId, ownerNameBndry, houseNumBndry); for (final PropertyMaterlizeView propMatview : propertyList) { if (LOGGER.isDebugEnabled()) LOGGER.debug("srchByBndry : Property : " + propMatview); setSearchResultList(getResultsFromMv(propMatview)); } setSearchUri("../search/searchProperty-srchByBndry.action"); setSearchCriteria("Search By Zone, Ward, Plot No/House No, Owner Name"); setSearchValue( "Zone Num: " + strZoneNum + ", Ward Num: " + strWardNum + ", Plot No/House No: " + houseNumBndry + ", Owner Name: " + ownerNameBndry); } catch (final Exception e) { LOGGER.error("Exception in Search Property By Bndry ", e); throw new ApplicationRuntimeException("Exception : " + e); } if (LOGGER.isDebugEnabled()) LOGGER.debug("Exit from srchByBndry method"); return TARGET; }