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

This session provides methods to apply BrokerEnablers to Brokers . Multiple BrokerEnablers applied to an Broker may be sequenced such that the first positive evaluation results in the BrokerEnablers 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.
MethodcanAssignBrokerEnablers
Description

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

Adds an existing BrokerEnabler to a Broker .

Parametersosid.id.IdbrokerEnablerIdthe Id of the BrokerEnabler
osid.id.IdbrokerIdthe Id of the Broker
ErrorsALREADY_EXISTSbrokerEnablerId already applied to brokerId
NOT_FOUNDbrokerEnablerId or brokerId not found
NULL_ARGUMENTbrokerEnablerId or brokerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignBrokerEnablerFromBroker
Description

Removes an existing BrokerEnabler from a Broker .

Parametersosid.id.IdbrokerEnablerIdthe Id of the BrokerEnabler
osid.id.IdbrokerIdthe Id of the Broker
ErrorsNOT_FOUNDbrokerEnablerId or brokerId not found or brokerEnablerId already applied to brokerId
NULL_ARGUMENTbrokerEnablerId or brokerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceBrokerEnablers
Description

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

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

Parametersosid.id.IdbrokerEnablerIdthe Id of the BrokerEnabler
osid.id.IdbrokerIdthe Id of the Broker
osid.id.IdreferenceIdthe reference broker enabler Id
ErrorsNOT_FOUNDbrokerEnablerId, brokerId , or referenceId not found or, brokerEnablerId or referenceId not related to brokerId
NULL_ARGUMENTbrokerEnablerId, brokerId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveBrokerEnablerBehind
Description

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

Parametersosid.id.IdbrokerEnablerIdthe Id of the BrokerEnabler
osid.id.IdbrokerIdthe Id of the Broker
osid.id.IdreferenceIdthe reference broker enabler Id
ErrorsNOT_FOUNDbrokerEnablerId, brokerId , or referenceId not found or, brokerEnablerId or referenceId not related to brokerId
NULL_ARGUMENTbrokerEnablerId, brokerId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderBrokerEnablers
Description

Reorders a set of broker enablers for a broker.

Parametersosid.id.Id[]brokerEnablerIdsthe Ids for a set of BrokerEnablers
osid.id.IdbrokerIdthe Id of the Broker
ErrorsNOT_FOUNDbrokerEnablerId, brokerId , or referenceId not found or, brokerEnablerId or referenceId not related to brokerId
NULL_ARGUMENTbrokerEnablerIds, brokerId , or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.