Interface RenovationQuery

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

public interface RenovationQuery extends OsidObjectQuery, OsidTemporalQuery

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

  • Method Details

    • matchRoomId

      void matchRoomId(Id roomId, boolean match)
      Sets the room Id for this query to match rooms assigned to renovations.
      Parameters:
      roomId - a room Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - roomId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRoomIdTerms

      void clearRoomIdTerms()
      Clears the room Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsRoomQuery

      boolean supportsRoomQuery()
      Tests if a room query is available.
      Returns:
      true if a room query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getRoomQuery

      RoomQuery getRoomQuery()
      Gets the query for a renovation.
      Returns:
      the room query
      Throws:
      UnimplementedException - supportsRoomQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsRoomQuery()} is {@code true} .
    • clearRoomTerms

      void clearRoomTerms()
      Clears the room terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCost

      void matchCost(Currency low, Currency high, boolean match)
      Matches a cost within the given range inclusive.
      Parameters:
      low - start of range
      high - end of range
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - low is greater than high
      NullArgumentException - low or high is null
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyCost

      void matchAnyCost(boolean match)
      Matches any cost.
      Parameters:
      match - true to match projects with any cost assigned, false to match buildings with no cost assigned
      Compliance:
      mandatory - This method must be implemented.
    • clearCostTerms

      void clearCostTerms()
      Clears the cost terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCampusId

      void matchCampusId(Id campusId, boolean match)
      Sets the renovation Id for this query to match rooms assigned to campuses.
      Parameters:
      campusId - a campus Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - campusId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearCampusIdTerms

      void clearCampusIdTerms()
      Clears the campus Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsCampusQuery

      boolean supportsCampusQuery()
      Tests if a CampusQuery is available.
      Returns:
      true if a campus query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getCampusQuery

      CampusQuery getCampusQuery()
      Gets the query for a campus query. Multiple retrievals produce a nested OR term.
      Returns:
      the campus query
      Throws:
      UnimplementedException - supportsCampusQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsCampusQuery()} is {@code true} .
    • clearCampusTerms

      void clearCampusTerms()
      Clears the campus terms.
      Compliance:
      mandatory - This method must be implemented.
    • getRenovationQueryRecord

      RenovationQueryRecord getRenovationQueryRecord(Type renovationRecordType) throws OperationFailedException
      Gets the renovation query record corresponding to the given Renovation record Type . Multiple record retrievals produce a nested boolean OR term.
      Parameters:
      renovationRecordType - a renovation record type
      Returns:
      the renovation query record
      Throws:
      NullArgumentException - renovationRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(renovationRecordType) is false
      Compliance:
      mandatory - This method must be implemented.