| Interface | osid.authentication.process.TrustLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | This session provides methods for retrieving  This session defines two sets of views which offer differing behaviors when retrieving multiple objects. 
 Generally, the comparative view should be used for most applications as it permits operation even if there a particular element is inaccessible. For example, a hierarchy output can be plugged into a lookup method to retrieve all objects known to a hierarchy, but it may not be necessary to break execution if a node from the hierarchy no longer exists. However, some administrative applications may need to know whether it had retrieved an entire set of objects and may sacrifice some interoperability for the sake of precision.  Trusts may have an additional records indicated by their 
                respective record types. The record may not be accessed 
                through a cast of the  | ||
| Method | getAgencyId | ||
| Description | Gets the  | ||
| Return | osid.id.Id | the  Agency Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAgency | ||
| Description | Gets the  | ||
| Return | osid.authentication.Agency | the  Agency associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canLookupTrusts | ||
| Description | Tests if this user can perform  | ||
| Return | boolean |  false if lookup methods are not authorized, true 
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useComparativeTrustView | ||
| Description | The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | usePlenaryTrustView | ||
| Description | A complete view of the  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedAgencyView | ||
| Description | Federates the view for methods in this session. A federated view will include trusts in agencies which are children of this agency in the agency hierarchy. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedAgencyView | ||
| Description | Isolates the view for methods in this session. An isolated view restricts lookups to this agency only. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getTrust | ||
| Description | Gets the  | ||
| Parameters | osid.id.Id | trustId | the  Id of the Trust to retrieve | 
| Return | osid.authentication.process.Trust | the returned  Trust  | |
| Errors | NOT_FOUND | no  Trust found with the given Id  | |
| NULL_ARGUMENT |  trustId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getTrustsByIds | ||
| Description | Gets a  | ||
| Parameters | osid.id.IdList | trustIds | a list of trust  Ids  | 
| Return | osid.authentication.process.TrustList | the returned  Trust list  | |
| Errors | NOT_FOUND | an  Id was not found | |
| NULL_ARGUMENT |  trustIds is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getTrustsByGenusType | ||
| Description | Gets a  | ||
| Parameters | osid.type.Type | trustGenusType | a trust genus type | 
| Return | osid.authentication.process.TrustList | the returned  Trust list | |
| Errors | NULL_ARGUMENT |  trustGenusType is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getTrustsByParentGenusType | ||
| Description | Gets a  | ||
| Parameters | osid.type.Type | trustGenusType | a trust genus type | 
| Return | osid.authentication.process.TrustList | the returned  Trust list | |
| Errors | NULL_ARGUMENT |  trustGenusType is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getTrustsByRecordType | ||
| Description | Gets a  | ||
| Parameters | osid.type.Type | trustRecordType | a trust record type | 
| Return | osid.authentication.process.TrustList | the returned  Trust list | |
| Errors | NULL_ARGUMENT |  trustRecordType is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCircleOfTrust | ||
| Description | Gets a  | ||
| Parameters | osid.id.Id | trustId | a trust  Id  | 
| Return | osid.authentication.process.TrustList | the returned  Trust list | |
| Errors | NOT_FOUND |  trustId is not found | |
| NULL_ARGUMENT |  trustId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getTrusts | ||
| Description | Gets all  | ||
| Return | osid.authentication.process.TrustList | a list of  Trusts  | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |