OSID Logo
OSID Specifications
calendaring rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.rules.SupersedingEventEnablerAdminSession
Implementsosid.OsidSession
Description

This session creates and removes superseding event enablers. The data for create and update is provided via the SupersedingEventEnablerForm.

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
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanCreateSupersedingEventEnabler
Description

Tests if this user can create superseding event enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a SupersedingEventEnabler 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 SupersedingEventEnabler creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateSupersedingEventEnablerWithRecordTypes
Description

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

Parametersosid.type.Type[]supersedingEventEnablerRecordTypesarray of superseding event enabler types
Returnboolean true if SupersedingEventEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT supersedingEventEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetSupersedingEventEnablerFormForCreate
Description

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

Parametersosid.type.Type[]supersedingEventEnablerRecordTypesarray of superseding event enabler types
Returnosid.calendaring.rules.SupersedingEventEnablerFormthe superseding event enabler form
ErrorsNULL_ARGUMENT supersedingEventEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateSupersedingEventEnabler
Description

Creates a new SupersedingEventEnabler.

Parametersosid.calendaring.rules.SupersedingEventEnablerFormsupersedingEventEnablerFormthe form for this SupersedingEventEnabler
Returnosid.calendaring.rules.SupersedingEventEnablerthe new SupersedingEventEnabler
ErrorsILLEGAL_STATE supersedingEventEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT supersedingEventEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED supersedingEventEnablerForm did not originate from getSupersedingEventFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateSupersedingEventEnablers
Description

Tests if this user can update superseding event enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a SupersedingEventEnabler 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 SupersedingEventEnabler modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSupersedingEventEnablerFormForUpdate
Description

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

Parametersosid.id.IdsupersedingEventEnablerIdthe Id of the SupersedingEventEnabler
Returnosid.calendaring.rules.SupersedingEventEnablerFormthe superseding event enabler form
ErrorsNOT_FOUND supersedingEventEnablerId is not found
NULL_ARGUMENT supersedingEventEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateSupersedingEventEnabler
Description

Updates an existing superseding event enabler.

Parametersosid.calendaring.rules.SupersedingEventEnablerFormsupersedingEventEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE supersedingEventEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT supersedingEventEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED supersedingEventEnablerForm did not originate from getSupersedingEventFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteSupersedingEventEnablers
Description

Tests if this user can delete superseding event enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a SupersedingEventEnabler 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 SupersedingEventEnabler deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteSupersedingEventEnabler
Description

Deletes a SupersedingEventEnabler.

Parametersosid.id.IdsupersedingEventEnablerIdthe Id of the SupersedingEventEnabler to remove
ErrorsNOT_FOUND supersedingEventEnablerId not found
NULL_ARGUMENT supersedingEventEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSupersedingEventEnablerAliases
Description

Tests if this user can manage Id aliases for superseding event enablers. 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 SupersedingEventEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasSupersedingEventEnabler
Description

Adds an Id to a SupersedingEventEnabler for the purpose of creating compatibility. The primary Id of the SupersedingEventEnabler 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 enabler. it is reassigned to the given superseding event enabler Id.

Parametersosid.id.IdsupersedingEventEnablerIdthe Id of a SupersedingEventEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND supersedingEventEnablerId not found
NULL_ARGUMENT supersedingEventEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.