protected static GeoServerUserGroupService createUserGroupService( String fixtureId, LiveDbmsDataSecurity data, GeoServerSecurityManager securityManager) throws Exception { securityManager.saveUserGroupService(createConfigObject(fixtureId, data, securityManager)); return securityManager.loadUserGroupService(fixtureId); } }
@Override protected JDBCUserGroupServiceConfig createConfigObject(String serviceName) { return JDBCTestSupport.createConfigObjectH2(serviceName, getSecurityManager()); }
@Override protected JDBCUserGroupServiceConfig createConfigObject(String serviceName) { return JDBCTestSupport.createConfigObjectH2Jndi(serviceName, getSecurityManager()); }
protected static void dropExistingTables(AbstractJDBCService service) throws IOException { Connection con = null; try { con = service.getDataSource().getConnection(); dropExistingTables(service,con); } catch (SQLException ex) { throw new IOException(ex); } finally { try { if (con != null) con.close();} catch (SQLException ex) {};; } }
@Override public GeoServerUserGroupService createUserGroupService(String serviceName) throws Exception { return JDBCTestSupport.createH2UserGroupService(getFixtureId(), getSecurityManager()); } }
@Override public GeoServerRoleService createRoleService(String serviceName) throws Exception { return JDBCTestSupport.createH2RoleService(getFixtureId(), getSecurityManager()); } }
@Override public GeoServerUserGroupService createUserGroupService(String serviceName) throws Exception { return JDBCTestSupport.createUserGroupService( getFixtureId(), (LiveDbmsDataSecurity) getTestData(), getSecurityManager()); }
@Override public GeoServerUserGroupService createUserGroupService(String serviceName) throws Exception { return JDBCTestSupport.createH2UserGroupServiceFromJNDI( getFixtureId(), getSecurityManager()); } }
@Override public GeoServerRoleService createRoleService(String serviceName) throws Exception { return JDBCTestSupport.createRoleService( getFixtureId(), (LiveDbmsDataSecurity) getTestData(), getSecurityManager()); }
@Override public GeoServerRoleService createRoleService(String serviceName) throws Exception { return JDBCTestSupport.createH2RoleServiceFromJNDI(getFixtureId(), getSecurityManager()); } }
public static void dropExistingTables(AbstractJDBCService service) throws IOException { Connection con = null; try { con = service.getDataSource().getConnection(); dropExistingTables(service, con); } catch (SQLException ex) { throw new IOException(ex); } finally { try { if (con != null) con.close(); } catch (SQLException ex) { } ;; } }
@Override public GeoServerUserGroupService createUserGroupService(String serviceName) throws Exception { return JDBCTestSupport.createH2UserGroupService(getFixtureId(), getSecurityManager()); }
@Override public GeoServerRoleService createRoleService(String serviceName) throws Exception { return JDBCTestSupport.createH2RoleService(getFixtureId(), getSecurityManager()); }
@Override public GeoServerUserGroupService createUserGroupService(String serviceName) throws Exception { return JDBCTestSupport.createUserGroupService(getFixtureId(), (LiveDbmsDataSecurity)getTestData(), getSecurityManager()); }
public GeoServerUserGroupService createUserGroupService(String serviceName) throws Exception { return JDBCTestSupport.createH2UserGroupServiceFromJNDI( getFixtureId(), getSecurityManager()); } }
@Override public GeoServerRoleService createRoleService(String serviceName) throws Exception { return JDBCTestSupport.createRoleService(getFixtureId(), (LiveDbmsDataSecurity)getTestData(), getSecurityManager()); }
@Override public GeoServerRoleService createRoleService(String serviceName) throws Exception { return JDBCTestSupport.createH2RoleServiceFromJNDI(getFixtureId(), getSecurityManager()); }
@Override protected void tearDownInternal() throws Exception { super.tearDownInternal(); JDBCRoleStore rs = (JDBCRoleStore) roleStore; JDBCTestSupport.dropExistingTables(rs, rs.getConnection()); roleStore.store(); JDBCUserGroupStore ugs = (JDBCUserGroupStore) ugStore; JDBCTestSupport.dropExistingTables(ugs, ugs.getConnection()); ugStore.store(); }
public GeoServerUserGroupService createUserGroupService(String serviceName) throws Exception { return JDBCTestSupport.createH2UserGroupService(getFixtureId(), getSecurityManager()); } }
@Override public GeoServerRoleService createRoleService(String serviceName) throws Exception { return JDBCTestSupport.createH2RoleService(getFixtureId(), getSecurityManager()); }