|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.VaclTable
public class VaclTable
This class is to provide common View Authentication to both the standalone SnmpAgent and multiprocol SnmpAgent - SnmpAdaptor
| Field Summary | |
|---|---|
(package private) SnmpAgent |
agentName
|
(package private) java.lang.String |
fileName
|
(package private) boolean |
modified
|
(package private) boolean |
storage
|
(package private) java.lang.String |
storageType
|
(package private) VaclEntry |
vaclEntry
|
(package private) java.util.Vector |
vaclVec
|
(package private) VaclTableXMLToVector |
vaclWriter
|
| Constructor Summary | |
|---|---|
VaclTable(SnmpAgent agentRef)
|
|
VaclTable(SnmpAgent agentRef,
java.lang.String name,
java.lang.String format)
The Constructor with persistence storage option. |
|
| Method Summary | |
|---|---|
boolean |
addVaclEntry(VaclEntry entry)
This method Adds the given entry to the Agent ViewAccessControlTable. |
boolean |
checkExternalAclCommunity(java.lang.String community)
Method to check the External Index availabilty. |
java.util.Vector |
getTableVector()
Method to retrieve the number of Entries in the VaclTable. |
VaclEntry |
getVaclEntry(java.lang.String community)
The method to get the VaclEntry instance corresponding to the given community String. |
VaclEntry |
getVaclEntryInstance()
This method will be called for all VaclEntry instance creation. |
VaclTableXMLToVector |
getVaclTableXMLToVector()
Method to get the VaclTableXMLToVector instance associated with this class. |
boolean |
isModified()
This method is for the FailOver support. |
boolean |
isStorage()
Method to know whether this class has storage option or not. |
void |
removeAccess(VaclEntry entry)
Method to remove ViewAccess for the Entry that is removed from this Table. |
void |
setAccess(VaclEntry entry)
Method to set the ViewAccess for the Entry that is added to this Table. |
void |
setModified(boolean isModified)
This method is to set the FailOver Flag. |
void |
setStorage(boolean isStorage)
Method to set the Storage option on or off. |
void |
setTableVector(java.util.Vector tableVector)
Method to set the Vector of VaclEntries. |
void |
storeData()
This method will be called after the addition of an Entry in the VaclTable so that the Entry will be persisted as per the StorageType. |
protected void |
storeData(java.lang.String storageType)
The method to store the Table entries in the specified format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
SnmpAgent agentName
VaclEntry vaclEntry
VaclTableXMLToVector vaclWriter
boolean storage
java.lang.String storageType
java.lang.String fileName
boolean modified
java.util.Vector vaclVec
| Constructor Detail |
|---|
public VaclTable(SnmpAgent agentRef)
public VaclTable(SnmpAgent agentRef, java.lang.String name, java.lang.String format)
agentRef - the SnmpAgent Reference.name - the fileName from where the entries are to be
populated and stored, default will be-ViewAccessControlTable.xmlformat - The file format default will be "xml"(eg., "Text" for
Flat Text File format)| Method Detail |
|---|
public boolean addVaclEntry(VaclEntry entry)
entry - The VaclEntry instance.
public VaclEntry getVaclEntry(java.lang.String community)
community - The community String for the entry to be retrieved.
protected void storeData(java.lang.String storageType)
storageType - the StorageType string (eg., "xml" for XML storage).public void storeData()
public java.util.Vector getTableVector()
public void setTableVector(java.util.Vector tableVector)
tableVector - - the Vector containing VaclEntry Objects sorted
according to their Instance.public VaclEntry getVaclEntryInstance()
public boolean isStorage()
public void setStorage(boolean isStorage)
isStorage - - true to turn on the Storage option and
false to turn off the same.public VaclTableXMLToVector getVaclTableXMLToVector()
public void setAccess(VaclEntry entry)
entry - the VaclEntry for which the View Based Access is to be set.public void removeAccess(VaclEntry entry)
entry - the VaclEntry for which the View Based Access is to be set.public boolean checkExternalAclCommunity(java.lang.String community)
community - the Community to be checked for external Index
availablility
public void setModified(boolean isModified)
isModified - The boolean specifying wheteher the Table Entries were
changed.public boolean isModified()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||