OSID Logo
OSID Specifications
provisioning rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.rules.BrokerConstrainerEnablerRuleApplicationSession
Implementsosid.OsidSession
Description

This session provides methods to apply BrokerConstrainerEnablers to BrokerConstrainers. A BrokerConstrainer with multiple BrokerConstrainerEnablers means any positive rule evaluation across the enablers result in an effective BrokerConstrainer.

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.
MethodcanAssignBrokerConstrainerEnablers
Description

Tests if this user can alter broker constrainer enabler/broker constrainer 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
CompliancemandatoryThis method must be implemented.
MethodassignBrokerConstrainerEnablerToBrokerConstrainer
Description

Adds an existing BrokerConstrainerEnabler to a BrokerConstrainer.

Parametersosid.id.IdbrokerConstrainerEnablerIdthe Id of the BrokerConstrainerEnabler
osid.id.IdbrokerConstrainerIdthe Id of the BrokerConstrainer
ErrorsALREADY_EXISTS brokerConstrainerEnablerId is already applied to brokerConstrainerId
NOT_FOUND brokerConstrainerEnablerId or brokerConstrainerId not found
NULL_ARGUMENT brokerConstrainerEnablerId or brokerConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignBrokerConstrainerEnablerFromBrokerConstrainer
Description

Removes a BrokerConstrainerEnabler from a BrokerConstrainer.

Parametersosid.id.IdbrokerConstrainerEnablerIdthe Id of the BrokerConstrainerEnabler
osid.id.IdbrokerConstrainerIdthe Id of the BrokerConstrainer
ErrorsNOT_FOUND brokerConstrainerEnablerId or brokerConstrainerId not found or brokerConstrainerEnablerId not applied to brokerConstrainerId
NULL_ARGUMENT brokerConstrainerEnablerId or brokerConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSequenceBrokerConstrainerEnablers
Description

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

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

Parametersosid.id.IdbrokerConstrainerEnablerIdthe Id of a BrokerConstrainerEnabler
osid.id.IdbrokerConstrainerIdthe Id of a BrokerConstrainer
osid.id.IdreferenceIdthe reference broker constrainer enabler Id
ErrorsNOT_FOUND brokerConstrainerEnablerId, brokerConstrainerId, or referenceId not found or, brokerConstrainerEnablerId or referenceId not related to brokerConstrainerId
NULL_ARGUMENT brokerConstrainerEnablerId, brokerConstrainerId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodmoveBrokerConstrainerEnablerBehind
Description

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

Parametersosid.id.IdbrokerConstrainerEnablerIdthe Id of a BrokerConstrainerEnabler
osid.id.IdbrokerConstrainerIdthe Id of a BrokerConstrainer
osid.id.IdreferenceIdthe reference broker constrainer enabler Id
ErrorsNOT_FOUND brokerConstrainerEnablerId, brokerConstrainerId, or referenceId not found or, brokerConstrainerEnablerId or referenceId not related to brokerConstrainerId
NULL_ARGUMENT brokerConstrainerEnablerId, brokerConstrainerId, or referenceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodorderBrokerConstrainerEnablers
Description

Reorders a set of broker constrainer enablers for a broker constrainer.

Parametersosid.id.Id[]brokerConstrainerEnablerIdsthe Ids for a set of BrokerConstrainerEnablers
osid.id.IdbrokerConstrainerIdthe Id of a BrokerConstrainer
ErrorsNOT_FOUND brokerConstrainerId not found or, a brokerConstrainerEnablerId not related to brokerConstrainerId
NULL_ARGUMENT brokerConstrainerEnablerIds or brokerConstrainerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.