@Override protected void onClick(AjaxRequestTarget target) { setResponsePage( new EditGroupPage(serviceName, (GeoServerUserGroup) getDefaultModelObject()) .setReturnPage(getPage())); } };
@Override protected List<GeoServerUser> getItems() { GeoServerUserGroupService ugService = getUserGroupService(EditGroupPage.this.userGroupServiceName); try { return new ArrayList<GeoServerUser>(ugService.getUsersForGroup(group)); } catch (IOException e) { throw new WicketRuntimeException(e); } } }).setFilterable(false));
GeoServerUserGroupStore store = null; try { if (hasUserGroupStore(userGroupServiceName)) { store = new UserGroupStoreValidationWrapper(getUserGroupStore(userGroupServiceName)); store.updateGroup(group); store.store(); if (hasRoleStore(getSecurityManager().getActiveRoleService().getName())) { gaStore = getRoleStore(getSecurityManager().getActiveRoleService().getName()); gaStore = new RoleStoreValidationWrapper(gaStore);
public EditGroupPage(String userGroupServiceName,final GeoServerUserGroup group) { super(userGroupServiceName, group.copy()); //copy before passing into parent //name not changeable on edit get("form:groupname").setEnabled(false); ((Form)get("form")).add(new UserTablePanel("users", userGroupServiceName, new GeoServerDataProvider<GeoServerUser>() { @Override protected List<GeoServerDataProvider.Property<GeoServerUser>> getProperties() { return Arrays.asList(UserListProvider.USERNAME); } @Override protected List<GeoServerUser> getItems() { GeoServerUserGroupService ugService = getUserGroupService(EditGroupPage.this.userGroupServiceName); try { return new ArrayList<GeoServerUser>(ugService.getUsersForGroup(group)); } catch (IOException e) { throw new WicketRuntimeException(e); } } }).setFilterable(false)); }
GeoServerUserGroupStore store = null; try { if (hasUserGroupStore(userGroupServiceName)) { store = new UserGroupStoreValidationWrapper(getUserGroupStore(userGroupServiceName)); store.updateGroup(group); store.store(); if (hasRoleStore(getSecurityManager().getActiveRoleService().getName())) { gaStore = getRoleStore(getSecurityManager().getActiveRoleService().getName()); gaStore = new RoleStoreValidationWrapper(gaStore);
public EditGroupPage(String userGroupServiceName,final GeoServerUserGroup group) { super(userGroupServiceName, group.copy()); //copy before passing into parent //name not changeable on edit get("form:groupname").setEnabled(false); ((Form)get("form")).add(new UserTablePanel("users", userGroupServiceName, new GeoServerDataProvider<GeoServerUser>() { @Override protected List<GeoServerDataProvider.Property<GeoServerUser>> getProperties() { return Arrays.asList(UserListProvider.USERNAME); } @Override protected List<GeoServerUser> getItems() { GeoServerUserGroupService ugService = getUserGroupService(EditGroupPage.this.userGroupServiceName); try { return new ArrayList<GeoServerUser>(ugService.getUsersForGroup(group)); } catch (IOException e) { throw new WicketRuntimeException(e); } } }).setFilterable(false)); }
GeoServerUserGroupStore store = null; try { if (hasUserGroupStore(userGroupServiceName)) { store = new UserGroupStoreValidationWrapper( getUserGroupStore(userGroupServiceName)); store.updateGroup(group); store.store(); if (hasRoleStore(getSecurityManager().getActiveRoleService().getName())) { gaStore = getRoleStore(getSecurityManager().getActiveRoleService().getName()); gaStore = new RoleStoreValidationWrapper(gaStore);
@Override protected void onClick(AjaxRequestTarget target) { setResponsePage(new EditGroupPage(serviceName,(GeoServerUserGroup) getDefaultModelObject()) .setReturnPage(getPage())); } };
@Override protected List<GeoServerUser> getItems() { GeoServerUserGroupService ugService = getUserGroupService(EditGroupPage.this.userGroupServiceName); try { return new ArrayList<GeoServerUser>(ugService.getUsersForGroup(group)); } catch (IOException e) { throw new WicketRuntimeException(e); } } }).setFilterable(false));
@Override protected void onClick(AjaxRequestTarget target) { setResponsePage(new EditGroupPage(serviceName,(GeoServerUserGroup) getDefaultModelObject()) .setReturnPage(getPage())); } };
@Override protected List<GeoServerUser> getItems() { GeoServerUserGroupService ugService = getUserGroupService( EditGroupPage.this .userGroupServiceName); try { return new ArrayList<GeoServerUser>( ugService.getUsersForGroup(group)); } catch (IOException e) { throw new WicketRuntimeException(e); } } })