OSID Logo
OSID Specifications
resourcing rules package
Version 3.1.0
Interfaceosid.resourcing.rules.CommissionEnablerAdminSession
Implementsosid.OsidSession
Used Byosid.resourcing.rules.ResourcingRulesManager
osid.resourcing.rules.ResourcingRulesProxyManager
Description

This session creates and removes commission enablers. The data for create and update is provided via the CommissionEnablerForm.

MethodgetFoundryId
Description

Gets the Foundry Id associated with this session.

Returnosid.id.Id the Foundry Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetFoundry
Description

Gets the Foundry associated with this session.

Returnosid.resourcing.Foundry the foundry
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanCreateCommissionEnabler
Description

Tests if this user can create commission enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating a CommissionEnabler 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 CommissionEnabler creation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanCreateCommissionEnablerWithRecordTypes
Description

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

Parametersosid.type.Type[]commissionEnablerRecordTypes array of commission enabler record types
Returnboolean true if CommissionEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT commissionEnablerRecordTypes is null
Compliancemandatory This method must be implemented.
MethodgetCommissionEnablerFormForCreate
Description

Gets the commission enabler form for creating new commission enablers. A new form should be requested for each create transaction.

Parametersosid.type.Type[]commissionEnablerRecordTypes array of commission enabler record types
Returnosid.resourcing.rules.CommissionEnablerForm the commission enabler form
ErrorsNULL_ARGUMENT commissionEnablerRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to get form with requested record types
Compliancemandatory This method must be implemented.
MethodcreateCommissionEnabler
Description

Creates a new CommissionEnabler.

Parametersosid.resourcing.rules.CommissionEnablerFormcommissionEnablerForm the form for this CommissionEnabler
Returnosid.resourcing.rules.CommissionEnabler the new CommissionEnabler
ErrorsILLEGAL_STATE commissionEnablerForm already used in a create transaction
INVALID_ARGUMENT one or more of the form elements is invalid
NULL_ARGUMENT commissionEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED commissionEnablerForm did not originate from getCommissionEnablerFormForCreate()
Compliancemandatory This method must be implemented.
MethodcanUpdateCommissionEnablers
Description

Tests if this user can update commission enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a CommissionEnabler 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 CommissionEnabler modification is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetCommissionEnablerFormForUpdate
Description

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

Parametersosid.id.IdcommissionEnablerId the Id of the CommissionEnabler
Returnosid.resourcing.rules.CommissionEnablerForm the commission enabler form
ErrorsNOT_FOUND commissionEnablerId is not found
NULL_ARGUMENT commissionEnablerd is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateCommissionEnabler
Description

Updates an existing commission enabler.

Parametersosid.resourcing.rules.CommissionEnablerFormcommissionEnablerForm the form containing the elements to be updated
ErrorsILLEGAL_STATE commissionEnablerForm already used in an update transaction
INVALID_ARGUMENT the form contains an invalid value
NULL_ARGUMENT commissionEnablerForm is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED commissionEnablerForm did not originate from getCommissionEnablerFormForUpdate()
Compliancemandatory This method must be implemented.
MethodcanDeleteCommissionEnablers
Description

Tests if this user can delete commission enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting a CommissionEnabler 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 CommissionEnabler deletion is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoddeleteCommissionEnabler
Description

Deletes a CommissionEnabler.

Parametersosid.id.IdcommissionEnablerId the Id of the CommissionEnabler to remove
ErrorsNOT_FOUND commissionEnablerId not found
NULL_ARGUMENT commissionEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageCommissionEnablerAliases
Description

Tests if this user can manage Id aliases for commission enablers. 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 CommissionEnabler aliasing is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaliasCommissionEnabler
Description

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

Parametersosid.id.IdcommissionEnablerId the Id of a CommissionEnabler
osid.id.IdaliasId the alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND commissionEnablerId not found
NULL_ARGUMENT commissionEnablerId or aliasId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.