OSID Logo
OSID Specifications
room squatting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.room.squatting.LeaseSearchOrder
Implementsosid.OsidRelationshipSearchOrder
Description

An interface for specifying the ordering of search results.

MethodorderByRoom
Description

Specifies a preference for ordering the result set by the room.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodsupportsRoomSearchOrder
Description

Tests if a room search order is available.

Returnboolean true if a room search order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRoomSearchOrder
Description

Gets the room search order.

Returnosid.room.RoomSearchOrderthe room search order
ErrorsUNIMPLEMENTED supportsRoomSearchOrder() is false
ComplianceoptionalThis method must be implemented if supportsRoomSearchOrder() is true.
MethodorderByTenant
Description

Specifies a preference for ordering the result set by the owner.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodsupportsTenantSearchOrder
Description

Tests if a tenant resource search order is available.

Returnboolean true if an tenant search order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetTenantSearchOrder
Description

Gets the tenant resource search order.

Returnosid.resource.ResourceSearchOrderthe resource search order
ErrorsUNIMPLEMENTED supportsTenantSearchOrder() is false
ComplianceoptionalThis method must be implemented if supportsTenantSearchOrder() is true.
MethodgetLeaseSearchOrderRecord
Description

Gets the lease search order record corresponding to the given lease record Type. Multiple retrievals return the same underlying object.

Parametersosid.type.TypeleaseRecordTypea lease record type
Returnosid.room.squatting.records.LeaseSearchOrderRecordthe lease search order record
ErrorsNULL_ARGUMENT leaseRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(leaseRecordType) is false
CompliancemandatoryThis method must be implemented.