Interface | osid.personnel.AppointmentAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create an For updates, The delete operations delete This session includes an | ||
Method | getRealmId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Realm Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getRealm | ||
Description |
Gets the | ||
Return | osid.personnel.Realm | the realm | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateAppointments | ||
Description |
Tests if this user can create appointments. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known creating an | ||
Return | boolean | false if Appointment creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateAppointmentWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | appointmentRecordTypes | array of appointment record types |
Return | boolean | true if Appointment creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | appointmentRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getAppointmentFormForCreate | ||
Description |
Gets the appointment form for creating new appointments. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | personId | the person Id |
osid.id.Id | positionId | the position Id | |
osid.type.Type[] | appointmentRecordTypes | array of appointment record types to be included in the create operation or an empty list if none | |
Return | osid.personnel.AppointmentForm | the appointment form | |
Errors | NOT_FOUND | personId or positionId is not found | |
NULL_ARGUMENT | personId, positionId, or appointmentRecordTypes
is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | cannot get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createAppointment | ||
Description |
Creates a new | ||
Parameters | osid.personnel.AppointmentForm | appointmentForm | the form for this Appointment |
Return | osid.personnel.Appointment | the new Appointment | |
Errors | ILLEGAL_STATE | appointmentForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | appointmentForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | appointmentForm did not originate from
getAppointmentFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateAppointments | ||
Description |
Tests if this user can update appointments. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known updating an | ||
Return | boolean | false if Appointment modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getAppointmentFormForUpdate | ||
Description |
Gets the appointment form for updating an existing appointment. A new appointment form should be requested for each update transaction. | ||
Parameters | osid.id.Id | appointmentId | the Id of the Appointment |
Return | osid.personnel.AppointmentForm | the appointment form | |
Errors | NOT_FOUND | appointmentId is not found | |
NULL_ARGUMENT | appointmentId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateAppointment | ||
Description |
Updates an existing appointment. | ||
Parameters | osid.personnel.AppointmentForm | appointmentForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | appointmentForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | appointmentForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | appointmentForm did not originate from
getAppointmentFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteAppointments | ||
Description |
Tests if this user can delete appointments. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known deleting an | ||
Return | boolean | false if Appointment deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteAppointment | ||
Description |
Deletes an | ||
Parameters | osid.id.Id | appointmentId | the Id of the Appointment to remove |
Errors | NOT_FOUND | appointmentId not found | |
NULL_ARGUMENT | appointmentId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageAppointmentAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Appointment aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasAppointment | ||
Description |
Adds an | ||
Parameters | osid.id.Id | appointmentId | the Id of an Appointment |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | appointmentId not found | ||
NULL_ARGUMENT | appointmentId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |