Interface DeviceEnablerQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidEnablerQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, OsidTemporalQuery, Suppliable

public interface DeviceEnablerQuery extends OsidEnablerQuery

This is the query for searching device enablers. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

  • Method Details

    • matchRuledDeviceId

      void matchRuledDeviceId(Id deviceId, boolean match)
      Matches enablers mapped to the device.
      Parameters:
      deviceId - the device Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - deviceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledDeviceIdTerms

      void clearRuledDeviceIdTerms()
      Clears the device Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledDeviceQuery

      boolean supportsRuledDeviceQuery()
      Tests if a DeviceQuery is available.
      Returns:
      true if a device query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledDeviceQuery

      DeviceQuery getRuledDeviceQuery()
      Gets the query for a device. Multiple retrievals produce a nested OR term.
      Returns:
      the device query
      Throws:
      UnimplementedException - supportsRuledDeviceQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledDeviceQuery()} is {@code true} .
    • matchAnyRuledDevice

      void matchAnyRuledDevice(boolean match)
      Matches enablers mapped to any device.
      Parameters:
      match - true for enablers mapped to any device, false to match enablers mapped to no devices
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledDeviceTerms

      void clearRuledDeviceTerms()
      Clears the device query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSystemId

      void matchSystemId(Id systemId, boolean match)
      Matches enablers mapped to the system.
      Parameters:
      systemId - the system Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - systemId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearSystemIdTerms

      void clearSystemIdTerms()
      Clears the system Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsSystemQuery

      boolean supportsSystemQuery()
      Tests if a SystemQuery is available.
      Returns:
      true if a system query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getSystemQuery

      SystemQuery getSystemQuery()
      Gets the query for a system. Multiple retrievals produce a nested OR term.
      Returns:
      the system query
      Throws:
      UnimplementedException - supportsSystemQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsSystemQuery()} is {@code true} .
    • clearSystemTerms

      void clearSystemTerms()
      Clears the system query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getDeviceEnablerQueryRecord

      DeviceEnablerQueryRecord getDeviceEnablerQueryRecord(Type deviceEnablerRecordType) throws OperationFailedException
      Gets the device enabler query record corresponding to the given DeviceEnabler record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      deviceEnablerRecordType - a device enabler record type
      Returns:
      the device enabler query record
      Throws:
      NullArgumentException - deviceEnablerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(deviceEnablerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.