| Interface | osid.offering.OfferingAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | This session creates, updates, and deletes   Create and update operations differ in their usage. To 
                create an   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 | canCreateOfferings | ||
| Description | Tests if this user can create offerings. A return of 
                    true does not guarantee successful authorization. A return 
                    of false indicates that it is known creating an  | ||
| Return | boolean |  false if Offering creation is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateOfferingWithRecordTypes | ||
| Description | Tests if this user can create a single  | ||
| Parameters | osid.type.Type[] | offeringRecordTypes | array of offering record types | 
| Return | boolean |  true if Offering creation using the specified 
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT |  offeringRecordTypes is null  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getOfferingFormForCreate | ||
| Description | Gets the offering form for creating new offerings. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | canonicalUnitId | the canonical unit  Id  | 
| osid.id.Id | timePeriodId | the time period  Id  | |
| osid.type.Type[] | offeringRecordTypes | array of offering record types to be included in the create operation or an empty list if none | |
| Return | osid.offering.OfferingForm | the offering form | |
| Errors | NOT_FOUND |  canonicalUnitId or timePeriodId is not found | |
| NULL_ARGUMENT |  canonicalUnitId, timePeriodId , or 
offeringRecordTypes 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 | createOffering | ||
| Description | Creates a new  | ||
| Parameters | osid.offering.OfferingForm | offeringForm | the form for this  Offering  | 
| Return | osid.offering.Offering | the new  Offering  | |
| Errors | ILLEGAL_STATE |  offeringForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  offeringForm is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  offeringForm did not originate from 
getOfferingFormForCreate()  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateOfferings | ||
| Description | Tests if this user can update offerings. A return of 
                    true does not guarantee successful authorization. A return 
                    of false indicates that it is known updating an  | ||
| Return | boolean |  false if Offering modification is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getOfferingFormForUpdate | ||
| Description | Gets the offering form for updating an existing offering. A new offering form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | offeringId | the  Id of the Offering  | 
| Return | osid.offering.OfferingForm | the offering form | |
| Errors | NOT_FOUND |  offeringId is not found | |
| NULL_ARGUMENT |  offeringId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateOffering | ||
| Description | Updates an existing offering. | ||
| Parameters | osid.offering.OfferingForm | offeringForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  offeringForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  offeringForm is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  offeringForm did not originate from 
getOfferingFormForUpdate()  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteOfferings | ||
| Description | Tests if this user can delete offerings. A return of 
                    true does not guarantee successful authorization. A return 
                    of false indicates that it is known deleting an  | ||
| Return | boolean |  false if Offering deletion is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteOffering | ||
| Description | Deletes an  | ||
| Parameters | osid.id.Id | offeringId | the  Id of the Offering to remove | 
| Errors | NOT_FOUND |  offeringId not found | |
| NULL_ARGUMENT |  offeringId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageOfferingAliases | ||
| Description | Tests if this user can manage  | ||
| Return | boolean |  false if Offering aliasing is not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasOffering | ||
| Description | Adds an  | ||
| Parameters | osid.id.Id | offeringId | the  Id of an Offering  | 
| osid.id.Id | aliasId | the alias  Id  | |
| Errors | ALREADY_EXISTS |  aliasId is in use as a primary Id  | |
| NOT_FOUND |  offeringId not found | ||
| NULL_ARGUMENT |  offeringId or aliasId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |