|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.vacm.VacmGroupTable
public class VacmGroupTable
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.
SnmpAPI| Field Summary | |
|---|---|
(package private) java.util.Hashtable |
groupHashTable
HashTable for VacmGroupEntry |
(package private) static int |
GROUPNAME
|
(package private) static int |
GROUPSTATUS
|
(package private) static int |
SECURITYMODEL
|
(package private) static int |
SECURITYNAME
|
(package private) static int |
STORAGETYPE
|
| Constructor Summary | |
|---|---|
VacmGroupTable()
|
|
| 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 |
(package private) void |
setDBOperations(com.adventnet.utils.DatabaseOperations d)
|
(package private) void |
setV3DatabaseFlag(boolean dbFlag)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int SECURITYMODEL
static final int SECURITYNAME
static final int GROUPNAME
static final int STORAGETYPE
static final int GROUPSTATUS
java.util.Hashtable groupHashTable
| Constructor Detail |
|---|
VacmGroupTable()
| Method Detail |
|---|
void setDBOperations(com.adventnet.utils.DatabaseOperations d)
void setV3DatabaseFlag(boolean dbFlag)
public boolean addEntry(VacmGroupEntry groupEntry)
groupEntry - The VacmGroupEntry object to be added.
public void removeAllEntries()
public VacmGroupEntry getEntry(int secModel,
byte[] secName)
secModel - The VacmSecurityModel for which the VacmGroupEntry
is to be retrived.secName - The VacmSecurityName for which the VacmGroupEntry
is to be retrived.
public java.util.Enumeration getEnumeration()
public void removeEntry(int model,
byte[] name)
model - The VacmSecurityModel for which the VacmGroupEntry
is to be deleted.name - The VacmSecurityName for which the VacmGroupEntry
is to deleted.public void removeEntry(VacmGroupEntry entry)
entry - The VacmGroupEntry that is to be deleted.public void serialize(java.io.ObjectOutputStream out)
public void deSerialize(java.io.ObjectInputStream in)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||