| Interface | osid.offering.ParticipantAdminSession | ||
|---|---|---|---|
| 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 | canCreateParticipants | ||
| Description | 
                     Tests if this user can create participants. A return of 
                    true does not guarantee successful authorization. A return 
                    of false indicates that it is known creating a   | ||
| Return | boolean |  false  if  Participant  creation is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateParticipantWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | participantRecordTypes | array of participant record types | 
| Return | boolean |  true  if  Participant  creation using the 
specified record  Types  is supported,  false  
otherwise  | |
| Errors | NULL_ARGUMENT |  participantRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getParticipantFormForCreate | ||
| Description | 
                     Gets the participant form for creating new participants. A new form should be requested for each create transaction.  | ||
| Parameters | osid.id.Id | offeringId | the offering  Id  to which this participant belongs  | 
osid.id.Id | resourceId | the resource  Id  for this participant  | |
osid.type.Type[] | participantRecordTypes | array of participant record types to be included in the create operation or an empty list if none | |
| Return | osid.offering.ParticipantForm | the participant form | |
| Errors | NOT_FOUND |  offeringId  or  resourceId  is not found  |                 |
| NULL_ARGUMENT |  offeringId, resourceId,  or  participantRecordTypes 
 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 | createParticipant | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.offering.ParticipantForm | participantForm | the form for this  Participant   | 
| Return | osid.offering.Participant | the new  Participant   | |
| Errors | ILLEGAL_STATE |  participantForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  participantForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  participantForm  did not originate from  
getParticipantFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateParticipants | ||
| Description | 
                     Tests if this user can update participants. A return of 
                    true does not guarantee successful authorization. A return 
                    of false indicates that it is known updating a   | ||
| Return | boolean |  false  if  Participant  modification is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getParticipantFormForUpdate | ||
| Description | 
                     Gets the participant form for updating an existing participant. A new participant form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | participantId | the  Id  of the  Participant   | 
| Return | osid.offering.ParticipantForm | the participant form | |
| Errors | NOT_FOUND |  participantId  is not found  |                 |
| NULL_ARGUMENT |  participantId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateParticipant | ||
| Description | 
                     Updates an existing participant.  | ||
| Parameters | osid.offering.ParticipantForm | participantForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  participantForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  participantForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  participantForm  did not originate from  
getParticipantFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteParticipants | ||
| Description | 
                     Tests if this user can delete participants. A return of 
                    true does not guarantee successful authorization. A return 
                    of false indicates that it is known deleting an   | ||
| Return | boolean |  false  if  Participant  deletion is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteParticipant | ||
| Description | 
                     Deletes a   | ||
| Parameters | osid.id.Id | participantId | the  Id  of the  Participant  to remove  | 
| Errors | NOT_FOUND |  participantId  not found  |                 |
| NULL_ARGUMENT |  participantId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageParticipantAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Participant  aliasing is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasParticipant | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | participantId | the  Id  of a  Participant   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is in use as a primary  Id   |                 |
| NOT_FOUND |  participantId  not found  |                 ||
| NULL_ARGUMENT |  participantId  or  aliasId  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |