001    /*
002     * Copyright (c) OSGi Alliance (2001, 2008). All Rights Reserved.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.osgi.service.useradmin;
017    
018    /**
019     * Listener for UserAdminEvents.
020     * 
021     * <p>
022     * <code>UserAdminListener</code> objects are registered with the Framework
023     * service registry and notified with a <code>UserAdminEvent</code> object when a
024     * <code>Role</code> object has been created, removed, or modified.
025     * <p>
026     * <code>UserAdminListener</code> objects can further inspect the received
027     * <code>UserAdminEvent</code> object to determine its type, the <code>Role</code>
028     * object it occurred on, and the User Admin service that generated it.
029     * 
030     * @see UserAdmin
031     * @see UserAdminEvent
032     * 
033     * @version $Revision: 5673 $
034     */
035    public interface UserAdminListener {
036            /**
037             * Receives notification that a <code>Role</code> object has been created,
038             * removed, or modified.
039             * 
040             * @param event The <code>UserAdminEvent</code> object.
041             */
042            public void roleChanged(UserAdminEvent event);
043    }