org.apache.lenya.ac
Interface IPRangeManager

All Superinterfaces:
ItemManager
All Known Implementing Classes:
FileIPRangeManager

public interface IPRangeManager
extends ItemManager

An IP range manager.


Method Summary
 void add(IPRange range)
          Add the given IP range
 IPRange getIPRange(java.lang.String rangeId)
          Get the IPRange with the given id.
 IPRange[] getIPRanges()
          Get all IP ranges.
 void remove(IPRange range)
          Remove the given IP range
 
Methods inherited from interface org.apache.lenya.ac.ItemManager
addItemManagerListener, removeItemManagerListener
 

Method Detail

getIPRanges

IPRange[] getIPRanges()
Get all IP ranges.

Returns:
an array of IP ranges.

add

void add(IPRange range)
         throws AccessControlException
Add the given IP range

Parameters:
range - IP range that is to be added
Throws:
AccessControlException - when the IP range is already contained.

remove

void remove(IPRange range)
            throws AccessControlException
Remove the given IP range

Parameters:
range - IP range that is to be removed
Throws:
AccessControlException - when the IP range is not contained.

getIPRange

IPRange getIPRange(java.lang.String rangeId)
Get the IPRange with the given id.

Parameters:
rangeId - user id of requested IP range
Returns:
the requested IP range or null if there is no IP range with the given id


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.