| Interface | osid.financials.ActivityBusinessAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session provides methods to re-assign   Adding a reference of an   | ||
| Method | canAssignActivities | ||
| Description | 
                     Tests if this user can alter activity/business 
                    mappings. A return of true does not guarantee successful 
                    authorization. A return of false indicates that it is 
                    known mapping methods in this session will result in a 
                      | ||
| Return | boolean |  false  if mapping is not authorized,  true  
otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignActivitiesToBusiness | ||
| Description | 
                     Tests if this user can alter activity/business 
                    mappings. A return of true does not guarantee successful 
                    authorization. A return of false indicates that it is 
                    known mapping methods in this session will result in a 
                      | ||
| Parameters | osid.id.Id | businessId | the  Id  of the  Business   | 
| Return | boolean |  false  if mapping is not authorized,  true  
otherwise  | |
| Errors | NULL_ARGUMENT |  businessId  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableBusinessIds | ||
| Description | 
                     Gets a list of businesses including and under the given business node in which any activity can be assigned.  | ||
| Parameters | osid.id.Id | businessId | the  Id  of the  Business   | 
| Return | osid.id.IdList | list of assignable business  Ids   | |
| Errors | NULL_ARGUMENT |  businessId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableBusinessIdsForActivity | ||
| Description | 
                     Gets a list of businesses including and under the given business node in which a specific activity can be assigned.  | ||
| Parameters | osid.id.Id | businessId | the  Id  of the  Business   | 
osid.id.Id | activityId | the  Id  of the  Activity   | |
| Return | osid.id.IdList | list of assignable business  Ids   | |
| Errors | NULL_ARGUMENT |  businessId  or  activityId  is  null 
  |                 |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignActivityToBusiness | ||
| Description | 
                     Adds an existing   | ||
| Parameters | osid.id.Id | activityId | the  Id  of the  Activity   | 
osid.id.Id | businessId | the  Id  of the  Business   | |
| Errors | ALREADY_EXISTS |  activityId  is already assigned to  businessId   |                 |
| NOT_FOUND |  activityId  or  businessId  not found  |                 ||
| NULL_ARGUMENT |  activityId  or  businessId  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignActivityFromBusiness | ||
| Description | 
                     Removes an   | ||
| Parameters | osid.id.Id | activityId | the  Id  of the  Activity   | 
osid.id.Id | businessId | the  Id  of the  Business   | |
| Errors | NOT_FOUND |  activityId  or  businessId  not found or  
activityId  not assigned to  businessId   |                 |
| NULL_ARGUMENT |  activityId  or  businessId  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |