OSID Logo
OSID Specifications
calendaring rules package
Version 3.1.0
Interfaceosid.calendaring.rules.SupersedingEventEnablerAdminSession
Implementsosid.OsidSession
Used Byosid.calendaring.rules.CalendaringRulesManager
osid.calendaring.rules.CalendaringRulesProxyManager
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.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
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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[]supersedingEventEnablerRecordTypes array of superseding event enabler types
Returnboolean true if SupersedingEventEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT supersedingEventEnablerRecordTypes is null
Compliancemandatory This 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[]supersedingEventEnablerRecordTypes array of superseding event enabler types
Returnosid.calendaring.rules.SupersedingEventEnablerForm the superseding event enabler form
ErrorsNULL_ARGUMENT supersedingEventEnablerRecordTypes 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.
MethodcreateSupersedingEventEnabler
Description

Creates a new SupersedingEventEnabler.

Parametersosid.calendaring.rules.SupersedingEventEnablerFormsupersedingEventEnablerForm the form for this SupersedingEventEnabler
Returnosid.calendaring.rules.SupersedingEventEnabler the new SupersedingEventEnabler
ErrorsILLEGAL_STATE supersedingEventEnablerForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT supersedingEventEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED supersedingEventEnablerForm did not originate from getSupersedingEventFormForCreate()
Compliancemandatory This 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
Compliancemandatory This 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.IdsupersedingEventEnablerId the Id of the SupersedingEventEnabler
Returnosid.calendaring.rules.SupersedingEventEnablerForm the superseding event enabler form
ErrorsNOT_FOUND supersedingEventEnablerId is not found
NULL_ARGUMENT supersedingEventEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateSupersedingEventEnabler
Description

Updates an existing superseding event enabler.

Parametersosid.calendaring.rules.SupersedingEventEnablerFormsupersedingEventEnablerForm the form containing the elements to be updated
ErrorsILLEGAL_STATE supersedingEventEnablerForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT supersedingEventEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED supersedingEventEnablerForm did not originate from getSupersedingEventFormForUpdate()
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethoddeleteSupersedingEventEnabler
Description

Deletes a SupersedingEventEnabler.

Parametersosid.id.IdsupersedingEventEnablerId the Id of the SupersedingEventEnabler to remove
ErrorsNOT_FOUND supersedingEventEnablerId not found
NULL_ARGUMENT supersedingEventEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.IdsupersedingEventEnablerId the Id of a SupersedingEventEnabler
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND supersedingEventEnablerId not found
NULL_ARGUMENT supersedingEventEnablerId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.