@Override protected void removeConfig(SecurityUserGroupServiceConfig config) throws Exception { getSecurityManager().removeUserGroupService(config); } }
@Override protected void removeConfig(SecurityUserGroupServiceConfig config) throws Exception { getSecurityManager().removeUserGroupService(config); } }
@Override protected void removeConfig(SecurityUserGroupServiceConfig config) throws Exception { getSecurityManager().removeUserGroupService(config); } }
protected static GeoServerUserGroupService createH2UserGroupService( String serviceName, GeoServerSecurityManager securityManager) throws Exception { if (securityManager.listUserGroupServices().contains(serviceName)) { GeoServerUserGroupService service = securityManager.loadUserGroupService(serviceName); if (service.canCreateStore()) { GeoServerUserGroupStore store = service.createStore(); store.clear(); store.store(); } SecurityUserGroupServiceConfig old = securityManager.loadUserGroupServiceConfig(serviceName); securityManager.removeUserGroupService(old); } securityManager.saveUserGroupService(createConfigObjectH2(serviceName, securityManager)); return securityManager.loadUserGroupService(serviceName); }
validator.validateRemoveUserGroupService(config); fail("no name should fail"); getSecurityManager().removeUserGroupService(config); } catch (SecurityConfigException ex) { assertEquals(NAME_REQUIRED, ex.getId());