public interface BuildingSmartCampusSession extends OsidSession
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.
| Modifier and Type | Method and Description |
|---|---|
void |
applyBuildingQuery(BuildingQuery buildingQuery)
Applies a building query to this campus.
|
void |
applyBuildingSequencing(BuildingSearchOrder buildingSearchOrder)
Applies a building search order to this campus.
|
boolean |
canManageSmartCampuses()
Tests if this user can manage smart campuses.
|
BuildingQuery |
getBuildingQuery()
Gets a building query.
|
BuildingQuery |
getBuildingQueryFromInspector(BuildingQueryInspector buildingQueryInspector)
Gets a building query from an inspector.
|
BuildingSearchOrder |
getBuildingSearchOrder()
Gets a building search order.
|
Campus |
getCampus()
Gets the
Campus associated with this session. |
Id |
getCampusId()
Gets the
Campus Id associated with this
session. |
BuildingQueryInspector |
inspectBuildingQuery()
Gets a building query inspector for this campus.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getCampusId()
Campus Id associated with this
session. Campus Id associated with this sessionmandatory - This method must be implemented. Campus getCampus() throws OperationFailedException, PermissionDeniedException
Campus associated with this session. Campus associated with this sessionOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageSmartCampuses()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false if smart campus management is not
authorized, true otherwisemandatory - This method must be implemented. BuildingQuery getBuildingQuery()
mandatory - This method must be implemented. BuildingSearchOrder getBuildingSearchOrder()
mandatory - This method must be implemented. void applyBuildingQuery(BuildingQuery buildingQuery) throws OperationFailedException, PermissionDeniedException
buildingQuery - the building queryNullArgumentException - buildingQuery is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - buildingQuery not
of this servicemandatory - This method must be implemented. BuildingQueryInspector inspectBuildingQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void applyBuildingSequencing(BuildingSearchOrder buildingSearchOrder) throws OperationFailedException, PermissionDeniedException
buildingSearchOrder - the building search orderNullArgumentException - buildingSearchOrder
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException - buildingSearchOrder
not of this servicemandatory - This method must be implemented. BuildingQuery getBuildingQueryFromInspector(BuildingQueryInspector buildingQueryInspector)
buildingQueryInspector - a query inspectorNullArgumentException - buildingQueryInspector
is null UnsupportedException - buildingQueryInspector
is not of this servicemandatory - This method must be implemented.