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

This session provides methods to manually assign Events to CyclicEvents. An Event may be the product of a OsidRule originating from a SupersedingEvent, OffsetEvent, or a RecurringEvent in which case the CyclicEvent is applied to the rule.

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.
MethodcanAssignEvents
Description

Tests if this user can alter event/cyclic event 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.
MethodcanAssignCyclicEventsToCyclicEvent
Description

Tests if this user can alter event/cyclic event 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.IdcyclicEventId the Id of the CyclicEvent
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT cyclicEventId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableCyclicEventIds
Description

Gets a list of cyclic event Ids.

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

Adds an existing Event to a CyclicEvent.

Parametersosid.id.IdeventId the Id of the Event
osid.id.IdcyclicEventId the Id of the CyclicEvent
ErrorsALREADY_EXISTS eventId is already assigned to cyclicEventId
NOT_FOUND eventId or cyclicEventId not found
NULL_ARGUMENT eventId or cyclicEventId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignEventFromCyclicEvent
Description

Removes an Event from a CyclicEvent.

Parametersosid.id.IdeventId the Id of the Event
osid.id.IdcyclicEventId the Id of the CyclicEvent
ErrorsNOT_FOUND eventId or cyclicEventId not found or eventId is not assigned to cyclicEventId
NULL_ARGUMENT eventId or cyclicEventId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.