OSID Logo
OSID Specifications
calendaring package
Version 3.1.0
Interfaceosid.calendaring.SupersedingEventAdminSession
Implementsosid.OsidSession
Used Byosid.calendaring.CalendaringManager
osid.calendaring.CalendaringProxyManager
Description

This session creates, updates, and deletes Superseding Events. The data for create and update is provided by the consumer via the form object. OsidForms are requested for each create or update and may not be reused.

Create and update operations differ in their usage. To create a SupersedingEvent, a SupersedingEventForm is requested using getSupersedingEventFormForCreate() specifying the desired relationship peers and record Types or none if no record Types are needed. The returned SupersedingEventForm will indicate that it is to be used with a create operation and can be used to examine metdata or validate data prior to creation. Once the SupersedingEventForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each SupersedingEventForm corresponds to an attempted transaction.

For updates, SupersedingEventForms are requested to the SupersedingEvent Id that is to be updated using getSupersedingEventFormForUpdate(). Similarly, the SupersedingEventForm has metadata about the data that can be updated and it can perform validation before submitting the update. The SupersedingEventForm can only be used once for a successful update and cannot be reused.

The delete operations delete Superseding Events. To unmap a SupersedingEvent from the current Calendar, the SupersedingEventCalendarAssignmentSession should be used. These delete operations attempt to remove the SupersedingEvent itself thus removing it from all known Calendar catalogs.

This session includes an Id aliasing mechanism to assign an external Id to an internally assigned Id.

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

Tests if this user can create SupersedingEvents. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating an Event will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.

Returnboolean false if Event creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateSupersedingEventWithRecordTypes
Description

Tests if this user can create a single SupersedingEvent using the desired record types. While CalendaringManager.getSupersedingEventRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific SupersedingEvent. Providing an empty array tests if a RecurringEvent can be created with no records.

Parametersosid.type.Type[]supersdeingEventRecordTypes array of superseding evnt record types
Returnboolean true if SupersedingEvent creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT supersedingEventRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetSupersedingEventFormForCreate
Description

Gets the superseding event form for creating new events. A new form should be requested for each create transaction.

Parametersosid.id.IdsupersededEventId the Id of the superseded event
osid.id.IdsupersedingEventId the Id of the superseding event
osid.type.Type[]supersdeingEventRecordTypes array of superseding evnt record types
Returnosid.calendaring.SupersedingEventForm the superseding event form
ErrorsNOT_FOUND supersededEventId or supersedingEventId not found
NULL_ARGUMENT supersededEventId, supersedingEventId, or supersdeingEventRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form for requested record types
Compliancemandatory This method must be implemented.
MethodcreateSupersedingEvent
Description

Creates a new SupersedingEvent.

Parametersosid.calendaring.SupersedingEventFormsupersedingEventForm the form for this SupersedingEvent
Returnosid.calendaring.SupersedingEvent the new SupersedingEvent
ErrorsILLEGAL_STATE supersdeingEventForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT supersdeingEventForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED supersedingEventForm did not originate from getSupersedingEventFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateSupersedingEvents
Description

Tests if this user can update SupersedingEvents. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a SupersedingEvent will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.

Returnboolean false if superseding event modification is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetSupersedingEventFormForUpdate
Description

Gets the superseding event form for updating an existing superseding event. A new superseding event form should be requested for each update transaction.

Parametersosid.id.IdsupersedingEventId the Id of the SupersedingEvent
Returnosid.calendaring.SupersedingEventForm the superseding event form
ErrorsNOT_FOUND supersedingEventId is not found
NULL_ARGUMENT supersedingEventId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateSupersedingEvent
Description

Updates an existing superseding event.

Parametersosid.calendaring.SupersedingEventFormsupersedingEventForm the form containing the elements to be updated
ErrorsILLEGAL_STATE supersdeingEventForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT supersedingEventForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED supersedingEventForm did not originate from getSupersedingEventFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteSupersedingEvents
Description

Tests if this user can delete SupersedingEvents. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a SupersedingEvent will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.

Returnboolean false if SupersedingEvent deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteSupersedingEvent
Description

Deletes the SupersedingEvent identified by the given Id.

Parametersosid.id.IdsupersedingEventId the Id of the SupersedingEvent to delete
ErrorsNOT_FOUND a SupersedingEvent was not found identified by the given Id
NULL_ARGUMENT supersedingEventId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSupersedingEventAliases
Description

Tests if this user can manage Id aliases for SupersedingEvents. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if SupersedingEvent aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasSupersedingEvent
Description

Adds an Id to a SupersedingEvent for the purpose of creating compatibility. The primary Id of the SupersedingEvent is determined by the provider. The new Id performs as an alias to the primary Id. If the alias is a pointer to another superseding event, it is reassigned to the given superseding event Id.

Parametersosid.id.IdsupersedingEventId the Id of a SupersedingEvent
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND supersedingEventId not found
NULL_ARGUMENT supersedingEventId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.