OSID Logo
OSID Specifications
room construction package
Version 3.0.0
Release Candidate Preview
Interfaceosid.room.construction.ProjectQuery
Implementsosid.OsidObjectQuery
osid.OsidTemporalQuery
Description

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

MethodmatchBuildingId
Description

Sets a building Id.

Parametersosid.id.IdbuildingIda building Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT buildingId is null
CompliancemandatoryThis method must be implemented.
MethodclearBuildingIdTerms
Description

Clears the building Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBuildingQuery
Description

Tests if a BuildingQuery is available.

Returnboolean true if a building query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBuildingQuery
Description

Gets the query for a building query. Multiple retrievals produce a nested OR term.

Returnosid.room.BuildingQuerythe building query
ErrorsUNIMPLEMENTED supportsBuildingQuery() is false
ComplianceoptionalThis method must be implemented if supportsBuildingQuery() is true.
MethodclearBuildingTerms
Description

Clears the building terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCost
Description

Matches a cost within the given range inclusive.

Parametersosid.financials.Currencylowstart of range
osid.financials.Currencyhighend of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
NULL_ARGUMENT low or high is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyCost
Description

Matches any cost.

Parametersbooleanmatch true to match projects with any cost assigned, false to match buildings with no cost assigned
CompliancemandatoryThis method must be implemented.
MethodclearCostTerms
Description

Clears the cost terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCampusId
Description

Sets the project Id for this query to match rooms assigned to campuses.

Parametersosid.id.IdcampusIda campus Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT campusId is null
CompliancemandatoryThis method must be implemented.
MethodclearCampusIdTerms
Description

Clears the campus Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCampusQuery
Description

Tests if a CampusQuery is available.

Returnboolean true if a campus query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCampusQuery
Description

Gets the query for a campus query. Multiple retrievals produce a nested OR term.

Returnosid.room.CampusQuerythe campus query
ErrorsUNIMPLEMENTED supportsCampusQuery() is false
ComplianceoptionalThis method must be implemented if supportsCampusQuery() is true.
MethodclearCampusTerms
Description

Clears the campus terms.

CompliancemandatoryThis method must be implemented.
MethodgetProjectQueryRecord
Description

Gets the project query record corresponding to the given Project record Type. Multiple record retrievals produce a nested boolean OR term.

Parametersosid.type.TypeprojectRecordTypea project record type
Returnosid.room.construction.records.ProjectQueryRecordthe project query record
ErrorsNULL_ARGUMENT projectRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(projectRecordType) is false
CompliancemandatoryThis method must be implemented.