1 /* 2 * $Header: /cvshome/build/org.osgi.service.useradmin/src/org/osgi/service/useradmin/UserAdminListener.java,v 1.8 2006/06/16 16:31:41 hargrave Exp $ 3 * 4 * Copyright (c) OSGi Alliance (2001, 2006). All Rights Reserved. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 package org.osgi.service.useradmin; 19 20 /** 21 * Listener for UserAdminEvents. 22 * 23 * <p> 24 * <code>UserAdminListener</code> objects are registered with the Framework 25 * service registry and notified with a <code>UserAdminEvent</code> object when a 26 * <code>Role</code> object has been created, removed, or modified. 27 * <p> 28 * <code>UserAdminListener</code> objects can further inspect the received 29 * <code>UserAdminEvent</code> object to determine its type, the <code>Role</code> 30 * object it occurred on, and the User Admin service that generated it. 31 * 32 * @see UserAdmin 33 * @see UserAdminEvent 34 * 35 * @version $Revision: 1.8 $ 36 */ 37 public interface UserAdminListener { 38 /** 39 * Receives notification that a <code>Role</code> object has been created, 40 * removed, or modified. 41 * 42 * @param event The <code>UserAdminEvent</code> object. 43 */ 44 public void roleChanged(UserAdminEvent event); 45 } 46