Example #1
0
  /**
   * @return to official search property result screen
   * @description searches property based on Demand
   */
  @ValidationErrorPage(value = "new")
  @Action(value = "/search/searchProperty-searchByDemand")
  public String searchByDemand() {
    if (LOGGER.isDebugEnabled()) {
      LOGGER.debug("Entered into searchByDemand  method");
      LOGGER.debug("From Demand No : " + fromDemand + ", " + "To Demand No : " + toDemand);
    }
    if (fromDemand != null && fromDemand != "" && toDemand != null && toDemand != "")
      try {
        final List<PropertyMaterlizeView> propertyList =
            propertyService.getPropertyByDemand(fromDemand, toDemand);

        for (final PropertyMaterlizeView propMatview : propertyList) {
          if (LOGGER.isDebugEnabled()) LOGGER.debug("searchByDemand : Property : " + propMatview);
          setSearchResultList(getResultsFromMv(propMatview));
        }
        setSearchUri("../search/searchProperty-searchByDemand.action");
        setSearchCriteria("Search By FromDemand, ToDemand");
        setSearchValue("From Demand: " + fromDemand + ", To Demand: " + toDemand);
      } catch (final Exception e) {
        LOGGER.error("Exception in Search Property By Demand ", e);
        throw new ApplicationRuntimeException("Exception : " + e);
      }
    return TARGET;
  }
Example #2
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;
  }
Example #3
0
  @ValidationErrorPage(value = "new")
  @Action(value = "/search/searchProperty-srchByDoorNo")
  public String srchByDoorNo() {
    if (LOGGER.isDebugEnabled())
      LOGGER.debug("Entered into srchByDoorNo  method. Door No : " + doorNo);
    if (null != doorNo)
      try {
        final List<PropertyMaterlizeView> propertyList =
            propertyService.getPropertyByDoorNo(doorNo);
        for (final PropertyMaterlizeView propMatview : propertyList) {
          if (LOGGER.isDebugEnabled()) LOGGER.debug("srchByBndry : Property : " + propMatview);
          setSearchResultList(getResultsFromMv(propMatview));
        }
        if (assessmentNum != null && !assessmentNum.equals(""))
          setSearchValue("Assessment Number : " + assessmentNum);
        setSearchUri("../search/searchProperty-srchByDoorNo.action");
        setSearchCriteria("Search By Door Number");
        setSearchValue("Door number :" + doorNo);

      } catch (final Exception e) {
        LOGGER.error("Exception in Search Property By Door number ", e);
        throw new ApplicationRuntimeException("Exception : ", e);
      }
    if (LOGGER.isDebugEnabled()) LOGGER.debug("Exit from srchByDoorNo method ");
    return TARGET;
  }
Example #4
0
  /**
   * @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;
  }
Example #5
0
  /**
   * @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;
  }