Interface | osid.calendaring.ScheduleSlotAdminSession | ||
---|---|---|---|
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 | canCreateScheduleSlots | ||
Description |
Tests if this user can create | ||
Return | boolean | false if ScheduleSlot creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateScheduleSlotWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | scheduleSlotRecordTypes | array of schedule slot record types |
Return | boolean | true if ScheduleSlot creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | scheduleSlotRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getScheduleSlotFormForCreate | ||
Description |
Gets the schedule slot form for creating new schedule slots. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | scheduleSlotRecordTypes | array of schedule slot record types |
Return | osid.calendaring.ScheduleSlotForm | the schedule slot form | |
Errors | NULL_ARGUMENT | scheduleSlotRecordTypes 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 | createScheduleSlot | ||
Description |
Creates a new | ||
Parameters | osid.calendaring.ScheduleSlotForm | scheduleSlotForm | the form for this ScheduleSlot |
Return | osid.calendaring.ScheduleSlot | the new ScheduleSlot | |
Errors | ILLEGAL_STATE | scheduleSlotForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | scheduleSlotForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | scheduleSlotForm did not originate from
getScheduleSlotFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateScheduleSlots | ||
Description |
Tests if this user can update | ||
Return | boolean | false if schedule slot modification is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getScheduleSlotFormForUpdate | ||
Description |
Gets the schedule slot form for updating an existing schedule slot. A new schedule slot form should be requested for each update transaction. | ||
Parameters | osid.id.Id | scheduleSlotId | the Id of the ScheduleSlot |
Return | osid.calendaring.ScheduleSlotForm | the schedule slot form | |
Errors | NOT_FOUND | scheduleSlotId is not found | |
NULL_ARGUMENT | scheduleSlotId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateScheduleSlot | ||
Description |
Updates an existing schedule slot. | ||
Parameters | osid.calendaring.ScheduleSlotForm | scheduleSlotForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | scheduleSlotForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | scheduleSlotForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | scheduleSlotForm did not originate from
getScheduleSlotFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteScheduleSlots | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if ScheduleSlot deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteScheduleSlot | ||
Description |
Deletes the | ||
Parameters | osid.id.Id | scheduleSlotId | the Id of the ScheduleSlot to delete |
Errors | NOT_FOUND | a ScheduleSlot was not found identified by the given
Id | |
NULL_ARGUMENT | scheduleSlotId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageScheduleSlotAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if ScheduleSlot aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasScheduleSlot | ||
Description |
Adds an | ||
Parameters | osid.id.Id | scheduleSlotId | the Id of a ScheduleSlot |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | scheduleSlotId not found | ||
NULL_ARGUMENT | scheduleSlotId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |