OSID Logo
OSID Specifications
authentication package
Version 3.1.0
Interfaceosid.authentication.AgentSmartAgencySession
Implementsosid.OsidSession
Used Byosid.authentication.AuthenticationManager
osid.authentication.AuthenticationProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. An AgentQuery can be retrieved from this session and mapped to this Agency to create a virtual collection of Agents. The agents may be sequenced using the AgentSearchOrder from this session.

This Agency has a default query that matches any agent and a default search order that specifies no sequencing. The queries may be examined using an AgentQueryInspector. The query may be modified by converting the inspector back to an AgentQuery.

MethodgetAgencyId
Description

Gets the Agency Id associated with this session.

Returnosid.id.Id the Agency Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetAgency
Description

Gets the Agency associated with this session.

Returnosid.authentication.Agency the Agency associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartAgencies
Description

Tests if this user can manage smart agencies. A return of true does not guarantee successful authorization. A return of false indicates that it is known 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 operations to unauthorized users.

Returnboolean false if smart agency management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetAgentQuery
Description

Gets an agent query.

Returnosid.authentication.AgentQuery the agent query
Compliancemandatory This method must be implemented.
MethodgetAgentSearchOrder
Description

Gets an agent search order.

Returnosid.authentication.AgentSearchOrder the agent search order
Compliancemandatory This method must be implemented.
MethodapplyAgentQuery
Description

Applies an agent query to this agency.

Parametersosid.authentication.AgentQueryagentQuery the agent query
ErrorsNULL_ARGUMENT agentQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED agentQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectAgentQuery
Description

Gets an agent query inspector for this agency.

Returnosid.authentication.AgentQueryInspector the agent query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyAgentSequencing
Description

Applies an agent search order to this agency.

Parametersosid.authentication.AgentSearchOrderagentSearchOrder the agent search order
ErrorsNULL_ARGUMENT agentSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED agentSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetAgentQueryFromInspector
Description

Gets an agent query from an inspector.

Parametersosid.authentication.AgentQueryInspectoragentQueryInspector a query inspector
Returnosid.authentication.AgentQuery the agent query
ErrorsNULL_ARGUMENT agentQueryInspector is null
UNSUPPORTED agentQueryInspector is not of this service
Compliancemandatory This method must be implemented.