OSID Logo
OSID Specifications
room package
Version 3.0.0
Release Candidate Preview
Interfaceosid.room.BuildingSmartCampusSession
Implementsosid.OsidSession
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A BuildingQuery can be retrieved from this session and mapped to this Campus to create a virtual collection of Buildings. The buildings may be sequenced using the BuildingSearchOrder from this session.

This Campus has a default query that matches any building and a default search order that specifies no sequencing. The queries may be examined using a BuildingQueryInspector. The query may be modified by converting the inspector back to a BuildingQuery.

MethodgetCampusId
Description

Gets the Campus Id associated with this session.

Returnosid.id.Idthe Campus Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCampus
Description

Gets the Campus associated with this session.

Returnosid.room.Campusthe Campus associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartCampuses
Description

Tests if this user can manage smart campuses. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart campus management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBuildingQuery
Description

Gets a building query.

Returnosid.room.BuildingQuerythe building query
CompliancemandatoryThis method must be implemented.
MethodgetBuildingSearchOrder
Description

Gets a building search order.

Returnosid.room.BuildingSearchOrderthe building search order
CompliancemandatoryThis method must be implemented.
MethodapplyBuildingQuery
Description

Applies a building query to this campus.

Parametersosid.room.BuildingQuerybuildingQuerythe building query
ErrorsNULL_ARGUMENT buildingQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED buildingQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectBuildingQuery
Description

Gets a building query inspector for this campus.

Returnosid.room.BuildingQueryInspectorthe building query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyBuildingSequencing
Description

Applies a building search order to this campus.

Parametersosid.room.BuildingSearchOrderbuildingSearchOrderthe building search order
ErrorsNULL_ARGUMENT buildingSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED buildingSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetBuildingQueryFromInspector
Description

Gets a building query from an inspector.

Parametersosid.room.BuildingQueryInspectorbuildingQueryInspectora query inspector
Returnosid.room.BuildingQuerythe building query
ErrorsNULL_ARGUMENT buildingQueryInspector is null
UNSUPPORTED buildingQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.