--
--  Copyright (C) 2001, 2002 MIT
--
--  This file is part of dotLRN.
--
--  dotLRN is free software; you can redistribute it and/or modify it under the
--  terms of the GNU General Public License as published by the Free Software
--  Foundation; either version 2 of the License, or (at your option) any later
--  version.
--
--  dotLRN is distributed in the hope that it will be useful, but WITHOUT ANY
--  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
--  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
--  details.
--

--
-- Implementation of the profile provider interface for users.
--
-- @author <a href="mailto:yon@openforce.net">yon@openforce.net</a>
-- @version $Id: user-profile-provider-drop.sql,v 1.3 2002/08/09 20:56:32 yon Exp $
--

declare
    foo                         integer;
begin

    -- drop the binding between this implementation and the interface it
    -- implements.
    acs_sc_binding.delete(
        contract_name => 'profile_provider',
        impl_name => 'user_profile_provider'
    );

    -- drop the bindings to the method implementations

        -- name method
        foo := acs_sc_impl.delete_alias(
            impl_contract_name => 'profile_provider',
            impl_name => 'user_profile_provider',
            impl_operation_name => 'name'
        );

        -- prettyName method
        foo := acs_sc_impl.delete_alias(
            impl_contract_name => 'profile_provider',
            impl_name => 'user_profile_provider',
            impl_operation_name => 'prettyName'
        );

        -- render method
        foo := acs_sc_impl.delete_alias(
            impl_contract_name => 'profile_provider',
            impl_name => 'user_profile_provider',
            impl_operation_name => 'render'
        );

    -- drop the implementation
    acs_sc_impl.delete(
        impl_contract_name => 'profile_provider',
        impl_name => 'user_profile_provider'
    );

end;
/
show errors
