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

This session provides methods to apply CanonicalUnitEnablers to CanonicalUnits. A CanonicalUnit with multiple CanonicalUnitEnablers means any positive rule evaluation across the enablers result in an active CanonicalUnit.

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

Tests if this user can alter canonical unit enabler/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
CompliancemandatoryThis method must be implemented.
MethodassignCanonicalUnitEnablerToCanonicalUnit
Description

Adds an existing CanonicalUnitEnabler to a CanonicalUnit.

Parametersosid.id.IdcanonicalUnitEnablerIdthe Id of the CanonicalUnitEnabler
osid.id.IdcanonicalUnitIdthe Id of the CanonicalUnit
ErrorsALREADY_EXISTS canonicalUnitEnablerId already applied to canonicalUnitId
NOT_FOUND canonicalUnitEnablerId or canonicalUnitId not found
NULL_ARGUMENT canonicalUnitEnablerId or canonicalUnitId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignCanonicalUnitEnablerFromCanonicalUnit
Description

Removes a CanonicalUnitEnabler from a CanonicalUnit.

Parametersosid.id.IdcanonicalUnitEnablerIdthe Id of the CanonicalUnitEnabler
osid.id.IdcanonicalUnitIdthe Id of the CanonicalUnit
ErrorsNOT_FOUND canonicalUnitEnablerId or canonicalUnitId not found or canonicalUnitEnablerId not applied to canonicalUnitId
NULL_ARGUMENT canonicalUnitEnablerId or canonicalUnitId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceCanonicalUnitEnablers
Description

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

Reorders canonical unit enablers for a canonical unit by moving the specified canonical unit enabler in front of a reference canonical unit enabler.

Parametersosid.id.IdcanonicalUnitEnablerIdthe Id of a CanonicalUnitEnabler
osid.id.IdcanonicalUnitIdthe Id of a CanonicalUnit
osid.id.IdreferenceIdthe reference canonical unit enabler Id
ErrorsNOT_FOUND canonicalUnitEnablerId, canonicalUnitId, or referenceId not found or, canonicalUnitEnablerId or referenceId not related to canonicalUnitId
NULL_ARGUMENT canonicalUnitEnablerId, canonicalUnitId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveCanonicalUnitEnablerBehind
Description

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

Parametersosid.id.IdcanonicalUnitEnablerIdthe Id of a CanonicalUnitEnabler
osid.id.IdcanonicalUnitIdthe Id of a CanonicalUnit
osid.id.IdreferenceIdthe reference canonical unit enabler Id
ErrorsNOT_FOUND canonicalUnitEnablerId, canonicalUnitId, or referenceId not found or, canonicalUnitEnablerId or referenceId not related to canonicalUnitId
NULL_ARGUMENT canonicalUnitEnablerId, canonicalUnitId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderCanonicalUnitEnablers
Description

Reorders a set of canonical unit enablers for a canonical unit.

Parametersosid.id.Id[]canonicalUnitEnablerIdsthe Ids for a set of CanonicalUnitEnablers
osid.id.IdcanonicalUnitIdthe Id of a CanonicalUnit
ErrorsNOT_FOUND canonicalUnitConstraienrId not found or, a canonicalUnitEnablerId not related to canonicalUnitId
NULL_ARGUMENT canonicalUnitEnablerIds or canonicalUnitId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.