Interface | osid.authorization.FunctionLookupSession | ||
---|---|---|---|
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. Functions may have an additional records indicated by their respective record types. | ||
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 | canLookupFunctions | ||
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 | useComparativeFunctionView | ||
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 | usePlenaryFunctionView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedVaultView | ||
Description |
Federates the view for methods in this session. A federated view will include functions in vaults which are children of this vault in the vault hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedVaultView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this vault only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useActiveFunctionView | ||
Description |
Only active functions are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyStatusFunctionView | ||
Description |
Active and inactive functions are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getFunction | ||
Description |
Gets the | ||
Parameters | osid.id.Id | functionId | the Id of the Function to retrieve |
Return | osid.authorization.Function | the returned Function | |
Errors | NOT_FOUND | no Function found with the given Id | |
NULL_ARGUMENT | functionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getFunctionsByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | functionIds | the list of Ids to retrieve |
Return | osid.authorization.FunctionList | the returned Function list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | functionIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getFunctionsByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | functionGenusType | a function genus type |
Return | osid.authorization.FunctionList | the returned Function list | |
Errors | NULL_ARGUMENT | functionGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getFunctionsByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | functionGenusType | a function genus type |
Return | osid.authorization.FunctionList | the returned Function list | |
Errors | NULL_ARGUMENT | functionGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getFunctionsByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | functionRecordType | a function record type |
Return | osid.authorization.FunctionList | the returned Function list | |
Errors | NULL_ARGUMENT | functionRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getFunctions | ||
Description |
Gets all | ||
Return | osid.authorization.FunctionList | a list of Functions | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |