OSID Logo
OSID Specifications
offering rules package
Version 3.1.0
Interfaceosid.offering.rules.OfferingConstrainerEnablerAdminSession
Implementsosid.OsidSession
Used Byosid.offering.rules.OfferingRulesManager
osid.offering.rules.OfferingRulesProxyManager
Description

This session creates and removes offering constrainer enablers. The data for create and update is provided via the OfferingConstrainerEnablerForm.

MethodgetCatalogueId
Description

Gets the Catalogue Id associated with this session.

Returnosid.id.Id the Catalogue Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCatalogue
Description

Gets the Catalogue associated with this session.

Returnosid.offering.Catalogue the catalogue
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateOfferingConstrainerEnabler
Description

Tests if this user can create offering constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating an OfferingConstrainerEnabler 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 OfferingConstrainerEnabler creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateOfferingConstrainerEnablerWithRecordTypes
Description

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

Parametersosid.type.Type[]offeringConstrainerEnablerRecordTypes array of offering constrainer enabler record types
Returnboolean true if OfferingConstrainerEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT offeringConstrainerEnablerRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetOfferingConstrainerEnablerFormForCreate
Description

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

Parametersosid.type.Type[]offeringConstrainerEnablerRecordTypes array of offering constrainer enabler record types
Returnosid.offering.rules.OfferingConstrainerEnablerForm the offering constrainer enabler form
ErrorsNULL_ARGUMENT offeringConstrainerEnablerRecordTypes 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.
MethodcreateOfferingConstrainerEnabler
Description

Creates a new OfferingConstrainerEnabler.

Parametersosid.offering.rules.OfferingConstrainerEnablerFormofferingConstrainerEnablerForm the form for this OfferingConstrainerEnabler
Returnosid.offering.rules.OfferingConstrainerEnabler the new OfferingConstrainerEnabler
ErrorsILLEGAL_STATE offeringConstrainerEnablerForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT offeringConstrainerEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED offeringConstrainerEnablerForm did not originate from getOfferingConstrainerEnablerFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateOfferingConstrainerEnablers
Description

Tests if this user can update offering constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating an OfferingConstrainerEnabler 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 OfferingConstrainerEnabler modification is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetOfferingConstrainerEnablerFormForUpdate
Description

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

Parametersosid.id.IdofferingConstrainerEnablerId the Id of the OfferingConstrainerEnabler
Returnosid.offering.rules.OfferingConstrainerEnablerForm the offering constrainer enabler form
ErrorsNOT_FOUND offeringConstrainerEnablerId is not found
NULL_ARGUMENT offeringConstrainerEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateOfferingConstrainerEnabler
Description

Updates an existing offering constrainer enabler.

Parametersosid.offering.rules.OfferingConstrainerEnablerFormofferingConstrainerEnablerForm the form containing the elements to be updated
ErrorsILLEGAL_STATE offeringConstrainerEnablerForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT offeringConstrainerEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED offeringConstrainerEnablerForm did not originate from getOfferingConstrainerEnablerFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteOfferingConstrainerEnablers
Description

Tests if this user can delete offering constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting an OfferingConstrainerEnabler 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 OfferingConstrainerEnabler deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteOfferingConstrainerEnabler
Description

Deletes an OfferingConstrainerEnabler.

Parametersosid.id.IdofferingConstrainerEnablerId the Id of the OfferingConstrainerEnabler to remove
ErrorsNOT_FOUND offeringConstrainerEnablerId not found
NULL_ARGUMENT offeringConstrainerEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageOfferingConstrainerEnablerAliases
Description

Tests if this user can manage Id aliases for offering constrainer 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 OfferingConstrainerEnabler aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasOfferingConstrainerEnabler
Description

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

Parametersosid.id.IdofferingConstrainerEnablerId the Id of an OfferingConstrainerEnabler
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND offeringConstrainerEnablerId not found
NULL_ARGUMENT offeringConstrainerEnablerId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.