@Override public void load() throws IOException { delegate.load(); }
public void load() throws IOException { service.load(); }
/** triggers a load on {@link #service} */ @Override protected void doOnChange() { GeoServerUserGroupService theService = getService(); try { if (theService != null) theService.load(); } catch (IOException e) { throw new RuntimeException(e); } }
/** * WRITE_LOCK * * @see org.geoserver.security.GeoServerUserGroupService#load() */ public void load() throws IOException { writeLock(); try { getService().load(); } finally { writeUnLock(); } }
ugService.load();
public void resetUserPassword() throws IOException, PasswordPolicyException { GeoServerUserGroupService service = getSecurityManager().loadUserGroupService(XMLUserGroupService.DEFAULT_NAME); GeoServerUser user = service.getUserByUsername(USERNAME); user.setPassword(USERPW); GeoServerUserGroupStore store = service.createStore(); store.updateUser(user); store.store(); service.load(); }
@Override protected void onSetUp(SystemTestData testData) throws Exception { super.onSetUp(testData); // Create the test restuser if needed GeoServerUserGroupService service = getSecurityManager().loadUserGroupService(XMLUserGroupService.DEFAULT_NAME); if (service.getUserByUsername(USERNAME) == null) { GeoServerUser user = service.createUserObject(USERNAME, USERPW, true); GeoServerUserGroupStore store = service.createStore(); store.addUser(user); store.store(); service.load(); } xp = XMLUnit.newXpathEngine(); }