| Interface | osid.authentication.AgencyAdminSession | ||
|---|---|---|---|
| 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 | canCreateAgencies | ||
| Description | 
                     Tests if this user can create   | ||
| Return | boolean |  false  if  Agency  creation is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateAgencyWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | agencyRecordTypes | array of agency record types | 
| Return | boolean |  true  if  Agency  creation using the specified 
 Types  is supported,  false  otherwise  | |
| Errors | NULL_ARGUMENT |  agencyRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAgencyFormForCreate | ||
| Description | 
                     Gets the agency form for creating new agencies. A new form should be requested for each create transaction.  | ||
| Parameters | osid.type.Type[] | agencyRecordTypes | array of agency record types | 
| Return | osid.authentication.AgencyForm | the agency form | |
| Errors | NULL_ARGUMENT |  agencyRecordTypes  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 | createAgency | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.authentication.AgencyForm | agencyForm | the form for this  Agency   | 
| Return | osid.authentication.Agency | the new  Agency   | |
| Errors | ILLEGAL_STATE |  agencyForm  already used for a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  agencyForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  agencyForm  did not originate from  
getAgencyFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateAgencies | ||
| Description | 
                     Tests if this user can update   | ||
| Return | boolean |  false  if  Agency  modification is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAgencyFormForUpdate | ||
| Description | 
                     Gets the agency form for updating an existing agency. A new agency form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | agencyId | the  Id  of the  Agency   | 
| Return | osid.authentication.AgencyForm | the agency form | |
| Errors | NOT_FOUND |  agencyId  is not found  |                 |
| NULL_ARGUMENT |  agencyId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateAgency | ||
| Description | 
                     Updates an existing agency.  | ||
| Parameters | osid.authentication.AgencyForm | agencyForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  agencyForm  already used for an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  agencyForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  agencyForm  did not originate from  
getAgencyFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteAgencies | ||
| Description | 
                     Tests if this user can delete agencies. A return of 
                    true does not guarantee successful authorization. A return 
                    of false indicates that it is known deleting an   | ||
| Return | boolean |  false  if  Agency  deletion is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteAgency | ||
| Description | 
                     Deletes an   | ||
| Parameters | osid.id.Id | agencyId | the  Id  of the  Agency  to remove  | 
| Errors | NOT_FOUND |  agencyId  not found  |                 |
| NULL_ARGUMENT |  agencyId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageAgencyAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Agency  aliasing is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasAgency | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | agencyId | the  Id  of an  Agency   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is already assigned  |                 |
| NOT_FOUND |  agencyId  not found  |                 ||
| NULL_ARGUMENT |  agencyId  or  aliasId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |