Interface HoldEnablerQuery

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

public interface HoldEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledHoldId

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

      void clearRuledHoldIdTerms()
      Clears the hold Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledHoldQuery

      boolean supportsRuledHoldQuery()
      Tests if a HoldQuery is available.
      Returns:
      true if a hold query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledHoldQuery

      HoldQuery getRuledHoldQuery()
      Gets the query for a hold. Multiple retrievals produce a nested OR term.
      Returns:
      the hold query
      Throws:
      UnimplementedException - supportsRuledHoldQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledHoldQuery()} is {@code true} .
    • matchAnyRuledHold

      void matchAnyRuledHold(boolean match)
      Matches enablers mapped to any hold.
      Parameters:
      match - true for enablers mapped to any hold, false to match enablers mapped to no hold
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledHoldTerms

      void clearRuledHoldTerms()
      Clears the hold query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchOublietteId

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

      void clearOublietteIdTerms()
      Clears the oubliette Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsOublietteQuery

      boolean supportsOublietteQuery()
      Tests if a OublietteQuery is available.
      Returns:
      true if an oubliette query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getOublietteQuery

      OublietteQuery getOublietteQuery()
      Gets the query for an oubliette. Multiple retrievals produce a nested OR term.
      Returns:
      the oubliette query
      Throws:
      UnimplementedException - supportsOublietteQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsOublietteQuery()} is {@code true} .
    • clearOublietteTerms

      void clearOublietteTerms()
      Clears the oubliette query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getHoldEnablerQueryRecord

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