OSID Logo
OSID Specifications
calendaring rules package
Version 3.1.0
Interfaceosid.calendaring.rules.OffsetEventEnablerAdminSession
Implementsosid.OsidSession
Used Byosid.calendaring.rules.CalendaringRulesManager
osid.calendaring.rules.CalendaringRulesProxyManager
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.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.
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
Compliancemandatory This 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[]offsetEventEnablerRecordTypes array 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
Compliancemandatory This 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[]offsetEventEnablerRecordTypes array of offset event enabler record types
Returnosid.calendaring.rules.OffsetEventEnablerForm the offset event enabler form
ErrorsNULL_ARGUMENT offsetEventEnablerRecordTypes 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.
MethodcreateOffsetEventEnabler
Description

Creates a new OffsetEventEnabler.

Parametersosid.calendaring.rules.OffsetEventEnablerFormoffsetEventEnablerForm the form for this OffsetEventEnabler
Returnosid.calendaring.rules.OffsetEventEnabler the new OffsetEventEnabler
ErrorsILLEGAL_STATE offsetEventEnablerForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT offsetEventEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED offsetEventEnablerForm did not originate from getOffsetEventEnablerFormForCreate()
Compliancemandatory This 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
Compliancemandatory This 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.IdoffsetEventEnablerId the Id of the OffsetEventEnabler
Returnosid.calendaring.rules.OffsetEventEnablerForm the offset event enabler form
ErrorsNOT_FOUND offsetEventEnablerId is not found
NULL_ARGUMENT offsetEventEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateOffsetEventEnabler
Description

Updates an existing offset event enabler.

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

Deletes an OffsetEventEnabler.

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