| Interface | osid.offering.rules.CanonicalUnitProcessorAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates and removes canonical unit processors.
The data for create and update is provided via the | ||
| Method | getCatalogueId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Catalogue Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCatalogue | ||
| Description |
Gets the | ||
| Return | osid.offering.Catalogue | the catalogue | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateCanonicalUnitProcessor | ||
| Description |
Tests if this user can create canonical unit
processors. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known creating a | ||
| Return | boolean | false if CanonicalUnitProcessor creation is
not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateCanonicalUnitProcessorWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | canonicalUnitProcessorRecordTypes | array of canonical unit processor record types |
| Return | boolean | true if CanonicalUnitProcessor creation using
the specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | canonicalUnitProcessorRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCanonicalUnitProcessorFormForCreate | ||
| Description |
Gets the canonical unit processor form for creating new canonical unit processors. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | canonicalUnitProcessorRecordTypes | array of canonical unit processor record types |
| Return | osid.offering.rules.CanonicalUnitProcessorForm | the canonical unit processor form | |
| Errors | NULL_ARGUMENT | canonicalUnitProcessorRecordTypes 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 | createCanonicalUnitProcessor | ||
| Description |
Creates a new | ||
| Parameters | osid.offering.rules.CanonicalUnitProcessorForm | canonicalUnitProcessorForm | the form for this CanonicalUnitProcessor |
| Return | osid.offering.rules.CanonicalUnitProcessor | the new CanonicalUnitProcessor | |
| Errors | ILLEGAL_STATE | canonicalUnitProcessorForm already used in a create
transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | canonicalUnitProcessorForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | canonicalUnitProcessorForm did not originate from
getCanonicalUnitProcessorFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateCanonicalUnitProcessors | ||
| Description |
Tests if this user can update canonical unit
processors. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known updating a | ||
| Return | boolean | false if CanonicalUnitProcessor modification
is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCanonicalUnitProcessorFormForUpdate | ||
| Description |
Gets the canonical unit processor form for updating an existing canonical unit processor. A new canonical unit processor form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | canonicalUnitProcessorId | the Id of the CanonicalUnitProcessor |
| Return | osid.offering.rules.CanonicalUnitProcessorForm | the canonical unit processor form | |
| Errors | NOT_FOUND | canonicalUnitProcessorId is not found | |
| NULL_ARGUMENT | canonicalUnitProcessorId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateCanonicalUnitProcessor | ||
| Description |
Updates an existing canonical unit processor. | ||
| Parameters | osid.offering.rules.CanonicalUnitProcessorForm | canonicalUnitProcessorForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | canonicalUnitProcessorForm already used in an update
transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | canonicalUnitProcessorForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | canonicalUnitProcessorForm did not originate from
getCanonicalUnitProcessorFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteCanonicalUnitProcessors | ||
| Description |
Tests if this user can delete canonical unit
processors. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known deleting a | ||
| Return | boolean | false if CanonicalUnitProcessor deletion is
not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteCanonicalUnitProcessor | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | canonicalUnitProcessorId | the Id of the CanonicalUnitProcessor to
remove |
| Errors | NOT_FOUND | canonicalUnitProcessorId not found | |
| NULL_ARGUMENT | canonicalUnitProcessorId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageCanonicalUnitProcessorAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if CanonicalUnitProcessor aliasing is
not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasCanonicalUnitProcessor | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | canonicalUnitProcessorId | the Id of a CanonicalUnitProcessor |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | canonicalUnitProcessorId not found | ||
| NULL_ARGUMENT | canonicalUnitProcessorId or aliasId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |