| Interface | osid.calendaring.cycle.CyclicTimePeriodCalendarAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session provides methods to re-assign Moving or adding a reference of a | ||
| Method | canAssignCyclicTimePeriods | ||
| Description |
Tests if this user can alter cyclic time
period/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 | canAssignCyclicTimePeriodsToCalendar | ||
| Description |
Tests if this user can alter cyclic time
period/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 | ||
| 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 cyclic time period 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 | getAssignableCalendarIdsForCyclicTimePeriod | ||
| Description |
Gets a list of calendars including and under the given calendar node in which a specific cyclic time period can be assigned. | ||
| Parameters | osid.id.Id | calendarId | the Id of the Calendar |
osid.id.Id | cyclicTimePeriodId | the Id of the CyclicTimePeriod | |
| Return | osid.id.IdList | list of assignable calendar Ids | |
| Errors | NULL_ARGUMENT | calendarId or cyclicTimePeriodId is
null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignCyclicTimePeriodToCalendar | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | cyclicTimePeriodId | the Id of the CyclicTimePeriod |
osid.id.Id | calendarId | the Id of the Calendar | |
| Errors | ALREADY_EXISTS | cyclicTimePeriodId is already assigned to calendarId
| |
| NOT_FOUND | cyclicTimePeriodId or calendarId not found | ||
| NULL_ARGUMENT | cyclicTimePeriodId or calendarId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignCyclicTimePeriodFromCalendar | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | cyclicTimePeriodId | the Id of the CyclicTimePeriod |
osid.id.Id | calendarId | the Id of the Calendar | |
| Errors | NOT_FOUND | cyclicTimePeriodId or calendarId not found or
cyclicTimePeriodId not assigned to calendarId | |
| NULL_ARGUMENT | cyclicTimePeriodId or calendarId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignCyclicTimePeriodToCalendar | ||
| Description |
Moves a | ||
| Parameters | osid.id.Id | cyclicTimePeriodId | the Id of the CyclicTimePeriod |
osid.id.Id | fromCalendarId | the Id of the current Calendar | |
osid.id.Id | toCalendarId | the Id of the destination Calendar | |
| Errors | NOT_FOUND | cyclicTimePeriodId fromCalendarId, or toCalendarId
not found or cyclicTimePeriodId not mapped to
fromCalendarId | |
| NULL_ARGUMENT | cyclicTimePeriodId, fromCalendarId, or toCalendarId
is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |