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

This session provides methods to apply PoolEnablers to Pools . Multiple PoolEnablers applied to an Pool may be sequenced such that the first positive evaluation results in the PoolEnablers 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.
MethodcanAssignPoolEnablers
Description

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

Adds an existing PoolEnabler to a Pool .

Parametersosid.id.IdpoolEnablerIdthe Id of the PoolEnabler
osid.id.IdpoolIdthe Id of the Pool
ErrorsALREADY_EXISTSpoolEnablerId already applied to poolId
NOT_FOUNDpoolEnablerId or poolId not found
NULL_ARGUMENTpoolEnablerId or poolId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignPoolEnablerFromPool
Description

Removes an existing PoolEnabler from a Pool .

Parametersosid.id.IdpoolEnablerIdthe Id of the PoolEnabler
osid.id.IdpoolIdthe Id of the Pool
ErrorsNOT_FOUNDpoolEnablerId or poolId not found or poolEnablerId already applied to poolId
NULL_ARGUMENTpoolEnablerId or poolId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequencePoolEnablers
Description

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

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

Parametersosid.id.IdpoolEnablerIdthe Id of the PoolEnabler
osid.id.IdpoolIdthe Id of the Pool
osid.id.IdreferenceIdthe reference pool enabler Id
ErrorsNOT_FOUNDpoolEnablerId, poolId , or referenceId not found or, poolEnablerId or referenceId not related to poolId
NULL_ARGUMENTpoolEnablerId, poolId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmovePoolEnablerBehind
Description

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

Parametersosid.id.IdpoolEnablerIdthe Id of the PoolEnabler
osid.id.IdpoolIdthe Id of the Pool
osid.id.IdreferenceIdthe reference pool enabler Id
ErrorsNOT_FOUNDpoolEnablerId, poolId , or referenceId not found or, poolEnablerId or referenceId not related to poolId
NULL_ARGUMENTpoolEnablerId, poolId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderPoolEnablers
Description

Reorders a set of pool enablers for a pool.

Parametersosid.id.Id[]poolEnablerIdsthe Ids for a set of PoolEnablers
osid.id.IdpoolIdthe Id of the Pool
ErrorsNOT_FOUNDpoolEnablerId, poolId , or referenceId not found or, poolEnablerId or referenceId not related to poolId
NULL_ARGUMENTpoolEnablerIds, poolId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.