OSID Logo
OSID Specifications
provisioning rules package
Version 3.1.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.Id the Distributor Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetDistributor
Description

Gets the Distributor associated with this session.

Returnosid.provisioning.Distributor the distributor
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodassignProvisionableEnablerToProvisionable
Description

Adds an existing ProvisionableEnabler to a Provisionable.

Parametersosid.id.IdprovisionableEnablerId the Id of the ProvisionableEnabler
osid.id.IdprovisionableId the Id of the Provisionable
ErrorsALREADY_EXISTS provisionableEnablerId already applied to provisionableId
NOT_FOUND provisionableEnablerId or provisionableId not found
NULL_ARGUMENT provisionableEnablerId or provisionableId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignProvisionableEnablerFromProvisionable
Description

Removes an existing ProvisionableEnabler from a Provisionable.

Parametersosid.id.IdprovisionableEnablerId the Id of the ProvisionableEnabler
osid.id.IdprovisionableId the Id of the Provisionable
ErrorsNOT_FOUND provisionableEnablerId or provisionableId not found or provisionableEnablerId already applied to provisionableId
NULL_ARGUMENT provisionableEnablerId or provisionableId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.

Returnboolean false if ProvisionableEnabler ordering is not authorized, true otherwise
Compliancemandatory This 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.IdprovisionableEnablerId the Id of the ProvisionableEnabler
osid.id.IdprovisionableId the Id of the Provisionable
osid.id.IdreferenceId the reference provisionable enabler Id
ErrorsNOT_FOUND provisionableEnablerId, provisionableId, or referenceId not found or, provisionableEnablerId or referenceId not related to provisionableId
NULL_ARGUMENT provisionableEnablerId, provisionableId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdprovisionableEnablerId the Id of the ProvisionableEnabler
osid.id.IdprovisionableId the Id of the Provisionable
osid.id.IdreferenceId the reference provisionable enabler Id
ErrorsNOT_FOUND provisionableEnablerId, provisionableId, or referenceId not found or, provisionableEnablerId or referenceId not related to provisionableId
NULL_ARGUMENT provisionableEnablerId, provisionableId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodorderProvisionableEnablers
Description

Reorders a set of provisionable enablers for a provisionable.

Parametersosid.id.Id[]provisionableEnablerIds the Ids for a set of ProvisionableEnablers
osid.id.IdprovisionableId the Id of the Provisionable
ErrorsNOT_FOUND provisionableEnablerId, provisionableId, or referenceId not found or, provisionableEnablerId or referenceId not related to provisionableId
NULL_ARGUMENT provisionableEnablerIds, provisionableId, or referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.