OSID Logo
OSID Specifications
resourcing rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resourcing.rules.CommissionEnablerAdminSession
Implementsosid.OsidSession
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.Idthe Foundry Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetFoundry
Description

Gets the Foundry associated with this session.

Returnosid.resourcing.Foundrythe foundry
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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[]commissionEnablerRecordTypesarray of commission enabler record types
Returnboolean true if CommissionEnabler creation using the specified record Types is supported, false otherwise
ErrorsNULL_ARGUMENT commissionEnablerRecordTypes is null
CompliancemandatoryThis 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[]commissionEnablerRecordTypesarray of commission enabler record types
Returnosid.resourcing.rules.CommissionEnablerFormthe commission enabler form
ErrorsNULL_ARGUMENT commissionEnablerRecordTypes is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDunable to get form with requested record types
CompliancemandatoryThis method must be implemented.
MethodcreateCommissionEnabler
Description

Creates a new CommissionEnabler.

Parametersosid.resourcing.rules.CommissionEnablerFormcommissionEnablerFormthe form for this CommissionEnabler
Returnosid.resourcing.rules.CommissionEnablerthe new CommissionEnabler
ErrorsILLEGAL_STATE commissionEnablerForm already used in a create transaction
INVALID_ARGUMENTone or more of the form elements is invalid
NULL_ARGUMENT commissionEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED commissionEnablerForm did not originate from getCommissionEnablerFormForCreate()
CompliancemandatoryThis 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
CompliancemandatoryThis 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.IdcommissionEnablerIdthe Id of the CommissionEnabler
Returnosid.resourcing.rules.CommissionEnablerFormthe commission enabler form
ErrorsNOT_FOUND commissionEnablerId is not found
NULL_ARGUMENT commissionEnablerd is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodupdateCommissionEnabler
Description

Updates an existing commission enabler.

Parametersosid.resourcing.rules.CommissionEnablerFormcommissionEnablerFormthe form containing the elements to be updated
ErrorsILLEGAL_STATE commissionEnablerForm already used in an update transaction
INVALID_ARGUMENTthe form contains an invalid value
NULL_ARGUMENT commissionEnablerForm is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED commissionEnablerForm did not originate from getCommissionEnablerFormForUpdate()
CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethoddeleteCommissionEnabler
Description

Deletes a CommissionEnabler.

Parametersosid.id.IdcommissionEnablerIdthe Id of the CommissionEnabler to remove
ErrorsNOT_FOUND commissionEnablerId not found
NULL_ARGUMENT commissionEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.IdcommissionEnablerIdthe Id of a CommissionEnabler
osid.id.IdaliasIdthe alias Id
ErrorsALREADY_EXISTS aliasId is already assigned
NOT_FOUND commissionEnablerId not found
NULL_ARGUMENT commissionEnablerId or aliasId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.