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

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

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

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

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

Parametersosid.type.Type[]recurringEventEnablerRecordTypesarray of recurring event enabler record types
Returnboolean true if RecurringEventEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT recurringEventEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetRecurringEventEnablerFormForCreate
Description

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

Parametersosid.type.Type[]recurringEventEnablerRecordTypesarray of recurring event enabler record types
Returnosid.calendaring.rules.RecurringEventEnablerFormthe recurring event enabler form
ErrorsNULL_ARGUMENT recurringEventEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateRecurringEventEnabler
Description

Creates a new RecurringEventEnabler.

Parametersosid.calendaring.rules.RecurringEventEnablerFormrecurringEventEnablerFormthe form for this RecurringEventEnabler
Returnosid.calendaring.rules.RecurringEventEnablerthe new RecurringEventEnabler
ErrorsILLEGAL_STATE recurringEventEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT recurringEventEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED recurringEventEnablerForm did not originate from getRecurringEventEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateRecurringEventEnablers
Description

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

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

Parametersosid.id.IdrecurringEventEnablerIdthe Id of the RecurringEventEnabler
Returnosid.calendaring.rules.RecurringEventEnablerFormthe recurring event enabler form
ErrorsNOT_FOUND recurringEventEnablerId is not found
NULL_ARGUMENT recurringEventEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateRecurringEventEnabler
Description

Updates an existing recurring event enabler.

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

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

Deletes a RecurringEventEnabler.

Parametersosid.id.IdrecurringEventEnablerIdthe Id of the RecurringEventEnabler to remove
ErrorsNOT_FOUND recurrintEventEnablerId not found
NULL_ARGUMENT recurringEventEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageEventEnablerAliases
Description

Tests if this user can manage Id aliases for recurring 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 true if RecurringEventEnabler aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasEventEnabler
Description

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

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