public interface AppointmentRealmSession extends OsidSession
This session provides methods to retrieve Appointment to
Realm mappings. An Appointment may appear in
multiple Realms. Each Realm may have its own
authorizations governing who is allowed to look at it.
This lookup session defines several views:
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupAppointmentRealmMappings()
Tests if this user can perform lookups of appointment/realm mappings.
|
IdList |
getAppointmentIdsByRealm(Id realmId)
Gets the list of Appointment Ids associated with a
Realm. |
IdList |
getAppointmentIdsByRealms(IdList realmIds)
Gets the list of
Appointment Ids corresponding to a
list of Realm objects. |
AppointmentList |
getAppointmentsByRealm(Id realmId)
Gets the list of
Appointments associated with a
Realm. |
AppointmentList |
getAppointmentsByRealms(IdList realmIds)
Gets the list of
Appointments corresponding to a list
of Realms. |
IdList |
getRealmIdsByAppointment(Id appointmentId)
Gets the list of
Realm Ids mapped to an
Appointment. |
RealmList |
getRealmsByAppointment(Id appointmentId)
Gets the list of
Realm objects mapped to an
Appointment. |
void |
useComparativeRealmView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
usePlenaryRealmView()
A complete view of the
Appointment and Realm
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupAppointmentRealmMappings()
PERMISSION_DENIED. This is intendedas
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false if looking up mappings is not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeRealmView()
mandatory - This method is must be implemented. void usePlenaryRealmView()
Appointment and Realm
returns is desired. Methods will return what is requested or
result in an error. This view is used when greater precision is
desired at the expense of interoperability.mandatory - This method is must be implemented. IdList getAppointmentIdsByRealm(Id realmId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Realm.
realmId - Id of a Realms. Ids NotFoundException - realmId is not foundNullArgumentException - realmId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AppointmentList getAppointmentsByRealm(Id realmId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Appointments associated with a
Realm. realmId - Id of a Realm NotFoundException - realmId is not foundNullArgumentException - realmId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getAppointmentIdsByRealms(IdList realmIds) throws OperationFailedException, PermissionDeniedException
Appointment Ids corresponding to a
list of Realm objects.realmIds - list of realm Ids Ids NullArgumentException - realmIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. AppointmentList getAppointmentsByRealms(IdList realmIds) throws OperationFailedException, PermissionDeniedException
Appointments corresponding to a list
of Realms. realmIds - list of realm Ids NullArgumentException - realmIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getRealmIdsByAppointment(Id appointmentId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Realm Ids mapped to an
Appointment. appointmentId - Id of an Appointment
Ids NotFoundException - appointmentId is not
foundNullArgumentException - appointmentId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. RealmList getRealmsByAppointment(Id appointmentId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Realm objects mapped to an
Appointment. appointmentId - Id of an Appointment
NotFoundException - appointmentId is not
foundNullArgumentException - appointmentId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.