| Interface | osid.learning.ActivityAdminSession | ||
|---|---|---|---|
| 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 | getObjectiveBankId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  ObjectiveBank Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getObjectiveBank | ||
| Description | 
                     Gets the   | ||
| Return | osid.learning.ObjectiveBank | the  ObjectiveBank  associated with this session  | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateActivities | ||
| Description | 
                     Tests if this user can create   | ||
| Return | boolean |  false  if  Activity  creation is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateActivityWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | activityRecordTypes | array of activity record types | 
| Return | boolean |  true  if  Activity  creation using the specified 
record  Types  is supported,  false  otherwise  | |
| Errors | NULL_ARGUMENT |  activityRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getActivityFormForCreate | ||
| Description | 
                     Gets the activity form for creating new activities. A new form should be requested for each create transaction.  | ||
| Parameters | osid.id.Id | objectiveId | the  Id  of the  Objective   | 
osid.type.Type[] | activityRecordTypes | array of activity record types | |
| Return | osid.learning.ActivityForm | the activity form | |
| Errors | NOT_FOUND |  objectiveId  is not found  |                 |
| NULL_ARGUMENT |  objectiveId  or  activityRecordTypes  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 | createActivity | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.learning.ActivityForm | activityForm | the form for this  Activity   | 
| Return | osid.learning.Activity | the new  Activity   | |
| Errors | ILLEGAL_STATE |  activityForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  activityForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  activityForm  did not originate from  
getActivityFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateActivities | ||
| Description | 
                     Tests if this user can update   | ||
| Return | boolean |  false  if activity modification is not authorized,  
true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getActivityFormForUpdate | ||
| Description | 
                     Gets the activity form for updating an existing activity. A new activity form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | activityId | the  Id  of the  Activity   | 
| Return | osid.learning.ActivityForm | the activity form | |
| Errors | NOT_FOUND |  activityId  is not found  |                 |
| NULL_ARGUMENT |  activityId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateActivity | ||
| Description | 
                     Updates an existing activity,  | ||
| Parameters | osid.learning.ActivityForm | activityForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  activityForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  activityForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  activityForm  did not originate from  
getActivityFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteActivities | ||
| Description | 
                     Tests if this user can delete   | ||
| Return | boolean |  false  if  Activity  deletion is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteActivity | ||
| Description | 
                     Deletes the   | ||
| Parameters | osid.id.Id | activityId | the  Id  of the  Activity  to delete  | 
| Errors | NOT_FOUND | an  Activity  was not found identified by the given  Id 
  |                 |
| NULL_ARGUMENT |  activityId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageActivityAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Activity  aliasing is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasActivity | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | activityId | the  Id  of an  Activity   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is already assigned  |                 |
| NOT_FOUND |  activityId  not found  |                 ||
| NULL_ARGUMENT |  activityId  or  aliasId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |