OSID Logo
OSID Specifications
room squatting package
Version 3.1.0
Interfaceosid.room.squatting.LeaseQuery
Implementsosid.OsidRelationshipQuery
Used Byosid.room.squatting.LeaseQuerySession
osid.room.squatting.LeaseSearchSession
osid.room.squatting.LeaseSmartCampusSession
Description

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

MethodmatchRoomId
Description

Sets the room Id for this query to match rooms assigned to leases.

Parametersosid.id.IdroomId a room Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT roomId is null
Compliancemandatory This method must be implemented.
MethodclearRoomIdTerms
Description

Clears the room Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsRoomQuery
Description

Tests if a room query is available.

Returnboolean true if a room query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRoomQuery
Description

Gets the query for a lease.

Returnosid.room.RoomQuery the room query
ErrorsUNIMPLEMENTED supportsRoomQuery() is false
Complianceoptional This method must be implemented if supportsRoomQuery() is true.
MethodclearRoomTerms
Description

Clears the room terms.

Compliancemandatory This method must be implemented.
MethodmatchTenantId
Description

Sets the resource Id for this query to match rooms assigned to leases.

Parametersosid.id.IdresourceId a resource Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodclearTenantIdTerms
Description

Clears the tenant Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsTenantQuery
Description

Tests if a tenant query is available.

Returnboolean true if a tenant query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetTenantQuery
Description

Gets the query for a tenant resource.

Returnosid.resource.ResourceQuery the resource query
ErrorsUNIMPLEMENTED supportsTenantQuery() is false
Complianceoptional This method must be implemented if supportsTenantQuery() is true.
MethodclearTenantTerms
Description

Clears the tenant terms.

Compliancemandatory This method must be implemented.
MethodmatchCampusId
Description

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

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

Clears the campus Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCampusQuery
Description

Tests if a CampusQuery is available.

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

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

Returnosid.room.CampusQuery the campus query
ErrorsUNIMPLEMENTED supportsCampusQuery() is false
Complianceoptional This method must be implemented if supportsCampusQuery() is true.
MethodclearCampusTerms
Description

Clears the campus terms.

Compliancemandatory This method must be implemented.
MethodgetLeaseQueryRecord
Description

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

Parametersosid.type.TypeleaseRecordType a lease record type
Returnosid.room.squatting.records.LeaseQueryRecord the lease query record
ErrorsNULL_ARGUMENT leaseRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(leaseRecordType) is false
Compliancemandatory This method must be implemented.