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

This session provides methods to apply ProvisionEnablers to Provisions . Multiple ProvisionEnablers applied to an Provision may be sequenced such that the first positive evaluation results in the ProvisionEnablers 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.
MethodcanAssignProvisionEnablers
Description

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

Adds an existing ProvisionEnabler to a Provision .

Parametersosid.id.IdprovisionEnablerIdthe Id of the ProvisionEnabler
osid.id.IdprovisionIdthe Id of the Provision
ErrorsALREADY_EXISTSprovisionEnablerId already applied to provisionId
NOT_FOUNDprovisionEnablerId or provisionId not found
NULL_ARGUMENTprovisionEnablerId or provisionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignProvisionEnablerFromProvision
Description

Removes an existing ProvisionEnabler from a Provision .

Parametersosid.id.IdprovisionEnablerIdthe Id of the ProvisionEnabler
osid.id.IdprovisionIdthe Id of the Provision
ErrorsNOT_FOUNDprovisionEnablerId or provisionId not found or provisionEnablerId already applied to provisionId
NULL_ARGUMENTprovisionEnablerId or provisionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceProvisionEnablers
Description

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

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

Parametersosid.id.IdprovisionEnablerIdthe Id of the ProvisionEnabler
osid.id.IdprovisionIdthe Id of the Provision
osid.id.IdreferenceIdthe reference provision enabler Id
ErrorsNOT_FOUNDprovisionEnablerId, provisionId , or referenceId not found or, provisionEnablerId or referenceId not related to provisionId
NULL_ARGUMENTprovisionEnablerId, provisionId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveProvisionEnablerBehind
Description

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

Parametersosid.id.IdprovisionEnablerIdthe Id of the ProvisionEnabler
osid.id.IdprovisionIdthe Id of the Provision
osid.id.IdreferenceIdthe reference provision enabler Id
ErrorsNOT_FOUNDprovisionEnablerId, provisionId , or referenceId not found or, provisionEnablerId or referenceId not related to provisionId
NULL_ARGUMENTprovisionEnablerId, provisionId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderProvisionEnablers
Description

Reorders a set of provision enablers for a provision.

Parametersosid.id.Id[]provisionEnablerIdsthe Ids for a set of ProvisionEnablers
osid.id.IdprovisionIdthe Id of the Provision
ErrorsNOT_FOUNDprovisionEnablerId, provisionId , or referenceId not found or, provisionEnablerId or referenceId not related to provisionId
NULL_ARGUMENTprovisionEnablerIds, provisionId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.