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

This session provides methods to manually assign TimePeriods to CyclicTimePeriods.

MethodgetCalendarId
Description

Gets the Calendar Id associated with this session.

Returnosid.id.Idthe Calendar Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCalendar
Description

Gets the Calendar associated with this session.

Returnosid.calendaring.Calendarthe Calendar associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAssignTimePeriods
Description

Tests if this user can alter time period/cyclic time period 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.

Returnboolean false if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignCyclicTimePeriodsToCyclicTimePeriod
Description

Tests if this user can alter time period/cyclic time period 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.

Parametersosid.id.IdcyclicTimePeriodIdthe Id of the CyclicTimePeriod
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT cyclicTimePeriodId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableCyclicTimePeriodIds
Description

Gets a list of cyclic time period Ids.

Returnosid.id.IdListlist of assignable cyclic time period Ids
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignTimePeriodToCyclicTimePeriod
Description

Adds an existing TimePeriod to a CyclicTimePeriod.

Parametersosid.id.IdtimePeriodIdthe Id of the TimePeriod
osid.id.IdcyclicTimePeriodIdthe Id of the CyclicTimePeriod
ErrorsALREADY_EXISTS timePeriodId is alrteady assigned to cyclicTimePeriodId
NOT_FOUND timePeriodId or cyclicTimePeriodId not found
NULL_ARGUMENT timePeriodId or cyclicTimePeriodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignTimePeriodFromCyclicTimePeriod
Description

Removes a TimePeriod from a CyclicTimePeriod.

Parametersosid.id.IdtimePeriodIdthe Id of the TimePeriod
osid.id.IdcyclicTimePeriodIdthe Id of the CyclicTimePeriod
ErrorsNOT_FOUND timePeriodId or cyclicTimePeriodId not found or timePeriodId is not asigned to cyclicTimePeriodId
NULL_ARGUMENT timePeriodId or cyclicTimePeriodId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.