@Override public void onClick() { setResponsePage(new NewUserPage(serviceName).setReturnPage(this.getPage())); } });
public NewUserPage(String userGroupServiceName) { super(userGroupServiceName, new GeoServerUser("")); if (hasUserGroupStore(userGroupServiceName)==false) { throw new IllegalStateException("New user not possible for read only service"); } }
@Override protected void onFormSubmit(GeoServerUser user) throws IOException,PasswordPolicyException { GeoServerUserGroupStore ugStore = new UserGroupStoreValidationWrapper(getUserGroupStore(ugServiceName)); try { ugStore.addUser(user); if (hasRoleStore(getSecurityManager().getActiveRoleService().getName())) { gaStore = getRoleStore(getSecurityManager().getActiveRoleService().getName()); gaStore = new RoleStoreValidationWrapper(gaStore); for (GeoServerRole role : rolePalette.getSelectedRoles()) {
@Override protected void onFormSubmit(GeoServerUser user) throws IOException,PasswordPolicyException { GeoServerUserGroupStore ugStore = new UserGroupStoreValidationWrapper(getUserGroupStore(ugServiceName)); try { ugStore.addUser(user); if (hasRoleStore(getSecurityManager().getActiveRoleService().getName())) { gaStore = getRoleStore(getSecurityManager().getActiveRoleService().getName()); gaStore = new RoleStoreValidationWrapper(gaStore); for (GeoServerRole role : rolePalette.getSelectedRoles()) {
@Override protected void onFormSubmit(GeoServerUser user) throws IOException, PasswordPolicyException { GeoServerUserGroupStore ugStore = new UserGroupStoreValidationWrapper(getUserGroupStore(ugServiceName)); try { ugStore.addUser(user); if (hasRoleStore(getSecurityManager().getActiveRoleService().getName())) { gaStore = getRoleStore(getSecurityManager().getActiveRoleService().getName()); gaStore = new RoleStoreValidationWrapper(gaStore); for (GeoServerRole role : rolePalette.getSelectedRoles()) {
@Override public void onClick() { setResponsePage( new NewUserPage(serviceName).setReturnPage(this.getPage())); } });
public NewUserPage(String userGroupServiceName) { super(userGroupServiceName, new GeoServerUser("")); if (hasUserGroupStore(userGroupServiceName)==false) { throw new IllegalStateException("New user not possible for read only service"); } }
@Override public void onClick() { setResponsePage(new NewUserPage(serviceName).setReturnPage(this.getPage())); } });
public NewUserPage(String userGroupServiceName) { super(userGroupServiceName, new GeoServerUser("")); if (hasUserGroupStore(userGroupServiceName) == false) { throw new IllegalStateException("New user not possible for read only service"); } }