OSID Logo
OSID Specifications
authorization package
Version 3.0.0
Release Candidate Preview
Interfaceosid.authorization.AuthorizationQuerySession
Implementsosid.OsidSession
Description

This session provides methods for searching Authorization objects. The search query is constructed using the AuthorizationQuery.

This session defines views that offer differing behaviors for searching.

  • federated view: searches include authorizations in Vaults of which this vault is a ancestor in the vault hierarchy
  • isolated view: searches are restricted to authorizations in this Vault
  • implicit authorization view: authorizations include implicit authorizations
  • explicit authorization view: only explicit authorizations are returned
MethodgetVaultId
Description

Gets the Vault Id associated with this session.

Returnosid.id.Idthe Vault Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetVault
Description

Gets the Vault associated with this session.

Returnosid.authorization.Vaultthe Vault associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSearchAuthorizations
Description

Tests if this user can perform authorization searches. 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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer search operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedVaultView
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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedVaultView
Description

Isolates the view for methods in this session. An isolated view restricts searches to this vault only.

CompliancemandatoryThis method is must be implemented.
MethoduseImplicitAuthorizationView
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 Qualifier, Function or Resource hierarchies. This method is the opposite of explicitAut

CompliancemandatoryThis method is must be implemented.
MethoduseExplicitAuthorizationView
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 implicitAuthorizationView().

CompliancemandatoryThis method is must be implemented.
MethodgetAuthorizationQuery
Description

Gets an authorization query.

Returnosid.authorization.AuthorizationQuerythe authorization query
CompliancemandatoryThis method must be implemented.
MethodgetAuthorizationsByQuery
Description

Gets a list of Authorizations matching the given query.

Parametersosid.authorization.AuthorizationQueryauthorizationQuerythe authorization query
Returnosid.authorization.AuthorizationListthe returned AuthorizationList
ErrorsNULL_ARGUMENT authorizationQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED authorizationQuery is not of this service
CompliancemandatoryThis method must be implemented.