OSID Logo
OSID Specifications
calendaring cycle package
Version 3.1.0
Interfaceosid.calendaring.cycle.TimePeriodCyclicTimePeriodAssignmentSession
Implementsosid.OsidSession
Used Byosid.calendaring.cycle.CalendaringCycleManager
osid.calendaring.cycle.CalendaringCycleProxyManager
Description

This session provides methods to manually assign TimePeriods to CyclicTimePeriods.

MethodgetCalendarId
Description

Gets the Calendar Id associated with this session.

Returnosid.id.Id the Calendar Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCalendar
Description

Gets the Calendar associated with this session.

Returnosid.calendaring.Calendar the Calendar associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.IdcyclicTimePeriodId the Id of the CyclicTimePeriod
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT cyclicTimePeriodId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableCyclicTimePeriodIds
Description

Gets a list of cyclic time period Ids.

Returnosid.id.IdList list of assignable cyclic time period Ids
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignTimePeriodToCyclicTimePeriod
Description

Adds an existing TimePeriod to a CyclicTimePeriod.

Parametersosid.id.IdtimePeriodId the Id of the TimePeriod
osid.id.IdcyclicTimePeriodId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignTimePeriodFromCyclicTimePeriod
Description

Removes a TimePeriod from a CyclicTimePeriod.

Parametersosid.id.IdtimePeriodId the Id of the TimePeriod
osid.id.IdcyclicTimePeriodId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.