Interface AvailabilityEnablerQuery

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

public interface AvailabilityEnablerQuery extends OsidEnablerQuery

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

  • Method Details

    • matchRuledAvailabilityId

      void matchRuledAvailabilityId(Id availabilityId, boolean match)
      Matches mapped to an availability.
      Parameters:
      availabilityId - the availability Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - availabilityId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledAvailabilityIdTerms

      void clearRuledAvailabilityIdTerms()
      Clears the availability Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRuledAvailabilityQuery

      boolean supportsRuledAvailabilityQuery()
      Tests if an AvailabilityQuery is available.
      Returns:
      true if an availability query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRuledAvailabilityQuery

      AvailabilityQuery getRuledAvailabilityQuery()
      Gets the query for an availability. Multiple retrievals produce a nested OR term.
      Returns:
      the availability query
      Throws:
      UnimplementedException - supportsRuledAvailabilityQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRuledAvailabilityQuery()} is {@code true} .
    • matchAnyRuledAvailability

      void matchAnyRuledAvailability(boolean match)
      Matches mapped to any availability.
      Parameters:
      match - true for mapped to any availability, false to match mapped to no availabilities
      Compliance:
      mandatory - This method must be implemented.
    • clearRuledAvailabilityTerms

      void clearRuledAvailabilityTerms()
      Clears the availability query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchFoundryId

      void matchFoundryId(Id foundryId, boolean match)
      Matches mapped to the foundry.
      Parameters:
      foundryId - the foundry Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - foundryId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearFoundryIdTerms

      void clearFoundryIdTerms()
      Clears the foundry Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsFoundryQuery

      boolean supportsFoundryQuery()
      Tests if a FoundryQuery is available.
      Returns:
      true if a foundry query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getFoundryQuery

      FoundryQuery getFoundryQuery()
      Gets the query for a foundry. Multiple retrievals produce a nested OR term.
      Returns:
      the foundry query
      Throws:
      UnimplementedException - supportsFoundryQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsFoundryQuery()} is {@code true} .
    • clearFoundryTerms

      void clearFoundryTerms()
      Clears the foundry query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getAvailabilityEnablerQueryRecord

      AvailabilityEnablerQueryRecord getAvailabilityEnablerQueryRecord(Type availabilityEnablerRecordType) throws OperationFailedException
      Gets the availability enabler query record corresponding to the given AvailabilityEnabler record Type . Multiple record retrievals produce a nested OR term.
      Parameters:
      availabilityEnablerRecordType - an availability enabler record type
      Returns:
      the availability enabler query record
      Throws:
      NullArgumentException - availabilityEnablerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(availabilityEnablerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.