@Override protected List<GeoServerUserGroup> getItems() { SortedSet<GeoServerUserGroup> groups = null; try { GeoServerUserGroupService service = null; if (userGroupServiceName != null) service = getApplication() .getSecurityManager() .loadUserGroupService(userGroupServiceName); if (service == null) groups = new TreeSet<GeoServerUserGroup>(); else groups = service.getUserGroups(); } catch (IOException e) { throw new RuntimeException(e); } List<GeoServerUserGroup> groupList = new ArrayList<GeoServerUserGroup>(); groupList.addAll(groups); return groupList; }
GroupListProvider provider = new GroupListProvider(serviceName); add(groups = new GeoServerTablePanel<GeoServerUserGroup>("table", provider, true) {
GroupListProvider provider = new GroupListProvider(serviceName); add(groups = new GeoServerTablePanel<GeoServerUserGroup>("table", provider, true) {
@Override protected List<GeoServerUserGroup> getItems() { SortedSet<GeoServerUserGroup> groups=null; try { GeoServerUserGroupService service = null; if (userGroupServiceName!=null) service = getApplication().getSecurityManager().loadUserGroupService(userGroupServiceName); if (service==null) groups=new TreeSet<GeoServerUserGroup>(); else groups=service.getUserGroups(); } catch (IOException e) { throw new RuntimeException(e); } List<GeoServerUserGroup> groupList = new ArrayList<GeoServerUserGroup>(); groupList.addAll(groups); return groupList; }
GroupListProvider provider = new GroupListProvider(serviceName); add( groups =
@Override protected List<GeoServerUserGroup> getItems() { SortedSet<GeoServerUserGroup> groups=null; try { GeoServerUserGroupService service = null; if (userGroupServiceName!=null) service = getApplication().getSecurityManager().loadUserGroupService(userGroupServiceName); if (service==null) groups=new TreeSet<GeoServerUserGroup>(); else groups=service.getUserGroups(); } catch (IOException e) { throw new RuntimeException(e); } List<GeoServerUserGroup> groupList = new ArrayList<GeoServerUserGroup>(); groupList.addAll(groups); return groupList; }