/** * @return to official search property result screen * @description searches property based on location boundary */ @ValidationErrorPage(value = "new") @Action(value = "/search/searchProperty-srchByLocation") public String srchByLocation() { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Entered into srchByArea method"); LOGGER.debug( "srchByLocation : Location Id : " + locationId + ", " + "Owner Name : " + ownerName + ", " + "Plot No/House No : " + houseNumArea); } final String strLocationNum = boundaryService.getBoundaryById(locationId.longValue()).getName(); if (null != ownerName && org.apache.commons.lang.StringUtils.isNotEmpty(ownerName) && locationId != null && locationId != -1) try { final List<PropertyMaterlizeView> propertyList = propertyService.getPropertyByLocation(locationId, houseNumArea, ownerName); for (final PropertyMaterlizeView propMatview : propertyList) { if (LOGGER.isDebugEnabled()) LOGGER.debug("srchByLocation : Property : " + propMatview); setSearchResultList(getResultsFromMv(propMatview)); } setSearchUri("../search/searchProperty-srchByLocation.action"); setSearchCriteria("Search By Location, Owner Name"); setSearchValue("Location : " + strLocationNum + ", Owner Name : " + ownerName); } catch (final Exception e) { LOGGER.error("Exception in Search Property By Location ", e); throw new ApplicationRuntimeException("Exception : " + e); } if (LOGGER.isDebugEnabled()) LOGGER.debug("Exit from srchByArea method"); return TARGET; }