Class CommandProcessor.VACMQuery

All Implemented Interfaces:
MOContextScope, MOQuery, MOScope
Enclosing class:
CommandProcessor

public class CommandProcessor.VACMQuery extends MOQueryWithSource
Version:
3.1
Author:
Frank Fock
  • Constructor Details

    • VACMQuery

      public VACMQuery(org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID lowerBound, boolean isLowerIncluded, org.snmp4j.smi.OID upperBound, boolean isUpperIncluded, org.snmp4j.smi.OctetString viewName, boolean isWriteAccessIntended, SnmpRequest source)
      Creates a VACMQuery for read-only access.
      Parameters:
      context - the context for the query, an empty OctetString denotes the default context.
      lowerBound - the lower bound OID.
      isLowerIncluded - indicates whether the lower bound should be included or not.
      upperBound - the upper bound OID or null if no upper bound is specified.
      isUpperIncluded - indicates whether the upper bound should be included or not.
      viewName - the view name to use for the query.
      isWriteAccessIntended - indicates if this query is issued on behalf of a SNMP SET request or not.
      source - the source (Request) object on whose behalf this query is executed.
      Since:
      1.1
  • Method Details

    • isSearchQuery

      public boolean isSearchQuery()
    • matchesQuery

      public boolean matchesQuery(ManagedObject<?> managedObject)
      Description copied from class: DefaultMOQuery
      Checks whether a managed object matches the internal query criteria defined by this query.
      Specified by:
      matchesQuery in interface MOQuery
      Overrides:
      matchesQuery in class DefaultMOQuery
      Parameters:
      managedObject - the ManagedObject instance to check.
      Returns:
      true if the managedObject matches the query.
    • isAccessAllowed

      public boolean isAccessAllowed(org.snmp4j.smi.OID oid)
    • toString

      public String toString()
      Overrides:
      toString in class DefaultMOQuery