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

This session provides methods to apply CanonicalUnitProcessors to CanonicalUnits.

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.
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
CompliancemandatoryThis method must be implemented.
MethodassignCanonicalUnitProcessorToCanonicalUnit
Description

Adds an existing CanonicalUnitProcessor to a CanonicalUnit.

Parametersosid.id.IdcanonicalUnitProcessorIdthe Id of the CanonicalUnitProcessor
osid.id.IdcanonicalUnitIdthe 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignCanonicalUnitProcessorFromCanonicalUnit
Description

Removes a CanonicalUnitProcessor from a CanonicalUnit.

Parametersosid.id.IdcanonicalUnitProcessorIdthe Id of the CanonicalUnitProcessor
osid.id.IdcanonicalUnitIdthe 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.IdcanonicalUnitProcessorIdthe Id of a CanonicalUnitProcessor
osid.id.IdcanonicalUnitIdthe Id of a CanonicalUnit
osid.id.IdreferenceIdthe 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdcanonicalUnitProcessorIdthe Id of a CanonicalUnitProcessor
osid.id.IdcanonicalUnitIdthe Id of a CanonicalUnit
osid.id.IdreferenceIdthe 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderCanonicalUnitProcessors
Description

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

Parametersosid.id.Id[]canonicalUnitProcessorIdsthe Ids for a set of CanonicalUnitProcessors
osid.id.IdcanonicalUnitIdthe Id of a CanonicalUnit
ErrorsNOT_FOUND canonicalUnitId not found or, a canonicalUnitProcessorId not related to canonicalUnitId
NULL_ARGUMENT canonicalUnitProcessorIds or canonicalUnitId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.