Class CommandProcessor.VACMQuery
java.lang.Object
org.snmp4j.agent.DefaultMOQuery
org.snmp4j.agent.MOQueryWithSource
org.snmp4j.agent.CommandProcessor.VACMQuery
- All Implemented Interfaces:
MOContextScope, MOQuery, MOScope
- Enclosing class:
CommandProcessor
- Version:
- 3.1
- Author:
- Frank Fock
-
Constructor Summary
ConstructorsConstructorDescriptionVACMQuery(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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAccessAllowed(org.snmp4j.smi.OID oid) booleanbooleanmatchesQuery(ManagedObject<?> managedObject) Checks whether a managed object matches the internal query criteria defined by this query.toString()Methods inherited from class MOQueryWithSource
getSource, isSameSourceMethods inherited from class DefaultMOQuery
clone, covers, getContext, getLowerBound, getScope, getUpperBound, isCovered, isEmpty, isLowerIncluded, isOverlapping, isUpperIncluded, isWriteAccessQuery, setNewExclusiveLowerBound, subtractScope
-
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 ornullif 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
Description copied from class:DefaultMOQueryChecks whether a managed object matches the internal query criteria defined by this query.- Specified by:
matchesQueryin interfaceMOQuery- Overrides:
matchesQueryin classDefaultMOQuery- Parameters:
managedObject- theManagedObjectinstance to check.- Returns:
trueif themanagedObjectmatches the query.
-
isAccessAllowed
public boolean isAccessAllowed(org.snmp4j.smi.OID oid) -
toString
- Overrides:
toStringin classDefaultMOQuery
-