| Interface | osid.resourcing.CompetencyAdminSession | ||
|---|---|---|---|
| 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 | getJobId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Job Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getJob | ||
| Description | 
                     Gets the   | ||
| Return | osid.resourcing.Foundry | the foundry | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateCompetency | ||
| Description | 
                     Tests if this user can create competencies. A return of 
                    true does not guarantee successful authorization. A return 
                    of false indicates that it is known creating a   | ||
| Return | boolean |  false  if  Competency  creation is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateCompetencyWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | competencyRecordTypes | array of competency record types | 
| Return | boolean |  true  if  Competency  creation using the 
specified record  Types  is supported,  false  
otherwise  | |
| Errors | NULL_ARGUMENT |  competencyRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCompetencyFormForCreate | ||
| Description | 
                     Gets the competency form for creating new competencies. A new form should be requested for each create transaction.  | ||
| Parameters | osid.type.Type[] | competencyRecordTypes | array of competency record types | 
| Return | osid.resourcing.CompetencyForm | the competency form | |
| Errors | NULL_ARGUMENT |  competencyRecordTypes  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 | createCompetency | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.resourcing.CompetencyForm | competencyForm | the form for this  Competency   | 
| Return | osid.resourcing.Competency | the new  Competency   | |
| Errors | ILLEGAL_STATE |  competencyForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  competencyForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  competencyForm  did not originate from  
getCompetencyFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateCompetencies | ||
| Description | 
                     Tests if this user can update competencies. A return of 
                    true does not guarantee successful authorization. A return 
                    of false indicates that it is known updating a   | ||
| Return | boolean |  false  if  Competency  modification is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCompetencyFormForUpdate | ||
| Description | 
                     Gets the competency form for updating an existing competency. A new competency form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | competencyId | the  Id  of the  Competency   | 
| Return | osid.resourcing.CompetencyForm | the competency form | |
| Errors | NOT_FOUND |  competencyId  is not found  |                 |
| NULL_ARGUMENT |  competencyId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateCompetency | ||
| Description | 
                     Updates an existing competency.  | ||
| Parameters | osid.resourcing.CompetencyForm | competencyForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  competencyForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  competencyId  or  competencyForm  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  competencyForm  did not originate from  
getCompetencyFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteCompetencies | ||
| Description | 
                     Tests if this user can delete competencies. A return of 
                    true does not guarantee successful authorization. A return 
                    of false indicates that it is known deleting a   | ||
| Return | boolean |  false  if  Competency  deletion is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteCompetency | ||
| Description | 
                     Deletes a   | ||
| Parameters | osid.id.Id | competencyId | the  Id  of the  Competency  to remove  | 
| Errors | NOT_FOUND |  competencyId  not found  |                 |
| NULL_ARGUMENT |  competencyId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageCompetencyAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Competency  aliasing is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasCompetency | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | competencyId | the  Id  of a  Competency   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is already assigned  |                 |
| NOT_FOUND |  competencyId  not found  |                 ||
| NULL_ARGUMENT |  competencyId  or  aliasId  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |