OSID Logo
OSID Specifications
offering rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.offering.rules.OfferingConstrainerEnablerRuleApplicationSession
Implementsosid.OsidSession
Description

This session provides methods to apply OfferingConstrainerEnablers to OfferingConstrainers. An OfferingConstrainer with multiple OfferingConstrainerEnablers means any positive rule evaluation across the enablers result in an effective OfferingConstrainer.

MethodgetCatalogueId
Description

Gets the Catalogue Id associated with this session.

Returnosid.id.Idthe Catalogue Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCatalogue
Description

Gets the Catalogue associated with this session.

Returnosid.offering.Cataloguethe catalogue
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAssignOfferingConstrainerEnablers
Description

Tests if this user can alter offering constrainer enabler/offering constrainer 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
CompliancemandatoryThis method must be implemented.
MethodassignOfferingConstrainerEnablerToOfferingConstrainer
Description

Adds an existing OfferingConstrainerEnabler to an OfferingConstrainer.

Parametersosid.id.IdofferingConstrainerEnablerIdthe Id of the OfferingConstrainerEnabler
osid.id.IdofferingConstrainerIdthe Id of the OfferingConstrainer
ErrorsALREADY_EXISTS offeringConstrainerEnablerId already applied to offeringConstrainerId
NOT_FOUND offeringConstrainerEnablerId or offeringConstrainerId not found
NULL_ARGUMENT offeringConstrainerEnablerId or offeringConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignOfferingConstrainerEnablerFromOfferingConstrainer
Description

Removes an OfferingConstrainerEnabler from an OfferingConstrainer.

Parametersosid.id.IdofferingConstrainerEnablerIdthe Id of the OfferingConstrainerEnabler
osid.id.IdofferingConstrainerIdthe Id of the OfferingConstrainer
ErrorsNOT_FOUND offeringConstrainerEnablerId or offeringConstrainerId not found or offeringConstrainerEnablerId not applied to offeringConstrainerId
NULL_ARGUMENT offeringConstrainerEnablerId or offeringConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceOfferingConstrainerEnablers
Description

Tests if this user can order OfferingConstrainerEnablers. 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 OfferingConstrainerEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveOfferingConstrainerEnablerAhead
Description

Reorders offering constrainer enablers for an offering constrainer by moving the specified offering constrainer enabler in front of a reference offering constrainer enabler.

Parametersosid.id.IdofferingConstrainerEnablerIdthe Id of an OfferingConstrainerEnabler
osid.id.IdofferingConstrainerIdthe Id of an OfferingConstrainer
osid.id.IdreferenceIdthe reference offering constrainer enabler Id
ErrorsNOT_FOUND offeringConstrainerEnablerId, offeringConstrainerId, or referenceId not found or, offeringConstrainerEnablerId or referenceId not related to offeringConstrainerId
NULL_ARGUMENT offeringConstrainerEnablerId, offeringConstrainerId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveOfferingConstrainerEnablerBehind
Description

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

Parametersosid.id.IdofferingConstrainerEnablerIdthe Id of an OfferingConstrainerEnabler
osid.id.IdofferingConstrainerIdthe Id of an OfferingConstrainer
osid.id.IdreferenceIdthe reference offering constrainer enabler Id
ErrorsNOT_FOUND offeringConstrainerEnablerId, offeringConstrainerId, or referenceId not found or, offeringConstrainerEnablerId or referenceId not related to offeringConstrainerId
NULL_ARGUMENT offeringConstrainerEnablerId, offeringConstrainerId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderOfferingConstrainerEnablers
Description

Reorders a set of offering constrainer enablers for an offering constrainer.

Parametersosid.id.Id[]offeringConstrainerEnablerIdsthe Ids for a set of OfferingConstrainerEnablers
osid.id.IdofferingConstrainerIdthe Id of an OfferingConstrainer
ErrorsNOT_FOUND canonicalUnitConstraienrId not found or, an offeringConstrainerEnablerId not related to offeringConstrainerId
NULL_ARGUMENT offeringConstrainerEnablerIds or offeringConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.