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

This session creates and removes offering constrainers. The data for create and update is provided via the OfferingConstrainerForm.

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

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

OfferingRulesManager.getOfferingConstrainerRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific OfferingConstrainer. Providing an empty array tests if an OfferingConstrainer can be created with no records.

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

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

Parametersosid.type.Type[]offeringConstrainerRecordTypes array of offering constrainer record types
Returnosid.offering.rules.OfferingConstrainerForm the offering constrainer form
ErrorsNULL_ARGUMENT offeringConstrainerRecordTypes 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.
MethodcreateOfferingConstrainer
Description

Creates a new OfferingConstrainer.

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

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

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

Parametersosid.id.IdofferingConstrainerId the Id of the OfferingConstrainer
Returnosid.offering.rules.OfferingConstrainerForm the offering constrainer form
ErrorsNOT_FOUND offeringConstrainerId is not found
NULL_ARGUMENT offeringConstrainerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateOfferingConstrainer
Description

Updates an existing offering constrainer.

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

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

Deletes an OfferingConstrainer.

Parametersosid.id.IdofferingConstrainerId the Id of the OfferingConstrainer to remove
ErrorsNOT_FOUND offeringConstrainerId not found
NULL_ARGUMENT offeringConstrainerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageOfferingConstrainerAliases
Description

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

Adds an Id to an OfferingConstrainer for the purpose of creating compatibility. The primary Id of the OfferingConstrainer 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. it is reassigned to the given offering constrainer Id.

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