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

This session creates and removes broker processors. The data for create and update is provided via the BrokerProcessorForm.

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

Tests if this user can create broker processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a BrokerProcessor will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.

Returnboolean false if BrokerProcessor creation is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanCreateBrokerProcessorWithRecordTypes
Description

Tests if this user can create a single BrokerProcessor using the desired record types. While ProvisioningRulesManager.getBrokerProcessorRecordTypes() can be used to examine which records are supported, this method tests which record(s) are required for creating a specific BrokerProcessor. Providing an empty array tests if a BrokerProcessor can be created with no records.

Parametersosid.type.Type[]brokerProcessorRecordTypesarray of broker processor record types
Returnboolean true if BrokerProcessor creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT brokerProcessorRecordTypes is null
CompliancemandatoryThis method must be implemented.
MethodgetBrokerProcessorFormForCreate
Description

Gets the broker processor form for creating new broker processors. A new form should be requested for each create transaction.

Parametersosid.type.Type[]brokerProcessorRecordTypesarray of broker processor record types
Returnosid.provisioning.rules.BrokerProcessorFormthe broker processor form
ErrorsNULL_ARGUMENT brokerProcessorRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form for requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateBrokerProcessor
Description

Creates a new BrokerProcessor.

Parametersosid.provisioning.rules.BrokerProcessorFormbrokerProcessorFormthe form for this BrokerProcessor
Returnosid.provisioning.rules.BrokerProcessorthe new BrokerProcessor
ErrorsILLEGAL_STATE brokerProcessorForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT brokerProcessorForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED brokerProcessorForm did not originate from getBrokerProcessorFormForCreate()
CompliancemandatoryThis method must be implemented.
MethodcanUpdateBrokerProcessors
Description

Tests if this user can update broker processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a BrokerProcessor will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.

Returnboolean false if BrokerProcessor modification is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBrokerProcessorFormForUpdate
Description

Gets the broker processor form for updating an existing broker processor. A new broker processor form should be requested for each update transaction.

Parametersosid.id.IdbrokerProcessorIdthe Id of the BrokerProcessor
Returnosid.provisioning.rules.BrokerProcessorFormthe broker processor form
ErrorsNOT_FOUND brokerProcessorId is not found
NULL_ARGUMENT brokerProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateBrokerProcessor
Description

Updates an existing broker processor.

Parametersosid.provisioning.rules.BrokerProcessorFormbrokerProcessorFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE brokerProcessorForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT brokerProcessorForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED brokerProcessorForm did not originate from getBrokerProcessorFormForUpdate()
CompliancemandatoryThis method must be implemented.
MethodcanDeleteBrokerProcessors
Description

Tests if this user can delete broker processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a BrokerProcessor will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.

Returnboolean false if BrokerProcessor deletion is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoddeleteBrokerProcessor
Description

Deletes a BrokerProcessor.

Parametersosid.id.IdbrokerProcessorIdthe Id of the BrokerProcessor to remove
ErrorsNOT_FOUND brokerProcessorId not found
NULL_ARGUMENT brokerProcessorId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageBrokerProcessorAliases
Description

Tests if this user can manage Id aliases for broker processors. A return of true does not guarantee successful authorization. A return of false indicates that it is known changing an alias will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.

Returnboolean false if BrokerProcessor aliasing is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaliasBrokerProcessor
Description

Adds an Id to a BrokerProcessor for the purpose of creating compatibility. The primary Id of the BrokerProcessor is determined by the provider. The new Id performs as an alias to the primary Id . If the alias is a pointer to another broker processor. it is reassigned to the given broker processor Id.

Parametersosid.id.IdbrokerProcessorIdthe Id of a BrokerProcessor
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND brokerProcessorId not found
NULL_ARGUMENT brokerProcessorId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.