org.apache.lenya.ac
Interface IPRangeManager

All Superinterfaces:
ItemManager

public interface IPRangeManager
extends ItemManager

An IP range manager.


Method Summary
 IPRange add(java.lang.String id)
          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, getAccreditableManager, removeItemManagerListener
 

Method Detail

getIPRanges

IPRange[] getIPRanges()
Get all IP ranges.

Returns:
an array of IP ranges.

add

IPRange add(java.lang.String id)
            throws AccessControlException
Add the given IP range

Parameters:
id - IP range that is to be added
Returns:
An IP range.
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-2006 Apache Software Foundation. All Rights Reserved.