OSID Logo
OSID Specifications
authentication keys package
Version 3.1.0
Interfaceosid.authentication.keys.KeyQuery
Implementsosid.OsidObjectQuery
Used Byosid.authentication.keys.KeyQuerySession
osid.authentication.keys.KeySearchSession
osid.authentication.keys.KeySmartAgencySession
Description

This is the query for searching keys. Each method specifies an AND term while multiple invocations of the same method produce a nested OR, except for accessing the KeyQuery record.

MethodmatchAgentId
Description

Sets the agent Id for this query.

Parametersosid.id.IdagentId an agent Id
booleanmatch true for a positive match, false for negative match
ErrorsNULL_ARGUMENT agentId is null
Compliancemandatory This method must be implemented.
MethodclearAgentIdTerms
Description

Clears the agent Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAgentQuery
Description

Tests if an AgentQuery is available.

Returnboolean true if an agent query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAgentQuery
Description

Includes an agent query for making relations with Agents. Multiple retrievals return separate query terms nested inside this query term, each which are treated as a boolean OR.

Returnosid.authentication.AgentQuery the agent query
ErrorsUNIMPLEMENTED supportsAgentQuery() is false
Compliancemandatory This method must be implemented.
MethodclearAgentTerms
Description

Clears the agent terms.

Compliancemandatory This method must be implemented.
MethodgetKeyQueryRecord
Description

Gets the key query record corresponding to the given Key record Type.Multiple retrievals produce a nested OR term.

Parametersosid.type.TypekeyRecordType a key record type
Returnosid.authentication.keys.records.KeyQueryRecord the key query record
ErrorsNULL_ARGUMENT keyRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(keyRecordType) is false
Compliancemandatory This method must be implemented.