| 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.ac.impl.AbstractItem
org.apache.lenya.ac.impl.AbstractGroupable
org.apache.lenya.ac.impl.AbstractIPRange
org.apache.lenya.ac.file.FileIPRange
public class FileIPRange
IP range that is stored in a file.
| Field Summary | |
|---|---|
static java.lang.String | 
ELEMENT_NETWORK_ADDRESS
 | 
static java.lang.String | 
ELEMENT_SUBNET_MASK
 | 
static java.lang.String | 
IP_RANGE
 | 
| Constructor Summary | |
|---|---|
FileIPRange()
Ctor.  | 
|
FileIPRange(java.io.File configurationDirectory,
            java.lang.String id)
Ctor.  | 
|
| Method Summary | |
|---|---|
 void | 
configure(org.apache.avalon.framework.configuration.Configuration config)
Configures this item.  | 
protected  org.apache.avalon.framework.configuration.Configuration | 
createConfiguration()
Create a configuration from the current user details.  | 
protected  java.io.File | 
getFile()
Returns the configuration file.  | 
static void | 
main(java.lang.String[] args)
Deprecated. This should bemoved to a JUnit test.  | 
 void | 
save()
Save the IP range  | 
| Methods inherited from class org.apache.lenya.ac.impl.AbstractIPRange | 
|---|
contains, delete, getConfigurationDirectory, getNetworkAddress, getSubnetMask, isValidSubnet, setConfigurationDirectory, setNetworkAddress, setNetworkAddress, setSubnetMask, setSubnetMask | 
| Methods inherited from class org.apache.lenya.ac.impl.AbstractGroupable | 
|---|
addedToGroup, getAccreditables, getGroups, removedFromGroup, removeFromAllGroups | 
| Methods inherited from class org.apache.lenya.ac.impl.AbstractItem | 
|---|
equals, getDescription, getId, getName, hashCode, isValidId, setDescription, setId, setName, toString | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.apache.lenya.ac.Accreditable | 
|---|
getAccreditables | 
| Methods inherited from interface org.apache.lenya.ac.Item | 
|---|
getDescription, getId, getName, setDescription, setName | 
| Methods inherited from interface org.apache.lenya.ac.Groupable | 
|---|
addedToGroup, getGroups, removedFromGroup, removeFromAllGroups | 
| Field Detail | 
|---|
public static final java.lang.String IP_RANGE
public static final java.lang.String ELEMENT_NETWORK_ADDRESS
public static final java.lang.String ELEMENT_SUBNET_MASK
| Constructor Detail | 
|---|
public FileIPRange()
public FileIPRange(java.io.File configurationDirectory,
                   java.lang.String id)
configurationDirectory - The configuration directory.id - The IP range ID.| Method Detail | 
|---|
public static void main(java.lang.String[] args)
args - The command-line arguments.
public void save()
          throws AccessControlException
AbstractIPRange
save in class AbstractIPRangeAccessControlException - if the save failedAbstractIPRange.save()protected java.io.File getFile()
public void configure(org.apache.avalon.framework.configuration.Configuration config)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Item
configure in interface Itemconfig - The configuration.
org.apache.avalon.framework.configuration.ConfigurationException - when something went wrong.Item.configure(org.apache.avalon.framework.configuration.Configuration)protected org.apache.avalon.framework.configuration.Configuration createConfiguration()
Configuration
  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||