| Interface | osid.personnel.AppointmentRealmAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.personnel.PersonnelManager | ||
osid.personnel.PersonnelProxyManager | |||
| 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. | |
| Method | reassignAppointmentToRealm | ||
| Description |
Moves an | ||
| Parameters | osid.id.Id | appointmentId | the Id of the Appointment |
osid.id.Id | fromRealmId | the Id of the current Realm | |
osid.id.Id | toRealmId | the Id of the destination Realm | |
| Errors | ALREADY_EXISTS | appointmentId already assigned to toRealmId | |
| NOT_FOUND | appointmentId, fromRealmId , or toRealmId not
found or appointmentId not mapped to fromRealmId | ||
| NULL_ARGUMENT | appointmentId, fromRealmId , or toRealmId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |