com.adventnet.snmp.snmp2.vacm
Class VacmGroupTable

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.vacm.VacmGroupTable

public class VacmGroupTable
extends java.lang.Object

This class maintains a list of VacmGroupEntry objects. It has methods to get entry, add and remove entry. When a new VacmContextEntry object is created, it has to be added using the addEntry method provided. The API user need not instantiate this class as it is instantiated by the SnmpAPI constructor. The SnmpAPI provides methods to access the VacmGroupTable.

See Also:
SnmpAPI

Method Summary
 boolean addEntry(VacmGroupEntry groupEntry)
          Adds the VacmGroupEntry object to the list of VacmGroupEntry objects maintained by this class.
 void deSerialize(java.io.ObjectInputStream in)
           
 VacmGroupEntry getEntry(int secModel, byte[] secName)
          Returns the VacmGroupEntry object corresponding to the particular securityModel and securityName.
 java.util.Enumeration getEnumeration()
          Returns an enumeration of all the VacmGroupEntry Objects maintained in this class.
 void removeAllEntries()
          Deletes all the VacmGroupEntry objects maintained by this class.
 void removeEntry(int model, byte[] name)
          Deletes the VacmGroupEntry from the list of VacmGroupEntry objects corresponding to securityModel and securityName.
 void removeEntry(VacmGroupEntry entry)
          Deletes this particular VacmGroupEntry object from the list of VacmGroupEntry objects maintained in this class.
 void serialize(java.io.ObjectOutputStream out)
          Stores the VacmGroup entries in the file GroupEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addEntry

public boolean addEntry(VacmGroupEntry groupEntry)
Adds the VacmGroupEntry object to the list of VacmGroupEntry objects maintained by this class.
Parameters:
groupEntry - The VacmGroupEntry object to be added.
Returns:
True if the entry is added successfully, else return false

removeAllEntries

public void removeAllEntries()
Deletes all the VacmGroupEntry objects maintained by this class.

getEntry

public VacmGroupEntry getEntry(int secModel,
                               byte[] secName)
Returns the VacmGroupEntry object corresponding to the particular securityModel and securityName.
Parameters:
secModel - The VacmSecurityModel for which the VacmGroupEntry is to be retrived.
secName - The VacmSecurityName for which the VacmGroupEntry is to be retrived.
Returns:
VacmGroupEntry Object corresponding to the VacmSecurityModel and VacmSecurityName specified.

getEnumeration

public java.util.Enumeration getEnumeration()
Returns an enumeration of all the VacmGroupEntry Objects maintained in this class.
Returns:
The enumeration of all the VacmGroupEntry objects in this class.

removeEntry

public void removeEntry(int model,
                        byte[] name)
Deletes the VacmGroupEntry from the list of VacmGroupEntry objects corresponding to securityModel and securityName.
Parameters:
model - The VacmSecurityModel for which the VacmGroupEntry is to be deleted.
name - The VacmSecurityName for which the VacmGroupEntry is to deleted.

removeEntry

public void removeEntry(VacmGroupEntry entry)
Deletes this particular VacmGroupEntry object from the list of VacmGroupEntry objects maintained in this class.
Parameters:
entry - The VacmGroupEntry that is to be deleted.

serialize

public void serialize(java.io.ObjectOutputStream out)
Stores the VacmGroup entries in the file GroupEntry

deSerialize

public void deSerialize(java.io.ObjectInputStream in)


Copyright (c)AdventNet Inc., 1996-2004