|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.ac.file.FileItemManager org.apache.lenya.ac.file.FileIPRangeManager
public class FileIPRangeManager
Manager for IP address ranges.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.lenya.ac.file.FileItemManager |
---|
FileItemManager.DirectoryChangeNotifier |
Field Summary | |
---|---|
protected static java.lang.String |
SUFFIX
|
Fields inherited from class org.apache.lenya.ac.file.FileItemManager |
---|
PATH |
Constructor Summary | |
---|---|
protected |
FileIPRangeManager(java.io.File configurationDirectory)
Ctor. |
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. |
protected java.lang.String |
getSuffix()
Returns the file extension to be used. |
static FileIPRangeManager |
instance(java.io.File configurationDirectory)
Describe instance method here. |
void |
remove(IPRange range)
Remove the given IP range |
Methods inherited from class org.apache.lenya.ac.file.FileItemManager |
---|
add, addItemManagerListener, contains, getConfigurationDirectory, getFileFilter, getItem, getItemClass, getItemConfiguration, getItems, loadItem, loadItems, notifyAdded, notifyRemoved, remove, removeItem, removeItemManagerListener, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.lenya.ac.ItemManager |
---|
addItemManagerListener, removeItemManagerListener |
Field Detail |
---|
protected static final java.lang.String SUFFIX
Constructor Detail |
---|
protected FileIPRangeManager(java.io.File configurationDirectory) throws AccessControlException
configurationDirectory
- The configuration directory.
AccessControlException
- when something went wrong.Method Detail |
---|
protected java.lang.String getSuffix()
FileItemManager
getSuffix
in class FileItemManager
FileItemManager.getSuffix()
public static FileIPRangeManager instance(java.io.File configurationDirectory) throws AccessControlException
instance
method here.
configurationDirectory
- a directory
IPRangeManager
value
AccessControlException
- if an error occurspublic IPRange[] getIPRanges()
getIPRanges
in interface IPRangeManager
public void add(IPRange range) throws AccessControlException
add
in interface IPRangeManager
range
- IP range that is to be added
AccessControlException
- when the notification failed.public void remove(IPRange range) throws AccessControlException
remove
in interface IPRangeManager
range
- IP range that is to be removed
AccessControlException
- when the notification failed.public IPRange getIPRange(java.lang.String rangeId)
getIPRange
in interface IPRangeManager
rangeId
- user id of requested IP range
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |