Interface | osid.authorization.AuthorizationLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods to search and retrieve This lookup session defines two sets of views:
The methods | ||
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 | canLookupAuthorizations | ||
Description |
Tests if this user can perform authorization lookups. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known all methods in this session will result in a | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeAuthorizationView | ||
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 | usePlenaryAuthorizationView | ||
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 authorizations 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 | useEffectiveAuthorizationView | ||
Description |
Only authorizations whose effective dates are current are returned by methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyEffectiveAuthorizationView | ||
Description |
All authorizations of any effective dates are returned by all methods in this session. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useImplicitAuthorizationView | ||
Description |
Sets the view for methods in this session to implicit
authorizations. An implicit view will include
authorizations derived from other authorizations as a
result of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useExplicitAuthorizationView | ||
Description |
Sets the view for methods in this session to explicit
authorizations. An explicit view includes only those
authorizations that were explicitly defined and not
implied. This method is the opposite of | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getAuthorization | ||
Description |
Gets the | ||
Parameters | osid.id.Id | authorizationId | the Id of the Authorization to retrieve |
Return | osid.authorization.Authorization | the returned Authorization | |
Errors | NOT_FOUND | no Authorization found with 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 | getAuthorizationsByIds | ||
Description |
Gets an | ||
Parameters | osid.id.IdList | authorizationIds | the list of Ids to retrieve |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | authorizationIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsByGenusType | ||
Description |
Gets an | ||
Parameters | osid.type.Type | authorizationGenusType | an authorization genus type |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | NULL_ARGUMENT | authorizationGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsByParentGenusType | ||
Description |
Gets an | ||
Parameters | osid.type.Type | authorizationGenusType | an authorization genus type |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | NULL_ARGUMENT | authorizationGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsByRecordType | ||
Description |
Gets an | ||
Parameters | osid.type.Type | authorizationRecordType | an authorization record type |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | NULL_ARGUMENT | authorizationRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsOnDate | ||
Description |
Gets an In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. | ||
Parameters | osid.calendaring.DateTime | from | starting date |
osid.calendaring.DateTime | to | ending date | |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsForResource | ||
Description |
Gets a list of | ||
Parameters | osid.id.Id | resourceId | a resource Id |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | NULL_ARGUMENT | resourceId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsForResourceOnDate | ||
Description |
Gets an In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | resourceId, from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsForAgent | ||
Description |
Gets a list of | ||
Parameters | osid.id.Id | agentId | an agent Id |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | NULL_ARGUMENT | agentId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsForAgentOnDate | ||
Description |
Gets an In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. | ||
Parameters | osid.id.Id | agentId | an agent Id |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | agentId, from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsForFunction | ||
Description |
Gets a list of | ||
Parameters | osid.id.Id | functionId | a function Id |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | NULL_ARGUMENT | functionId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsForFunctionOnDate | ||
Description |
Gets an In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. | ||
Parameters | osid.id.Id | functionId | a function Id |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | functionId, from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsForResourceAndFunction | ||
Description |
Gets a list of | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.id.Id | functionId | a function Id | |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | NULL_ARGUMENT | resourceId or functionId is null
| |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsForResourceAndFunctionOnDate | ||
Description |
Gets an In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.id.Id | functionId | a function Id | |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | resourceId, functionId, from or to is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsForAgentAndFunction | ||
Description |
Gets a list of | ||
Parameters | osid.id.Id | agentId | an agent Id |
osid.id.Id | functionId | a function Id | |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | NULL_ARGUMENT | agentId or functionId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsForAgentAndFunctionOnDate | ||
Description |
Gets an In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. | ||
Parameters | osid.id.Id | agentId | an agent Id |
osid.id.Id | functionId | a function Id | |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | agentId, functionId, from or to is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAuthorizationsByQualifier | ||
Description |
Gets a list of | ||
Parameters | osid.id.Id | qualifierId | a qualifier Id |
Return | osid.authorization.AuthorizationList | the returned Authorization list | |
Errors | NULL_ARGUMENT | qualifierId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getExplicitAuthorization | ||
Description |
Gets the explicit | ||
Parameters | osid.id.Id | authorizationId | an authorization |
Return | osid.authorization.Authorization | the explicit Authorization | |
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 | getAuthorizations | ||
Description |
Geta all | ||
Return | osid.authorization.AuthorizationList | a list of Authorizations | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |