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

This session provides methods to apply CanonicalUnitProcessors to CanonicalUnits.

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

Tests if this user can alter canonical unit processor/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.
MethodassignCanonicalUnitProcessorToCanonicalUnit
Description

Adds an existing CanonicalUnitProcessor to a CanonicalUnit.

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

Removes a CanonicalUnitProcessor from a CanonicalUnit.

Parametersosid.id.IdcanonicalUnitProcessorId the Id of the CanonicalUnitProcessor
osid.id.IdcanonicalUnitId the Id of the CanonicalUnit
ErrorsNOT_FOUND canonicalUnitProcessorId or canonicalUnitId not found or canonicalUnitProcessorId not applied to canonicalUnitId
NULL_ARGUMENT canonicalUnitProcessorId or canonicalUnitId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanSequenceCanonicalUnitProcessors
Description

Tests if this user can order CanonicalUnitProcessors. 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 CanonicalUnitProcessor ordering is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodmoveCanonicalUnitProcessorAhead
Description

Reorders canonical unit processors for a canonical unit by moving the specified canonical unit processor in front of a reference canonical unit processor.

Parametersosid.id.IdcanonicalUnitProcessorId the Id of a CanonicalUnitProcessor
osid.id.IdcanonicalUnitId the Id of a CanonicalUnit
osid.id.IdreferenceId the reference canonical unit processor Id
ErrorsNOT_FOUND canonicalUnitProcessorId, canonicalUnitId, or referenceId not found or, canonicalUnitProcessorId or referenceId not related to canonicalUnitId
NULL_ARGUMENT canonicalUnitProcessorId, canonicalUnitId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodmoveCanonicalUnitProcessorBehind
Description

Reorders canonical unit processors for a canonical unit by moving the specified canonical unit processor behind a reference canonical unit processor.

Parametersosid.id.IdcanonicalUnitProcessorId the Id of a CanonicalUnitProcessor
osid.id.IdcanonicalUnitId the Id of a CanonicalUnit
osid.id.IdreferenceId the reference canonical unit processor Id
ErrorsNOT_FOUND canonicalUnitProcessorId, canonicalUnitId, or referenceId not found or, canonicalUnitProcessorId or referenceId not related to canonicalUnitId
NULL_ARGUMENT canonicalUnitProcessorId, canonicalUnitId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderCanonicalUnitProcessors
Description

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

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