Interface RoomQuery

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

public interface RoomQuery extends OsidObjectQuery, OsidTemporalQuery, OsidSubjugateableQuery

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

  • Method Details

    • matchBuildingId

      void matchBuildingId(Id buildingId, boolean match)
      Sets the building Id for this query to match rooms assigned to buildings.
      Parameters:
      buildingId - a building Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - buildingId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearBuildingIdTerms

      void clearBuildingIdTerms()
      Clears the building Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsBuildingQuery

      boolean supportsBuildingQuery()
      Tests if a BuildingQuery is available.
      Returns:
      true if a building query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getBuildingQuery

      BuildingQuery getBuildingQuery()
      Gets the query for a building query. Multiple retrievals produce a nested OR term.
      Returns:
      the building query
      Throws:
      UnimplementedException - supportsBuildingQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsBuildingQuery()} is {@code true} .
    • clearBuildingTerms

      void clearBuildingTerms()
      Clears the building terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchFloorId

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

      void clearFloorIdTerms()
      Clears the floor Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsFloorQuery

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

      FloorQuery getFloorQuery()
      Gets the query for a floor.
      Returns:
      the floor query
      Throws:
      UnimplementedException - supportsFloorQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsFloorQuery()} is {@code true} .
    • clearFloorTerms

      void clearFloorTerms()
      Clears the floor terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchEnclosingRoomId

      void matchEnclosingRoomId(Id roomId, boolean match)
      Sets an enclosing room Id .
      Parameters:
      roomId - an enclosing 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.
    • clearEnclosingRoomIdTerms

      void clearEnclosingRoomIdTerms()
      Clears the enclosing room Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsEnclosingRoomQuery

      boolean supportsEnclosingRoomQuery()
      Tests if an EnclosingRoomQuery is available.
      Returns:
      true if an enclosing room query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getEnclosingRoomQuery

      RoomQuery getEnclosingRoomQuery()
      Gets the query for an enclosing room query. Multiple retrievals produce a nested OR term.
      Returns:
      the room query
      Throws:
      UnimplementedException - supportsEnclosingRoomQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsEnclosingRoomQuery()} is {@code true} .
    • matchAnyEnclosingRoom

      void matchAnyEnclosingRoom(boolean match)
      Matches any enclosing room.
      Parameters:
      match - true for a to match any room enclosed in another room,, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • clearEnclosingRoomTerms

      void clearEnclosingRoomTerms()
      Clears the enclosing room terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchSubdivisionId

      void matchSubdivisionId(Id roomId, boolean match)
      Sets a subdivision room Id .
      Parameters:
      roomId - a subdivision 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.
    • clearSubdivisionIdTerms

      void clearSubdivisionIdTerms()
      Clears the subdivision room Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsSubdivisionQuery

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

      RoomQuery getSubdivisionQuery()
      Gets the query for a subdivision room query. Multiple retrievals produce a nested OR term.
      Returns:
      the room query
      Throws:
      UnimplementedException - supportsSubdivisionRoomQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsSubdivisionRoomQuery()} is {@code true} .
    • matchAnySubdivision

      void matchAnySubdivision(boolean match)
      Matches any subdivision room.
      Parameters:
      match - true for a to match any room containg another room,, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • clearSubdivisionTerms

      void clearSubdivisionTerms()
      Clears the subdivision room terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchDesignatedName

      void matchDesignatedName(String name, Type stringMatchType, boolean match)
      Sets a name.
      Parameters:
      name - an official name
      stringMatchType - a string match type
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - name is not of stringMatchType
      NullArgumentException - name is null
      UnsupportedException - supportsStringMatchType(stringMatchType) is false
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyDesignatedName

      void matchAnyDesignatedName(boolean match)
      Matches any designated name.
      Parameters:
      match - true to match rooms with any designated name, false to match rooms with no designated name
      Compliance:
      mandatory - This method must be implemented.
    • clearDesignatedNameTerms

      void clearDesignatedNameTerms()
      Clears the designated name terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchRoomNumber

      void matchRoomNumber(String number, Type stringMatchType, boolean match)
      Sets a room number.
      Parameters:
      number - a number
      stringMatchType - a string match type
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - number is not of stringMatchType
      NullArgumentException - number is null
      UnsupportedException - supportsStringMatchType(stringMatchType) is false
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyRoomNumber

      void matchAnyRoomNumber(boolean match)
      Matches any room number.
      Parameters:
      match - true to match rooms with any number, false to match rooms with no number
      Compliance:
      mandatory - This method must be implemented.
    • clearRoomNumberTerms

      void clearRoomNumberTerms()
      Clears the room number terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchCode

      void matchCode(String code, Type stringMatchType, boolean match)
      Sets a room code.
      Parameters:
      code - a room code
      stringMatchType - a string match type
      match - true for a positive match, false for a negative match
      Throws:
      InvalidArgumentException - code is not of stringMatchType
      NullArgumentException - code is null
      UnsupportedException - supportsStringMatchType(stringMatchType) is false
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyCode

      void matchAnyCode(boolean match)
      Matches any room code.
      Parameters:
      match - true to match rooms with any code, false to match rooms with no code
      Compliance:
      mandatory - This method must be implemented.
    • clearCodeTerms

      void clearCodeTerms()
      Clears the code terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchArea

      void matchArea(BigDecimal low, BigDecimal high, boolean match)
      Matches an area 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.
    • matchAnyArea

      void matchAnyArea(boolean match)
      Matches any area.
      Parameters:
      match - true to match rooms with any area, false to match rooms with no area assigned
      Compliance:
      mandatory - This method must be implemented.
    • clearAreaTerms

      void clearAreaTerms()
      Clears the area terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchOccupancyLimit

      void matchOccupancyLimit(long low, long high, boolean match)
      Matches an occupancy limit 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
      Compliance:
      mandatory - This method must be implemented.
    • matchAnyOccupancyLimit

      void matchAnyOccupancyLimit(boolean match)
      Matches rooms with any occupancy limit.
      Parameters:
      match - true to match rooms with any occupancy limit, false to match rooms with no limit assigned
      Compliance:
      mandatory - This method must be implemented.
    • clearOccupancyLimitTerms

      void clearOccupancyLimitTerms()
      Clears the occupancy limit terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchResourceId

      void matchResourceId(Id roomId, boolean match)
      Sets the room Id for this query to match resources assigned to rooms.
      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.
    • clearResourceIdTerms

      void clearResourceIdTerms()
      Clears the resource Id terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsResourceQuery

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

      ResourceQuery getResourceQuery()
      Gets the query for a room resource.
      Returns:
      the resource query
      Throws:
      UnimplementedException - supportsResourceQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsResourceQuery()} is {@code true} .
    • matchAnyResource

      void matchAnyResource(boolean match)
      Matches rooms with any resource.
      Parameters:
      match - true to match rooms with any resource, false to match rooms with no resources
      Compliance:
      mandatory - This method must be implemented.
    • clearResourceTerms

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

      void matchCampusId(Id campusId, boolean match)
      Sets the building 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.
    • getRoomQueryRecord

      RoomQueryRecord getRoomQueryRecord(Type roomRecordType) throws OperationFailedException
      Gets the room query record corresponding to the given Room record Type .Multiple record retrievals produce a nested OR term.
      Parameters:
      roomRecordType - a room record type
      Returns:
      the room query record
      Throws:
      NullArgumentException - roomRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(roomRecordType) is false
      Compliance:
      mandatory - This method must be implemented.