| Interface | osid.offering.CanonicalUnitAdminSession | ||
|---|---|---|---|
| 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 | 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 | canCreateCanonicalUnits | ||
| Description | Tests if this user can create canonical units. A return 
                    of true does not guarantee successful authorization. A 
                    return of false indicates that it is known creating a 
                     | ||
| Return | boolean |  false if CanonicalUnit creation is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateCanonicalUnitWithRecordTypes | ||
| Description | Tests if this user can create a single  | ||
| Parameters | osid.type.Type[] | canonicalUnitRecordTypes | array of canonical unit record types | 
| Return | boolean |  true if CanonicalUnit creation using the 
specified record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT |  canonicalUnitRecordTypes is null  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCanonicalUnitFormForCreate | ||
| Description | Gets the canonical unit form for creating new canonical units. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | canonicalUnitRecordTypes | array of canonical unit record types to be included in the create operation or an empty list if none | 
| Return | osid.offering.CanonicalUnitForm | the canonical unit form | |
| Errors | NULL_ARGUMENT |  canonicalUnitRecordTypes is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | cannot get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createCanonicalUnit | ||
| Description | Creates a new  | ||
| Parameters | osid.offering.CanonicalUnitForm | canonicalUnitForm | the form for this  CanonicalUnit  | 
| Return | osid.offering.CanonicalUnit | the new  CanonicalUnit  | |
| Errors | ILLEGAL_STATE |  canonicalUnitForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  canonicalUnitForm is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  canonicalUnitForm did not originate from 
getCanonicalUnitFormForCreate()  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateCanonicalUnits | ||
| Description | Tests if this user can update canonical units. A return 
                    of true does not guarantee successful authorization. A 
                    return of false indicates that it is known updating a 
                     | ||
| Return | boolean |  false if CanonicalUnit modification is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCanonicalUnitFormForUpdate | ||
| Description | Gets the canonical unit form for updating an existing canonical unit. A new canonical unit form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | canonicalUnitId | the  Id of the CanonicalUnit  | 
| Return | osid.offering.CanonicalUnitForm | the canonical unit form | |
| Errors | NOT_FOUND |  canonicalUnitId is not found | |
| NULL_ARGUMENT |  canonicalUnitId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateCanonicalUnit | ||
| Description | Updates an existing canonical unit. | ||
| Parameters | osid.offering.CanonicalUnitForm | canonicalUnitForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  canonicalUnitForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  canonicalUnitForm is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  canonicalUnitForm did not originate from 
getCanonicalUnitFormForUpdate()  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteCanonicalUnits | ||
| Description | Tests if this user can delete canonical units. A return 
                    of true does not guarantee successful authorization. A 
                    return of false indicates that it is known deleting an 
                     | ||
| Return | boolean |  false if CanonicalUnit deletion is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteCanonicalUnit | ||
| Description | Deletes a  | ||
| Parameters | osid.id.Id | canonicalUnitId | the  Id of the CanonicalUnit to remove | 
| Errors | NOT_FOUND |  canonicalUnitId not found | |
| NULL_ARGUMENT |  canonicalUnitId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageCanonicalUnitAliases | ||
| Description | Tests if this user can manage  | ||
| Return | boolean |  false if CanonicalUnit aliasing is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasCanonicalUnit | ||
| Description | Adds an  | ||
| Parameters | osid.id.Id | canonicalUnitId | the  Id of a CanonicalUnit  | 
| osid.id.Id | aliasId | the alias  Id  | |
| Errors | ALREADY_EXISTS |  aliasId is in use as a primary Id  | |
| NOT_FOUND |  canonicalUnitId not found | ||
| NULL_ARGUMENT |  canonicalUnitId or aliasId is null 
 | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |