FileDocCategorySizeDatePackage
JDMAccess.javaAPI DocJava SE 5 API1233Fri Aug 26 14:55:00 BST 2005com.sun.jmx.snmp.IPAcl

JDMAccess

public class JDMAccess extends SimpleNode
version
4.9 12/19/03
author
Sun Microsystems, Inc.

Fields Summary
protected int
access
Constructors Summary
JDMAccess(int id)


    
    super(id);
  
JDMAccess(Parser p, int id)

    super(p, id);
  
Methods Summary
public static NodejjtCreate(int id)

      return new JDMAccess(id);
  
public static NodejjtCreate(Parser p, int id)

      return new JDMAccess(p, id);
  
protected voidputPermission(AclEntryImpl entry)

    if (access == ParserConstants.RO) {
       // We have a read-only access.
       //
       entry.addPermission(com.sun.jmx.snmp.IPAcl.SnmpAcl.getREAD());
    }
    if (access == ParserConstants.RW) {
       // We have a read-write access.
       //
       entry.addPermission(com.sun.jmx.snmp.IPAcl.SnmpAcl.getREAD());
       entry.addPermission(com.sun.jmx.snmp.IPAcl.SnmpAcl.getWRITE());
    }