예제 #1
0
  @ValidationErrorPage(value = "new")
  @Action(value = "/search/searchProperty-srchByMobileNumber")
  public String srchByMobileNumber() {
    if (LOGGER.isDebugEnabled())
      LOGGER.debug("Entered into srchByMobileNumber  method. Mobile No : " + mobileNumber);
    if (StringUtils.isNotBlank(mobileNumber))
      try {
        final List<PropertyMaterlizeView> propertyList =
            propertyService.getPropertyByMobileNumber(mobileNumber);
        for (final PropertyMaterlizeView propMatview : propertyList) {
          if (LOGGER.isDebugEnabled()) LOGGER.debug("srchByBndry : Property : " + propMatview);
          setSearchResultList(getResultsFromMv(propMatview));
        }
        if (mobileNumber != null && !mobileNumber.equals(""))
          setSearchValue("Mobile Number : " + mobileNumber);
        setSearchUri("../search/searchProperty-srchByMobileNumber.action");
        setSearchCriteria("Search By Mobile Number");
        setSearchValue("Mobile number :" + mobileNumber);

      } catch (final Exception e) {
        LOGGER.error("Exception in Search Property By MobileNumber number ", e);
        throw new ApplicationRuntimeException("Exception : ", e);
      }
    if (LOGGER.isDebugEnabled()) LOGGER.debug("Exit from srchByMobileNumber method ");
    return TARGET;
  }