|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.vacm.VacmGroupAccessTable
public class VacmGroupAccessTable
This class maintains a list of VacmGroupAccessEntry objects. It provides methods to get, add and remove groupAccessEntry objects. Once a VacmAccessEntry is created, it has to added using the addEntry method provided in this class. There is no need to instantiate this class as it is instantiated in the SnmpAPI constructor. The SnmpAPI provides methods to access this VacmGroupAccessTable.
SnmpAPI| Field Summary | |
|---|---|
(package private) static int |
CONTEXTMATCH
|
(package private) static int |
CONTEXTPREFIX
|
(package private) java.util.Hashtable |
groupAccessTable
HashTable which maps the GroupName to VacmGroupAccessEntry objects |
(package private) static int |
GROUPNAME
|
(package private) static int |
NOTIFYVIEWNAME
|
(package private) static int |
READVIEWNAME
|
(package private) static int |
ROWSTATUS
|
(package private) static int |
SECURITYLEVEL
|
(package private) static int |
SECURITYMODEL
|
(package private) static int |
STORAGETYPE
|
(package private) static int |
WRITEVIEWNAME
|
| Constructor Summary | |
|---|---|
VacmGroupAccessTable()
|
|
| Method Summary | |
|---|---|
boolean |
addEntry(VacmAccessEntry accessEntry,
byte[] groupName)
Adds the VacmAccessEntry object to the list of VacmAccessEntry objects in the VacmGroupAccessEntry. |
void |
deSerialize(java.io.ObjectInputStream in)
Retrives the VacmGroupAccess entries from the file VacmGroupAccessEntry to the GrpAccessTable |
VacmGroupAccessEntry |
getEntry(byte[] groupName)
Returns the VacmGroupAccessEntry object corresponding to the groupName specified. |
java.util.Enumeration |
getEnumeration()
Returns an Enumeration of all the VacmGroupAccessEntry objects maintained in this class. |
void |
removeAllEntries()
Removes all the VacmGroupAccessEntry Objects maintained by this class. |
void |
removeEntry(VacmAccessEntry accessEntry,
byte[] groupName)
Removes the specified VacmAccessEntry object from the list of VacmAccessEntry objects in VacmGroupAccessEntry. |
void |
serialize(java.io.ObjectOutputStream out)
Stores the VacmGroupAccess entries in the file GrpAccessEntry |
(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 GROUPNAME
static final int CONTEXTPREFIX
static final int SECURITYMODEL
static final int SECURITYLEVEL
static final int CONTEXTMATCH
static final int READVIEWNAME
static final int WRITEVIEWNAME
static final int NOTIFYVIEWNAME
static final int STORAGETYPE
static final int ROWSTATUS
java.util.Hashtable groupAccessTable
| Constructor Detail |
|---|
VacmGroupAccessTable()
| Method Detail |
|---|
void setDBOperations(com.adventnet.utils.DatabaseOperations d)
void setV3DatabaseFlag(boolean dbFlag)
public boolean addEntry(VacmAccessEntry accessEntry,
byte[] groupName)
accessEntry - The VacmAccessEntry object to be added.groupName - The VacmGroupName corresponding to which the access
entry is to be added
public void removeAllEntries()
public java.util.Enumeration getEnumeration()
public void removeEntry(VacmAccessEntry accessEntry,
byte[] groupName)
accessEntry - The VacmAccessEntry to be removed.groupName - The VacmGroupName associated with
VacmGroupAccessEntry for which the VacmAccessEntry is to be removed.public VacmGroupAccessEntry getEntry(byte[] groupName)
groupName - The VacmGroupName for which the VacmGroupAccessEntry
object is to be returned.
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 | ||||||||