Mercurial > hg > LGServices
diff src/main/java/de/mpiwg/web/jsp/JSPProxy.java @ 32:74fe1518bc5c
new: sorting and filters in homepage for branch list
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 25 Sep 2015 14:30:46 +0200 |
parents | c8d367a4bbcd |
children | 2e1662afc81c |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/web/jsp/JSPProxy.java Thu Sep 24 13:35:39 2015 +0200 +++ b/src/main/java/de/mpiwg/web/jsp/JSPProxy.java Fri Sep 25 14:30:46 2015 +0200 @@ -64,8 +64,39 @@ if(StringUtils.equals(action, "deleteBranch")){ getSessionBean().getHomePage().deleteBranch(); - }else if(StringUtils.equals(action, "reloadBranches")){ + } else if(StringUtils.equals(action, "reloadBranches")){ getSessionBean().getHomePage().reloadBranches(); + } + // zoe add for sorting in home page, which shows user's branches + else if (StringUtils.equals(action, "forceReloadBranches")) { + getSessionBean().getHomePage().forceLoadBranches();; + } else if(StringUtils.equals(action, "filter")){ + getSessionBean().getHomePage().filter(); + } + else if(StringUtils.equals(action, "sortByBranchIdUp")) { + getSessionBean().getHomePage().sortByBranchIdUp(); + } else if(StringUtils.equals(action, "sortByBranchIdDown")) { + getSessionBean().getHomePage().sortByBranchIdDown(); + } else if(StringUtils.equals(action, "sortByBookNameUp")) { + getSessionBean().getHomePage().sortByBookNameUp(); + } else if(StringUtils.equals(action, "sortByBookNameDown")) { + getSessionBean().getHomePage().sortByBookNameDown(); + } else if(StringUtils.equals(action, "sortByPeriodUp")) { + getSessionBean().getHomePage().sortByPeriodUp(); + } else if(StringUtils.equals(action, "sortByPeriodDown")) { + getSessionBean().getHomePage().sortByPeriodDown(); + } else if(StringUtils.equals(action, "sortBySectionNameUp")) { + getSessionBean().getHomePage().sortBySectionNameUp(); + } else if(StringUtils.equals(action, "sortBySectionNameDown")) { + getSessionBean().getHomePage().sortBySectionNameDown(); + } else if(StringUtils.equals(action, "sortByLabelUp")) { + getSessionBean().getHomePage().sortByLabelUp(); + } else if(StringUtils.equals(action, "sortByLabelDown")) { + getSessionBean().getHomePage().sortByLabelDown(); + } else if(StringUtils.equals(action, "sortByLastModifiedUp")) { + getSessionBean().getHomePage().sortByLastModifiedUp(); + } else if(StringUtils.equals(action, "sortByLastModifiedDown")) { + getSessionBean().getHomePage().sortByLastModifiedDown(); } return HomePage.page;