Interface | osid.calendaring.ScheduleSlotCalendarAssignmentSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to re-assign Moving or adding a reference of a | ||
Method | canAssignScheduleSlots | ||
Description |
Tests if this user can alter schedule slot/calendar
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 | canAssignScheduleSlotsToCalendar | ||
Description |
Tests if this user can alter schedule slot/calendar 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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users. | ||
Parameters | osid.id.Id | calendarId | the Id of the Calendar |
Return | boolean | false if mapping is not authorized, true
otherwise | |
Errors | NULL_ARGUMENT | calendarId is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getAssignableCalendarIds | ||
Description |
Gets a list of calendars including and under the given calendar node in which any schedule slot can be assigned. | ||
Parameters | osid.id.Id | calendarId | the Id of the Calendar |
Return | osid.id.IdList | list of assignable calendar Ids | |
Errors | NULL_ARGUMENT | calendarId is null | |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAssignableCalendarIdsForScheduleSlot | ||
Description |
Gets a list of calendars including and under the given calendar node in which a specific schedule slot can be assigned. | ||
Parameters | osid.id.Id | calendarId | the Id of the Calendar |
osid.id.Id | scheduleSlotId | the Id of the ScheduleSlot | |
Return | osid.id.IdList | list of assignable calendar Ids | |
Errors | NULL_ARGUMENT | calendarId or scheduleSlotId is null
| |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | assignScheduleSlotToCalendar | ||
Description |
Adds an existing | ||
Parameters | osid.id.Id | scheduleSlotId | the Id of the ScheduleSlot |
osid.id.Id | calendarId | the Id of the Calendar | |
Errors | ALREADY_EXISTS | scheduleSlotId is already assigned to calendarId
| |
NOT_FOUND | scheduleSlotId or calendarId not found | ||
NULL_ARGUMENT | scheduleSlotId or calendarId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | unassignScheduleSlotFromCalendar | ||
Description |
Removes a | ||
Parameters | osid.id.Id | scheduleSlotId | the Id of the ScheduleSlot |
osid.id.Id | calendarId | the Id of the Calendar | |
Errors | NOT_FOUND | scheduleSlotId or calendarId not found or
scheduleSlotId not assigned to calendarId | |
NULL_ARGUMENT | scheduleSlotId or calendarId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | reassignScheduleSlotToCalendar | ||
Description |
Moves a | ||
Parameters | osid.id.Id | scheduleSlotId | the Id of the ScheduleSlot |
osid.id.Id | fromBillingId | the Id of the current Calendar | |
osid.id.Id | toBiillingId | the Id of the destination Calendar | |
Errors | NOT_FOUND | scheduleSlotId, fromCalendarId, or toCalendarId
not found or scheduleSlotId not mapped to
fromCalendarId | |
NULL_ARGUMENT | scheduleSlotId, fromCalendarId, or toCalendarId
is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |