protected void configureMountPaths() { mountPage("admin", adminPageService.getAdminHomePage()); mountPage("sitelist", adminPageService.getSiteListPage()); mountPage("site", adminPageService.getSiteEditPage()); mountPage("period", adminPageService.getPeriodEditPage()); mountPage("userlist", adminPageService.getUserListPage()); mountPage("edituser", adminPageService.getUserEditPage()); mountPage("bulkupdate", adminPageService.getBulkUpdatePage()); mountPage("stats", DatabaseStatisticsPage.class); mountPage("cache", CacheManagementPage.class); mountPage("eventlog", EventLog.class); mountPage("uclog", UserContentLogPage.class); mountPage("ucview", UserContentViewPage.class); mountPage("sessions", SessionListPage.class); }
/** * Return the home page for a particular user Role. This default implementation just returns the * application's generic home page; applications should extend this if they wish to make use of * role-specific home pages. * * @param role The user's role * @return the page class of the home page. */ public Class<? extends Page> getHomePage(Role role) { if (role == Role.ADMIN) return adminPageService.getAdminHomePage(); return getHomePage(); }