public boolean removeGroup(GeoServerUserGroup group) throws IOException { return getStore().removeGroup(group); }
@Override public boolean removeGroup(GeoServerUserGroup group) throws IOException { if (filterGroup(group) != null) { return delegateAsStore().removeGroup(group); } return false; }
/** * WRITE_LOCK * * @see * org.geoserver.security.GeoServerUserGroupStore#removeGroup(org.geoserver.security.impl.GeoServerUserGroup) */ public boolean removeGroup(GeoServerUserGroup group) throws IOException { writeLock(); try { return getStore().removeGroup(group); } finally { writeUnLock(); } }
public void removeValues(GeoServerUserGroupStore userGroupStore) throws IOException { GeoServerUser user2 = userGroupStore.getUserByUsername("user2"); if (user2 != null) { userGroupStore.removeUser(user2); } GeoServerUserGroup disabledGroup = userGroupStore.getGroupByGroupname("disabledgroup"); if (disabledGroup != null) { userGroupStore.removeGroup(disabledGroup); } }
@DeleteMapping(value = "/service/{serviceName}/group/{group}") public @ResponseStatus(HttpStatus.OK) void deleteGroup( @PathVariable("serviceName") String serviceName, @PathVariable("group") String groupName) throws IOException { GeoServerUserGroupStore store = getStore(serviceName); try { store.removeGroup(getGroup(store, groupName)); } finally { store.store(); } }
ugStore = new UserGroupStoreValidationWrapper(ugService.createStore()); for (GeoServerUserGroup group : removePanel.getRoots()) { ugStore.removeGroup(group);
ugStore = new UserGroupStoreValidationWrapper(ugService.createStore()); for (GeoServerUserGroup group : removePanel.getRoots()) { ugStore.removeGroup(group);
ugService.createStore()); for (GeoServerUserGroup group : removePanel.getRoots()) { ugStore.removeGroup(group);
} catch (IOException ex) { try { store2.removeGroup(group); } catch (IOException ex1) { try {
usergroupStore.removeGroup(theGroup2); tmp = roleStore.getRoleByName("grouprole2a"); roles.remove(tmp);
store.removeGroup(group); assertTrue(store.isModified()); store.load();