| Interface | osid.calendaring.ScheduleAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
| Method | getCalendarId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Calendar Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCalendar | ||
| Description |
Gets the | ||
| Return | osid.calendaring.Calendar | the Calendar associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateSchedules | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Schedule creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateScheduleWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | scheduleRecordTypes | array of schedule record types |
| Return | boolean | true if Schedule creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | scheduleRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getScheduleFormForCreate | ||
| Description |
Gets the schedule form for creating new schedules. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | scheduleRecordTypes | array of schedule record types |
| Return | osid.calendaring.ScheduleForm | the schedule form | |
| Errors | NULL_ARGUMENT | scheduleRecordTypes is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createSchedule | ||
| Description |
Creates a new | ||
| Parameters | osid.calendaring.ScheduleForm | scheduleForm | the form for this Schedule |
| Return | osid.calendaring.Schedule | the new Schedule | |
| Errors | ILLEGAL_STATE | scheduleForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | scheduleForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | scheduleForm did not originate from
getScheduleFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateSchedules | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if schedule modification is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getScheduleFormForUpdate | ||
| Description |
Gets the schedule form for updating an existing schedules. A new schedule form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | scheduleId | the Id of the Schedule |
| Return | osid.calendaring.ScheduleForm | the schedule form | |
| Errors | NOT_FOUND | scheduleId is not found | |
| NULL_ARGUMENT | scheduleId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateSchedule | ||
| Description |
Updates an existing schedule. | ||
| Parameters | osid.calendaring.ScheduleForm | scheduleForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | scheduleForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | scheduleForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | scheduleForm did not originate from
getScheduleFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteSchedules | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Schedule deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteSchedule | ||
| Description |
Deletes the | ||
| Parameters | osid.id.Id | scheduleId | the Id of the Schedule to delete |
| Errors | NOT_FOUND | a Schedule was not found identified by the given Id
| |
| NULL_ARGUMENT | scheduleId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageScheduleAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Schedule aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasSchedule | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | scheduleId | the Id of a Schedule |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | scheduleId not found | ||
| NULL_ARGUMENT | scheduleId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |