public interface RoomSmartCampusSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A RoomQuery
can be retrieved from this session
and mapped to this Campus
to create a virtual collection of
Rooms.
The rooms may be sequenced using the
RoomSearchOrder
from this session.
This Campus
has a default query that matches any room
and a default search order that specifies no sequencing. The queries may
be examined using a RoomQueryInspector.
The query may be
modified by converting the inspector back to a RoomQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyRoomQuery(RoomQuery roomQuery)
Applies a room query to this campus.
|
void |
applyRoomSequencing(RoomSearchOrder roomSearchOrder)
Applies a room search order to this campus.
|
boolean |
canManageSmartCampuses()
Tests if this user can manage smart campuses.
|
Campus |
getCampus()
Gets the
Campus associated with this session. |
Id |
getCampusId()
Gets the
Campus Id associated with this
session. |
RoomQuery |
getRoomQuery()
Gets a room query.
|
RoomQuery |
getRoomQueryFromInspector(RoomQueryInspector roomQueryInspector)
Gets a room query from an inspector.
|
RoomSearchOrder |
getRoomSearchOrder()
Gets a room search order.
|
RoomQueryInspector |
inspectRoomQuery()
Gets a room query inspector for this campus.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id 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. RoomQuery getRoomQuery()
mandatory
- This method must be implemented. RoomSearchOrder getRoomSearchOrder()
mandatory
- This method must be implemented. void applyRoomQuery(RoomQuery roomQuery) throws OperationFailedException, PermissionDeniedException
roomQuery
- the room queryNullArgumentException
- roomQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- roomQuery
not of
this servicemandatory
- This method must be implemented. RoomQueryInspector inspectRoomQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyRoomSequencing(RoomSearchOrder roomSearchOrder) throws OperationFailedException, PermissionDeniedException
roomSearchOrder
- the room search orderNullArgumentException
- roomSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- roomSearchOrder
not of this servicemandatory
- This method must be implemented. RoomQuery getRoomQueryFromInspector(RoomQueryInspector roomQueryInspector)
roomQueryInspector
- a query inspectorNullArgumentException
- roomQueryInspector
is null
UnsupportedException
- roomQueryInspector
is not of this servicemandatory
- This method must be implemented.