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

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

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

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

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

Parametersosid.type.Type[]offsetEventEnablerRecordTypesarray of offset event enabler record types
Returnboolean true if OffsetEventEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT offsetEventEnablerRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetOffsetEventEnablerFormForCreate
Description

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

Parametersosid.type.Type[]offsetEventEnablerRecordTypesarray of offset event enabler record types
Returnosid.calendaring.rules.OffsetEventEnablerFormthe offset event enabler form
ErrorsNULL_ARGUMENT offsetEventEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateOffsetEventEnabler
Description

Creates a new OffsetEventEnabler.

Parametersosid.calendaring.rules.OffsetEventEnablerFormoffsetEventEnablerFormthe form for this OffsetEventEnabler
Returnosid.calendaring.rules.OffsetEventEnablerthe new OffsetEventEnabler
ErrorsILLEGAL_STATE offsetEventEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT offsetEventEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED offsetEventEnablerForm did not originate from getOffsetEventEnablerFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateOffsetEventEnablers
Description

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

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

Parametersosid.id.IdoffsetEventEnablerIdthe Id of the OffsetEventEnabler
Returnosid.calendaring.rules.OffsetEventEnablerFormthe offset event enabler form
ErrorsNOT_FOUND offsetEventEnablerId is not found
NULL_ARGUMENT offsetEventEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateOffsetEventEnabler
Description

Updates an existing offset event enabler.

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

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

Deletes an OffsetEventEnabler.

Parametersosid.id.IdoffsetEventEnablerIdthe Id of the OffsetEventEnabler to remove
ErrorsNOT_FOUND offsetEventEnablerId not found
NULL_ARGUMENT offsetEventEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageOffsetEventEnablerAliases
Description

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

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

Parametersosid.id.IdoffsetEventEnablerIdthe Id of an OffsetEventEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND offsetEventEnablerId not found
NULL_ARGUMENT offsetEventEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.