ip.IPListProvider | +--ip.DBIPListProvider
Method Summary | |
public any |
init([any firewallInstance])
Initialize the IPListManager |
public void |
addIP([string listID], [struct data])
Adds an IP to the list |
public void |
addList([struct data])
Adds a list to the providers repository |
public boolean |
canAddList()
Returns true if the provider supports adding a new list |
public array |
getAllIPData([string listID])
Returns an array of structs containing all the data |
public string |
getCounter([any ipAddress], [string listID])
Returns the value of the counter for the IP or empty string if IP does not have a counter value |
public struct |
getDataByID([any ipID], [string listID])
Returns a structure with info corresponding to the ID or an empty struct if list has no info about the ID |
public binary |
getIntegerIPAsBinary([string intIP])
|
public string |
getIntegerIPFromBinary([any ip])
|
public struct |
getIPData([any ipAddress], [string listID])
Returns a structure with info about the IP or an empty struct if list has no info about the IP |
public array |
getIPLists()
Returns an array of structures with keys: name, type, id |
public numeric |
getListCount([string listID])
Returns the number of records in the list |
public string |
getName()
Returns the name of the list provider |
public boolean |
hasIP([any ipAddress], [string listID])
|
public void |
incrementCounter([any ipAddress], [string listID])
Increments the counter value by one. If the IP does not exist on the list yet it will add it to the list and set the counter to 1 |
public boolean |
isManagerEnabled()
Only one provider can be manager enabled per FuseGuard instance |
public void |
removeIP([string ipID], [string listID])
Removes an IP from the list |
public void |
removeIPLastUpdatedBefore([string listID=""], [date updatedBefore])
Removes IPs that have not been updated since the date specified |
public void |
updateIP([string ipID], [string listID], [struct data])
Updates an IP in the list |
Method Detail |
public void addIP([string listID], [struct data])
[string listID]
[struct data]
public void addList([struct data])
[struct data]
public boolean canAddList()
public array getAllIPData([string listID])
[string listID]
public string getCounter([any ipAddress], [string listID])
[any ipAddress]
[string listID]
public struct getDataByID([any ipID], [string listID])
[any ipID]
[string listID]
public binary getIntegerIPAsBinary([string intIP])
[string intIP]
public string getIntegerIPFromBinary([any ip])
[any ip]
public struct getIPData([any ipAddress], [string listID])
[any ipAddress]
[string listID]
public array getIPLists()
public numeric getListCount([string listID])
[string listID]
public string getName()
public boolean hasIP([any ipAddress], [string listID])
[any ipAddress]
[string listID]
public void incrementCounter([any ipAddress], [string listID])
[any ipAddress]
[string listID]
public any init([any firewallInstance])
[any firewallInstance]
public boolean isManagerEnabled()
public void removeIP([string ipID], [string listID])
[string ipID]
[string listID]
public void removeIPLastUpdatedBefore([string listID=""], [date updatedBefore])
[string listID=""]
[date updatedBefore]
public void updateIP([string ipID], [string listID], [struct data])
[string ipID]
[string listID]
[struct data]