| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.SecurityModelTable
        |
        +--com.adventnet.snmp.snmp2.security.community.SnmpCommunityTable
This class maintains a list of all SnmpCommunityEntry objects and provides the methods to operate on the list.
| Constructor Summary | |
SnmpCommunityTable()
 | 
|
| Method Summary | |
 boolean | 
addEntry(SecurityModelEntry entry)
Adds the SnmpCommunityEntry object to the list of SnmpCommunityEntry objects, maintained in this class.  | 
 void | 
deSerialize()
DeSerializes the file "CommunityEntry.ser" to get a list of SnmpCommunityEntry objects.  | 
 void | 
deSerialize(java.io.ObjectInputStream in)
DeSerializes the SnmpCommunityEntry objects, from the particular input Stream, to the list of SnmpCommunityEntry objects.  | 
 SnmpCommunityEntry | 
getCommunityEntry(byte[] commName)
Gets the SnmpCommunityEntry associated with the specified communityName.  | 
 SnmpCommunityEntry | 
getEntry(byte[] index)
Gets the SnmpCommunityEntry associated with the specified key.  | 
 SecurityModelEntry | 
getEntry(java.lang.Object key)
Gets the SnmpCommunityEntry associated with the specified key.  | 
 java.util.Enumeration | 
getEnumeration()
Returns an enumeration of all the SnmpCommunityEntry objects maintained in this class.  | 
 boolean | 
modifyEntry(SecurityModelEntry entry)
This method should locate an entry, using the key specified in the argument entry and modify the non-key parameters that are available in the entry.  | 
 void | 
removeAllEntries()
Deletes all the SnmpCommunityEntry objects maintained in this class.  | 
 boolean | 
removeEntry(byte[] index)
Deletes the SnmpCommunityEntry corresponding to the index, from the list of SnmpCommunityEntry objects.  | 
 boolean | 
removeEntry(SecurityModelEntry entry)
Deletes this particlar SnmpCommunityEntry object, from the list of SnmpCommunityEntry objects.  | 
 void | 
serialize()
Stores the list of SnmpCommunityEntry objects in the serialized file "CommunityEntry.ser"  | 
 void | 
serialize(java.io.ObjectOutputStream out)
Serializes the list of SnmpCommunityEntry objects into particular output Stream specified.  | 
| Methods inherited from class com.adventnet.snmp.snmp2.SecurityModelTable | 
setDBOperations, setV3ConfigFlag, setV3DatabaseFlag | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public SnmpCommunityTable()
| Method Detail | 
public java.util.Enumeration getEnumeration()
getEnumeration in class SecurityModelTablepublic void removeAllEntries()
public boolean addEntry(SecurityModelEntry entry)
addEntry in class SecurityModelTableentry - The SnmpCommunityEntry which needs to be added to the list
 of SnmpCommunityEntry objects.public SecurityModelEntry getEntry(java.lang.Object key)
getEntry in class SecurityModelTablekey - The key corresponding to which, the SnmpCommunityEntry
 is to be retrieved.public SnmpCommunityEntry getEntry(byte[] index)
index - The index corresponding to which, the SnmpCommunityEntry
 is to be retrieved.public boolean removeEntry(byte[] index)
index - The index for which, the SnmpCommunityEntry object is to
 be deleted.public boolean removeEntry(SecurityModelEntry entry)
removeEntry in class SecurityModelTableentry - The SnmpCommunityEntry object that is to be deleted.public void serialize()
public void deSerialize()
public boolean modifyEntry(SecurityModelEntry entry)
modifyEntry in class SecurityModelTablepublic void serialize(java.io.ObjectOutputStream out)
serialize in class SecurityModelTableout - The ObjectOutputStream for serializationpublic void deSerialize(java.io.ObjectInputStream in)
deSerialize in class SecurityModelTablein - The ObjectInputStream for deSerializationpublic SnmpCommunityEntry getCommunityEntry(byte[] commName)
commName - The communityName corresponding to which, the SnmpCommunityEntry
 is to be retrieved.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||