| Interface | osid.authorization.Authorization | ||
|---|---|---|---|
| Implements | osid.OsidRelationship | ||
| Description |
An Authorization is a mapping among an actor, a The actor of an authorization may be specified in a variety of forms.
An explicit An | ||
| Method | isImplicit | ||
| Description |
Tests if this authorization is implicit. | ||
| Return | boolean | true if this authorization is implicit, false
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | hasResource | ||
| Description |
Tests if this authorization has a | ||
| Return | boolean | true if this authorization has a Resource,
false otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getResourceId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Resource Id | |
| Errors | ILLEGAL_STATE | hasResource() is false | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getResource | ||
| Description |
Gets the | ||
| Return | osid.resource.Resource | the Resource | |
| Errors | ILLEGAL_STATE | hasResource() is false | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | hasTrust | ||
| Description |
Tests if this authorization has a | ||
| Return | boolean | true if this authorization has a Trust,
false otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getTrustId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the trust Id | |
| Errors | ILLEGAL_STATE | hasTrust() is false | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getTrust | ||
| Description |
Gets the | ||
| Return | osid.authentication.process.Trust | the Trust | |
| Errors | ILLEGAL_STATE | hasTrust() is false | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | hasAgent | ||
| Description |
Tests if this authorization has an | ||
| Return | boolean | true if this authorization has an Agent,
false otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAgentId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Agent Id | |
| Errors | ILLEGAL_STATE | hasAgent() is false | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAgent | ||
| Description |
Gets the | ||
| Return | osid.authentication.Agent | the Agent | |
| Errors | ILLEGAL_STATE | hasAgent() is false | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getFunctionId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the function Id | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getFunction | ||
| Description |
Gets the | ||
| Return | osid.authorization.Function | the function | |
| Errors | OPERATION_FAILED | unable to complete request | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getQualifierId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the qualifier Id | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getQualifier | ||
| Description |
Gets the qualifier for this authorization. | ||
| Return | osid.authorization.Qualifier | the qualifier | |
| Errors | OPERATION_FAILED | unable to complete request | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAuthorizationRecord | ||
| Description |
Gets the authorization record corresponding to the
given | ||
| Parameters | osid.type.Type | authorizationRecordType | the type of the record to retrieve |
| Return | osid.authorization.records.AuthorizationRecord | the authorization record | |
| Errors | NULL_ARGUMENT | authorizationRecordType is null | |
| OPERATION_FAILED | unable to complete request | ||
| UNSUPPORTED | hasRecordType(authorizationRecordType) is false
| ||
| Compliance | mandatory | This method must be implemented. | |