new UserGroupStoreValidationWrapper(ugService.createStore());
GeoServerApplication.get().getSecurityManager() .loadUserGroupService(userGroupsServiceName); ugStore = new UserGroupStoreValidationWrapper(ugService.createStore()); for (GeoServerUserGroup group : removePanel.getRoots()) { ugStore.removeGroup(group);
GeoServerApplication.get().getSecurityManager() .loadUserGroupService(userGroupsServiceName); ugStore = new UserGroupStoreValidationWrapper(ugService.createStore()); for (GeoServerUserGroup group : removePanel.getRoots()) { ugStore.removeGroup(group);
GeoServerUserGroupService ugService = GeoServerApplication.get() .getSecurityManager().loadUserGroupService(userGroupsServiceName); ugStore = new UserGroupStoreValidationWrapper(ugService.createStore()); for (GeoServerUser user : removePanel.getRoots()) { ugStore.removeUser(user);
GeoServerUserGroupService ugService = GeoServerApplication.get() .getSecurityManager().loadUserGroupService(userGroupsServiceName); ugStore = new UserGroupStoreValidationWrapper(ugService.createStore()); for (GeoServerUser user : removePanel.getRoots()) { ugStore.removeUser(user);
try { if (ugService.canCreateStore()) { ugStore = new UserGroupStoreValidationWrapper(ugService.createStore());
try { if (ugService.canCreateStore()) { ugStore = new UserGroupStoreValidationWrapper(ugService.createStore());
.loadUserGroupService(userGroupsServiceName); ugStore = new UserGroupStoreValidationWrapper( ugService.createStore()); for (GeoServerUserGroup group : removePanel.getRoots()) {
try { if (ugService.canCreateStore()) { ugStore = new UserGroupStoreValidationWrapper(ugService.createStore());
.loadUserGroupService(userGroupsServiceName); ugStore = new UserGroupStoreValidationWrapper( ugService.createStore()); for (GeoServerUser user : removePanel.getRoots()) {
try { if (hasUserGroupStore(userGroupServiceName)) { store = new UserGroupStoreValidationWrapper(getUserGroupStore(userGroupServiceName)); store.updateGroup(group); store.store();
try { if (hasUserGroupStore(userGroupServiceName)) { store = new UserGroupStoreValidationWrapper(getUserGroupStore(userGroupServiceName)); store.updateGroup(group); store.store();
if (hasUserGroupStore(userGroupServiceName)) { store = new UserGroupStoreValidationWrapper( getUserGroupStore(userGroupServiceName)); store.updateGroup(group);
protected UserGroupStoreValidationWrapper createStore(String name) throws IOException { MemoryUserGroupServiceConfigImpl config = new MemoryUserGroupServiceConfigImpl(); config.setName(name); config.setPasswordEncoderName(getPBEPasswordEncoder().getName()); config.setPasswordPolicyName(PasswordValidator.DEFAULT_NAME); GeoServerUserGroupService service = new MemoryUserGroupService(); service.setSecurityManager(getSecurityManager()); service.initializeFromConfig(config); return new UserGroupStoreValidationWrapper(service.createStore()); }
@Override protected void onFormSubmit(GeoServerUserGroup group) throws IOException { GeoServerUserGroupStore store=null; try { store = new UserGroupStoreValidationWrapper(getUserGroupStore(userGroupServiceName)); group = store.createGroupObject(group.getGroupname(),group.isEnabled()); store.addGroup(group); store.store(); } catch (IOException ex) { try { store.load(); } catch (IOException ex2) {}; throw ex; } GeoServerRoleStore gaStore=null; try { if (hasRoleStore(getSecurityManager().getActiveRoleService().getName())) { gaStore = getRoleStore(getSecurityManager().getActiveRoleService().getName()); gaStore = new RoleStoreValidationWrapper(gaStore); for (GeoServerRole role : rolePalette.getSelectedRoles()) { gaStore.associateRoleToGroup(role, group.getGroupname()); } gaStore.store(); } } catch (IOException ex) { try {gaStore.load(); } catch (IOException ex2) {}; throw ex; } }
@Override protected void onFormSubmit(GeoServerUserGroup group) throws IOException { GeoServerUserGroupStore store=null; try { store = new UserGroupStoreValidationWrapper(getUserGroupStore(userGroupServiceName)); group = store.createGroupObject(group.getGroupname(),group.isEnabled()); store.addGroup(group); store.store(); } catch (IOException ex) { try { store.load(); } catch (IOException ex2) {}; throw ex; } GeoServerRoleStore gaStore=null; try { if (hasRoleStore(getSecurityManager().getActiveRoleService().getName())) { gaStore = getRoleStore(getSecurityManager().getActiveRoleService().getName()); gaStore = new RoleStoreValidationWrapper(gaStore); for (GeoServerRole role : rolePalette.getSelectedRoles()) { gaStore.associateRoleToGroup(role, group.getGroupname()); } gaStore.store(); } } catch (IOException ex) { try {gaStore.load(); } catch (IOException ex2) {}; throw ex; } }
@Override protected void onFormSubmit(GeoServerUser user) throws IOException,PasswordPolicyException { GeoServerUserGroupStore ugStore = new UserGroupStoreValidationWrapper(getUserGroupStore(ugServiceName)); try { ugStore.addUser(user);
@Override protected void onFormSubmit(GeoServerUser user) throws IOException,PasswordPolicyException { GeoServerUserGroupStore ugStore = new UserGroupStoreValidationWrapper(getUserGroupStore(ugServiceName)); try { ugStore.addUser(user);
GeoServerUserGroupStore store = null; try { store = new UserGroupStoreValidationWrapper(getUserGroupStore(userGroupServiceName)); group = store.createGroupObject(group.getGroupname(), group.isEnabled()); store.addGroup(group);
@Override protected void onFormSubmit(GeoServerUser user) throws IOException, PasswordPolicyException { GeoServerUserGroupStore ugStore = new UserGroupStoreValidationWrapper(getUserGroupStore(ugServiceName)); try { ugStore.addUser(user);