public void init() {
    String firstVisitStr = (String) getReqParamMap().get("firstVisit");
    if (!ERegUtility.isEmptyString(firstVisitStr) && firstVisitStr.equals("true")) {
      this.clearSrcs();

      String callerWindow = (String) getReqParamMap().get("callerWindow");
      if (!ERegUtility.isEmptyString(callerWindow) && callerWindow.equals("stnSrch")) {
        this.setCallerWindow(callerWindow);
        this.setSrcCnty(this.getSearchContext().getDefaultSrcCnty());
      }

      this.getSearchContext().clear();
    }
  }
 public Integer getRowIndex() {
   if (!ERegUtility.isEmptyString(this.getIndex())) {
     this.setRowIndex(new Integer(this.getIndex()));
   } else {
     this.setRowIndex(new Integer(-1));
   }
   return rowIndex;
 }
  public void searchSource() {
    StnWtrSrceSrchDTO dto = new StnWtrSrceSrchDTO();
    if (this.getSrcCnty() != null && this.getSrcCnty().longValue() != 0) {
      dto.setCntyId(this.getSrcCnty());
    }
    if (this.getSrcCtgryCd() != null && this.getSrcCtgryCd().longValue() != 0) {
      dto.setSrceGrpCd(this.getSrcCtgryCd());
    }
    dto.setSrceTpCd(this.getSrc());
    dto.setOffclSrce(this.isOffclSrce());
    if (!ERegUtility.isEmptyString(this.getSrcKeyWrd())) {
      dto.setSrceKeyNm(this.getSrcKeyWrd());
    }

    this.setSourceList(SearchService.getSearchService().getStnWtrSrce(dto));
    if ((this.getSourceList() == null) || (this.getSourceList().size() == 0)) {
      this.addMessage("No Results Found.", FacesMessage.SEVERITY_WARN);
    }
  }
 public void updateIndexSrcDtl() {
   if (!ERegUtility.isEmptyString(this.getIndex())) {
     this.clearSlctSrc();
     this.slctdSrc();
   }
 }