Interface | osid.resourcing.CommissionAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
Method | getFoundryId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Foundry Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getFoundry | ||
Description |
Gets the | ||
Return | osid.resourcing.Foundry | the foundry | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateCommissions | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Commission creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateCommissionWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | commissionRecordTypes | array of commission record types |
Return | boolean | true if Commission creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | commissionRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getCommissionFormForCreate | ||
Description |
Gets the commission form for creating new commissions. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | resourceId | the Id for the resource |
osid.id.Id | workId | the Id for the work | |
osid.type.Type[] | commissionRecordTypes | array of commission record types | |
Return | osid.resourcing.CommissionForm | the commission form | |
Errors | NOT_FOUND | resourceId or workId is not found | |
NULL_ARGUMENT | resourceId, workId, or commissionRecordTypes
is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createCommission | ||
Description |
Creates a new | ||
Parameters | osid.resourcing.CommissionForm | commissionForm | the form for this Commission |
Return | osid.resourcing.Commission | the new Commission | |
Errors | ILLEGAL_STATE | commissionForm already used for a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | commissionForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | commissionForm did no originate from
getCommissionFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateCommissions | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Commission modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getCommissionFormForUpdate | ||
Description |
Gets the commission form for updating an existing commission. A new commission form should be requested for each update transaction. | ||
Parameters | osid.id.Id | commissionId | the Id of the Commission |
Return | osid.resourcing.CommissionForm | the commission form | |
Errors | NOT_FOUND | commissionId is not found | |
NULL_ARGUMENT | commissionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateCommission | ||
Description |
Updates an existing commission. | ||
Parameters | osid.resourcing.CommissionForm | commissionForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | commissionForm already used for an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | commissionForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | commissionForm did no originate from
getCommissionFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteCommissions | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Commission deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteCommission | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | commissionId | the Id of the Commission to remove |
Errors | NOT_FOUND | commissionId not found | |
NULL_ARGUMENT | commissionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageCommissionAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Commission aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasCommission | ||
Description |
Adds an | ||
Parameters | osid.id.Id | commissionId | the Id of a Commission |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | commissionId not found | ||
NULL_ARGUMENT | commissionId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |