OSID Logo
OSID Specifications
provisioning rules package
Version 3.0.0
Interfaceosid.provisioning.rules.ProvisionableEnablerRuleApplicationSession
Implementsosid.OsidSession
Used Byosid.provisioning.rules.ProvisioningRulesManager
osid.provisioning.rules.ProvisioningRulesProxyManager
Description

This session provides methods to apply ProvisionableEnablers to Provisionables . Multiple ProvisionableEnablers applied to an Provisionable may be sequenced such that the first positive evaluation results in the ProvisionableEnablers used.

MethodgetDistributorId
Description

Gets the Distributor Id associated with this session.

Returnosid.id.Idthe Distributor Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetDistributor
Description

Gets the Distributor associated with this session.

Returnosid.provisioning.Distributorthe distributor
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAssignProvisionableEnablers
Description

Tests if this user can alter provisionable enabler/provisionable 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.

Returnbooleanfalse if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodassignProvisionableEnablerToProvisionable
Description

Adds an existing ProvisionableEnabler to a Provisionable .

Parametersosid.id.IdprovisionableEnablerIdthe Id of the ProvisionableEnabler
osid.id.IdprovisionableIdthe Id of the Provisionable
ErrorsALREADY_EXISTSprovisionableEnablerId already applied to provisionableId
NOT_FOUNDprovisionableEnablerId or provisionableId not found
NULL_ARGUMENTprovisionableEnablerId or provisionableId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignProvisionableEnablerFromProvisionable
Description

Removes an existing ProvisionableEnabler from a Provisionable .

Parametersosid.id.IdprovisionableEnablerIdthe Id of the ProvisionableEnabler
osid.id.IdprovisionableIdthe Id of the Provisionable
ErrorsNOT_FOUNDprovisionableEnablerId or provisionableId not found or provisionableEnablerId already applied to provisionableId
NULL_ARGUMENTprovisionableEnablerId or provisionableId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceProvisionableEnablers
Description

Tests if this user can order ProvisionableEnablers . 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.

Returnbooleanfalse if ProvisionableEnabler ordering is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodmoveProvisionableEnablerAhead
Description

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

Parametersosid.id.IdprovisionableEnablerIdthe Id of the ProvisionableEnabler
osid.id.IdprovisionableIdthe Id of the Provisionable
osid.id.IdreferenceIdthe reference provisionable enabler Id
ErrorsNOT_FOUNDprovisionableEnablerId, provisionableId , or referenceId not found or, provisionableEnablerId or referenceId not related to provisionableId
NULL_ARGUMENTprovisionableEnablerId, provisionableId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveProvisionableEnablerBehind
Description

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

Parametersosid.id.IdprovisionableEnablerIdthe Id of the ProvisionableEnabler
osid.id.IdprovisionableIdthe Id of the Provisionable
osid.id.IdreferenceIdthe reference provisionable enabler Id
ErrorsNOT_FOUNDprovisionableEnablerId, provisionableId , or referenceId not found or, provisionableEnablerId or referenceId not related to provisionableId
NULL_ARGUMENTprovisionableEnablerId, provisionableId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderProvisionableEnablers
Description

Reorders a set of provisionable enablers for a provisionable.

Parametersosid.id.Id[]provisionableEnablerIdsthe Ids for a set of ProvisionableEnablers
osid.id.IdprovisionableIdthe Id of the Provisionable
ErrorsNOT_FOUNDprovisionableEnablerId, provisionableId , or referenceId not found or, provisionableEnablerId or referenceId not related to provisionableId
NULL_ARGUMENTprovisionableEnablerIds, provisionableId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.