class AuthScopeRdbmsDao extends AuthScopeDao {

    @Override
    public void update(String scopeName, List<String> userGroups) throws AuthServerException {
        Connection connection = null;
        try {
            connection = getConnection();
            deleteGroups(scopeName, connection);
            persistGroups(scopeName, userGroups, connection);
            connection.commit();
        } catch (SQLException e) {
            throw new AuthServerException("Error occurred while updating groups for scope name : " +
                                                        scopeName, e);
        } finally {
            close(connection);
        }
    }

    public  AuthScopeRdbmsDao(DataSource dataSource);

}