OSID Logo
OSID Specifications
calendaring cycle package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.cycle.CyclicTimePeriodCalendarAssignmentSession
Implementsosid.OsidSession
Description

This session provides methods to re-assign CyclicTimePeriods to Calendars. A CyclicTimePeriod may map to multiple Calendars and removing the last reference to a CyclicTimePeriod is the equivalent of deleting it. Each Calendar may have its own authorizations governing who is allowed to operate on it.

Moving or adding a reference of a CyclicTimePeriod to another Calendar is not a copy operation (eg: does not change its Id ).

MethodcanAssignCyclicTimePeriods
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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignCyclicTimePeriodsToCalendar
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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Parametersosid.id.IdcalendarIdthe Id of the Calendar
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT calendarId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableCalendarIds
Description

Gets a list of calendars including and under the given calendar node in which any cyclic time period can be assigned.

Parametersosid.id.IdcalendarIdthe Id of the Calendar
Returnosid.id.IdListlist of assignable calendar Ids
ErrorsNULL_ARGUMENT calendarId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableCalendarIdsForCyclicTimePeriod
Description

Gets a list of calendars including and under the given calendar node in which a specific cyclic time period can be assigned.

Parametersosid.id.IdcalendarIdthe Id of the Calendar
osid.id.IdcyclicTimePeriodIdthe Id of the CyclicTimePeriod
Returnosid.id.IdListlist of assignable calendar Ids
ErrorsNULL_ARGUMENT calendarId or cyclicTimePeriodId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignCyclicTimePeriodToCalendar
Description

Adds an existing CyclicTimePeriod to a Calendar.

Parametersosid.id.IdcyclicTimePeriodIdthe Id of the CyclicTimePeriod
osid.id.IdcalendarIdthe Id of the Calendar
ErrorsALREADY_EXISTS cyclicTimePeriodId is already assigned to calendarId
NOT_FOUND cyclicTimePeriodId or calendarId not found
NULL_ARGUMENT cyclicTimePeriodId or calendarId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignCyclicTimePeriodFromCalendar
Description

Removes a CyclicTimePeriod from a Calendar.

Parametersosid.id.IdcyclicTimePeriodIdthe Id of the CyclicTimePeriod
osid.id.IdcalendarIdthe Id of the Calendar
ErrorsNOT_FOUND cyclicTimePeriodId or calendarId not found or cyclicTimePeriodId not assigned to calendarId
NULL_ARGUMENT cyclicTimePeriodId or calendarId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodreassignCyclicTimePeriodToCalendar
Description

Moves a CyclicTimePeriod from one Calendar to another. Mappings to other Calendars are unaffected.

Parametersosid.id.IdcyclicTimePeriodIdthe Id of the CyclicTimePeriod
osid.id.IdfromCalendarIdthe Id of the current Calendar
osid.id.IdtoCalendarIdthe Id of the destination Calendar
ErrorsNOT_FOUND cyclicTimePeriodId fromCalendarId, or toCalendarId not found or cyclicTimePeriodId not mapped to fromCalendarId
NULL_ARGUMENT cyclicTimePeriodId, fromCalendarId, or toCalendarId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.