Example #1
0
  public String getParentBreadCrumbPageTitle() {
    NavigationType currentPageType = getCurrentPageType();

    if (currentPageType.isBulk()) {
      return "Bulk Parking Space Management";

    } else if (currentPageType.isSingle()) {
      NavigationMode currentPageMode = getCurrentPageMode();

      if (currentPageMode.isAddMode()) {
        return "ADD Parking Space";
      } else if (currentPageMode.isEditMode()) {
        return "EDIT Parking Space";
      }
    }

    return "Parking Space";
  }
Example #2
0
  private void moveOn() {

    String backTo = NavigationFlow.ERROR.name();

    NavigationType currentPageType = getCurrentPageType();

    if (currentPageType.isSingle()) {
      NavigationMode currentPageMode = getCurrentPageMode();

      if (currentPageMode.isAddMode()) {
        backTo = NavigationFlow.AddParkingSpace.name();
      } else if (currentPageMode.isEditMode()) {
        backTo = NavigationFlow.EditParkingSpace.name();
      }

    } else if (currentPageType.isBulk()) {
      backTo = NavigationFlow.BulkEditParkingSpace.name();
    }

    setSessionScopeValue(SessionScopeKey.NAVIGATION_INFO.getKey(), backTo);
  }