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

This session provides methods to apply OfferingConstrainers to CanonicalUnits to constrain the offerings for a canonical unit. A CanonicalUnit with multiple OfferingConstrainers means any positive rule evaluation across the result in an effective CanonicalUnit.

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

Tests if this user can alter offering constrainer/canonical unit mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodassignOfferingConstrainerToCanonicalUnit
Description

Adds an existing OfferingConstrainer to a CanonicalUnit.

Parametersosid.id.IdofferingConstrainerId the Id of the OfferingConstrainer
osid.id.IdcanonicalUnitId the Id of the CanonicalUnit
ErrorsALREADY_EXISTS offeringConstrainerId already applied to canonicalUnitId
NOT_FOUND offeringConstrainerId or canonicalUnitId not found
NULL_ARGUMENT offeringConstrainerId or canonicalUnitId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignOfferingConstrainerFromCanonicalUnit
Description

Removes an OfferingConstrainer from a CanonicalUnit.

Parametersosid.id.IdofferingConstrainerId the Id of the OfferingConstrainer
osid.id.IdcanonicalUnitId the Id of the CanonicalUnit
ErrorsNOT_FOUND offeringConstrainerId or canonicalUnitId not found or offeringConstrainerId already applied to canonicalUnitId
NULL_ARGUMENT offeringConstrainerId or canonicalUnitId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSequenceOfferingConstrainers
Description

Tests if this user can order OfferingConstrainers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.

Returnboolean false if OfferingConstrainer ordering is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodmoveOfferingConstrainerAhead
Description

Reorders offering constrainers for a canonical unit by moving the specified offering constrainer in front of a reference offering constrainer.

Parametersosid.id.IdofferingConstrainerId the Id of an OfferingConstrainer
osid.id.IdcanonicalUnitId the Id of a CanonicalUnit
osid.id.IdreferenceId the reference offering constrainer Id
ErrorsNOT_FOUND offeringConstrainerId, canonicalUnitId, or referenceId not found or, offeringConstrainerId or referenceId not related to canonicalUnitId
NULL_ARGUMENT offeringConstrainerId, canonicalUnitId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodmoveOfferingConstrainerBehind
Description

Reorders offering constrainers for a canonical unit by moving the specified offering constrainer behind a reference offering constrainer.

Parametersosid.id.IdofferingConstrainerId the Id of an OfferingConstrainer
osid.id.IdcanonicalUnitId the Id of a CanonicalUnit
osid.id.IdreferenceId the reference offering constrainer Id
ErrorsNOT_FOUND offeringConstrainerId, canonicalUnitId, or referenceId not found or, offeringConstrainerId or referenceId not related to canonicalUnitId
NULL_ARGUMENT offeringConstrainerId, canonicalUnitId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderOfferingConstrainers
Description

Reorders a set of offering constrainers for a canonical unit.

Parametersosid.id.Id[]offeringConstrainerIds the Ids for a set of OfferingConstrainers
osid.id.IdcanonicalUnitId the Id of a CanonicalUnit
ErrorsNOT_FOUND canonicalUnitId not found or, an offeringConstrainerId not related to canonicalUnitId
NULL_ARGUMENT offeringConstrainerIds or canonicalUnitId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.