Interface AppointmentSmartRealmSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. An AppointmentQuery can be retrieved from this session
and mapped to this Realm to create a virtual collection of
Appointments . The appointments may be sequenced using the
AppointmentSearchOrder from this session.
This Realm has a default query that matches any appointment
and a default search order that specifies no sequencing. The queries may
be examined using an AppointmentQueryInspector . The query may be
modified by converting the inspector back to an AppointmentQuery .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAppointmentQuery(AppointmentQuery appointmentQuery) Applies an appointment query to this realm.voidapplyAppointmentSequencing(AppointmentSearchOrder appointmentSearchOrder) Applies an appointment search order to this realm.booleanTests if this user can manage smart realms.Gets an appointment query.getAppointmentQueryFromInspector(AppointmentQueryInspector appointmentQueryInspector) Gets an appointment query from an inspector.Gets an appointment search order.getRealm()Gets theRealmassociated with this session.Gets theRealmIdassociated with this session.Gets an appointment query inspector for this realm.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getRealmId
Id getRealmId()Gets theRealmIdassociated with this session.- Returns:
- the
Realm Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getRealm
Gets theRealmassociated with this session.- Returns:
- the
Realmassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartRealms
boolean canManageSmartRealms()Tests if this user can manage smart realms. 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.- Returns:
falseif smart realm management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getAppointmentQuery
AppointmentQuery getAppointmentQuery()Gets an appointment query.- Returns:
- the appointment query
- Compliance:
mandatory- This method must be implemented.
-
getAppointmentSearchOrder
AppointmentSearchOrder getAppointmentSearchOrder()Gets an appointment search order.- Returns:
- the appointment search order
- Compliance:
mandatory- This method must be implemented.
-
applyAppointmentQuery
void applyAppointmentQuery(AppointmentQuery appointmentQuery) throws OperationFailedException, PermissionDeniedException Applies an appointment query to this realm.- Parameters:
appointmentQuery- the appointment query- Throws:
NullArgumentException-appointmentQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-appointmentQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectAppointmentQuery
AppointmentQueryInspector inspectAppointmentQuery() throws OperationFailedException, PermissionDeniedExceptionGets an appointment query inspector for this realm.- Returns:
- the appointment query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyAppointmentSequencing
void applyAppointmentSequencing(AppointmentSearchOrder appointmentSearchOrder) throws OperationFailedException, PermissionDeniedException Applies an appointment search order to this realm.- Parameters:
appointmentSearchOrder- the appointment search order- Throws:
NullArgumentException-appointmentSearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-appointmentSearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getAppointmentQueryFromInspector
AppointmentQuery getAppointmentQueryFromInspector(AppointmentQueryInspector appointmentQueryInspector) Gets an appointment query from an inspector.- Parameters:
appointmentQueryInspector- a query inspector- Returns:
- the appointment query
- Throws:
NullArgumentException-appointmentQueryInspectorisnullUnsupportedException-appointmentQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-