1 /* 2 * Copyright 1999-2004 The Apache Software Foundation 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 18 package org.apache.lenya.ac; 19 20 import org.apache.avalon.framework.component.Component; 21 22 /** 23 * An AccreditableManager combines a UserManager, a GroupManager, an IPRangeManager and a 24 * RoleManager. 25 * @verison $Id: AccreditableManager.java 43240 2004-08-16 16:21:22Z andreas $ 26 */ 27 public interface AccreditableManager extends Component { 28 29 /** 30 * Avalon role. 31 */ 32 String ROLE = AccreditableManager.class.getName(); 33 34 /** 35 * Returns the user manager of this access controller. 36 * @return A user manager. 37 * @throws AccessControlException when something went wrong. 38 */ 39 UserManager getUserManager() throws AccessControlException; 40 41 /** 42 * Returns the group manager of this access controller. 43 * @return A group manager. 44 * @throws AccessControlException when something went wrong. 45 */ 46 GroupManager getGroupManager() throws AccessControlException; 47 48 /** 49 * Returns the role manager of this access controller. 50 * @return A role manager. 51 * @throws AccessControlException when something went wrong. 52 */ 53 RoleManager getRoleManager() throws AccessControlException; 54 55 /** 56 * Returns the IP range manager of this access controller. 57 * @return An IP range manager. 58 * @throws AccessControlException when something went wrong. 59 */ 60 IPRangeManager getIPRangeManager() throws AccessControlException; 61 62 /** 63 * Attaches an item manager listener to this accreditable manager. 64 * @param listener An item manager listener. 65 */ 66 void addItemManagerListener(ItemManagerListener listener); 67 68 /** 69 * Removes an item manager listener from this accreditable manager. 70 * @param listener An item manager listener. 71 */ 72 void removeItemManagerListener(ItemManagerListener listener); 73 74 }