| Interface | osid.authorization.AuthorizationAdminSession | ||
|---|---|---|---|
| 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 | getVaultId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Vault Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getVault | ||
| Description |
Gets the | ||
| Return | osid.authorization.Vault | the Vault associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateAuthorizations | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Authorization creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateAuthorizationWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | authorizationRecordTypes | array of authorization record types |
| Return | boolean | true if Authorization creation using the
specified Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | authorizationRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAuthorizationFormForCreateForAgent | ||
| Description |
Gets the authorization form for creating new authorizations. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | agentId | the agent Id |
osid.id.Id | functionId | the function Id | |
osid.id.Id | qualifierId | the qualifier Id | |
osid.type.Type[] | authorizationRecordTypes | array of authorization record types | |
| Return | osid.authorization.AuthorizationForm | the authorization form | |
| Errors | NOT_FOUND | agentId, functionId or qualifierId is not
found | |
| NULL_ARGUMENT | agentId, functionId, qualifierId or
authorizationRecordTypes is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form with requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAuthorizationFormForCreateForResource | ||
| Description |
Gets the authorization form for creating new authorizations. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | resourceId | the resource Id |
osid.id.Id | functionId | the function Id | |
osid.id.Id | qualifierId | the qualifier Id | |
osid.type.Type[] | authorizationRecordTypes | array of authorization record types | |
| Return | osid.authorization.AuthorizationForm | the authorization form | |
| Errors | NOT_FOUND | resourceId, functionId or qualifierId is not
found | |
| NULL_ARGUMENT | resourceId, functionId, qualifierId, or
authorizationRecordTypes is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form with requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAuthorizationFormForCreateForResourceAndTrust | ||
| Description |
Gets the authorization form for creating new authorizations. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | resourceId | a resource Id |
osid.id.Id | trustId | an Id for a circle of trust | |
osid.id.Id | functionId | a function Id | |
osid.id.Id | qualifierId | the qualifier Id | |
osid.type.Type[] | authorizationRecordTypes | array of authorization record types | |
| Return | osid.authorization.AuthorizationForm | the authorization form | |
| Errors | NOT_FOUND | resourceId, trustId, functionId , or qualifierid
is not found | |
| NULL_ARGUMENT | resourceId, trustId , resourceId, qualifierId
or authorizationRecordTypes is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form with requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createAuthorization | ||
| Description |
Creates a new explicit | ||
| Parameters | osid.authorization.AuthorizationForm | authorizationForm | the authorization form |
| Return | osid.authorization.Authorization | t he new Authorization | |
| Errors | ILLEGAL_STATE | authorizationForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | authorizationForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | authorizationForm did not originate from this service | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateAuthorizations | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if authorization modification is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAuthorizationFormForUpdate | ||
| Description |
Gets the authorization form for updating an existing authorization. A new authorization form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | authorizationId | the Id of the Authorization |
| Return | osid.authorization.AuthorizationForm | the authorization form | |
| Errors | NOT_FOUND | authorizationId is not found | |
| NULL_ARGUMENT | authorizationId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateAuthorization | ||
| Description |
Updates an existing authorization | ||
| Parameters | osid.authorization.AuthorizationForm | authorizationForm | the authorization Id |
| Errors | ILLEGAL_STATE | authorizationForm already used in an update transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | authorizationForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | authorizationForm did not originate from
getAuthorizationFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteAuthorizations | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Authorization deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteAuthorization | ||
| Description |
Deletes the | ||
| Parameters | osid.id.Id | authorizationId | the Id of the Authorization to delete |
| Errors | NOT_FOUND | an Authorization was not found identified by the given
Id | |
| NULL_ARGUMENT | authorizationId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageAuthorizationAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Authorization aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasAuthorization | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | authorizationId | the Id of an Authorization |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | authorizationId not found | ||
| NULL_ARGUMENT | authorizationId or aliasId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |