Interface | osid.personnel.AppointmentRealmAssignmentSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to re-assign Adding a reference of an | ||
Method | canAssignAppointments | ||
Description |
Tests if this user can alter appointment/realm
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
Return | boolean | false if mapping is not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canAssignAppointmentsToRealm | ||
Description |
Tests if this user can alter appointment/realm
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
Parameters | osid.id.Id | realmId | the Id of the Realm |
Return | boolean | false if mapping is not authorized, true
otherwise | |
Errors | NULL_ARGUMENT | realmId is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getAssignableRealmIds | ||
Description |
Gets a list of realms including and under the given realm node in which any appointment can be assigned. | ||
Parameters | osid.id.Id | realmId | the Id of the Realm |
Return | osid.id.IdList | list of assignable realm Ids | |
Errors | NULL_ARGUMENT | realmId is null | |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAssignableRealmIdsForAppointment | ||
Description |
Gets a list of realms including and under the given realm node in which a specific appointment can be assigned. | ||
Parameters | osid.id.Id | realmId | the Id of the Realm |
osid.id.Id | appointmentId | the Id of the Appointment | |
Return | osid.id.IdList | list of assignable realm Ids | |
Errors | NULL_ARGUMENT | realmId or appointmentId is null
| |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | assignAppointmentToRealm | ||
Description |
Adds an existing | ||
Parameters | osid.id.Id | appointmentId | the Id of the Appointment |
osid.id.Id | realmId | the Id of the Realm | |
Errors | ALREADY_EXISTS | appointmentId already assigned to realmId | |
NOT_FOUND | appointmentId or realmId not found | ||
NULL_ARGUMENT | appointmentId or realmId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | unassignAppointmentFromRealm | ||
Description |
Removes an | ||
Parameters | osid.id.Id | appointmentId | the Id of the Appointment |
osid.id.Id | realmId | the Id of the Realm | |
Errors | NOT_FOUND | appointmentId or realmId not found or
appointmentId not mapped to realmId | |
NULL_ARGUMENT | appointmentId or realmId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |