OSID Logo
OSID Specifications
authentication package
Version 3.1.0
Interfaceosid.authentication.AgencyQuery
Implementsosid.OsidCatalogQuery
Used Byosid.authentication.AgencyQuerySession
osid.authentication.AgencySearchSession
osid.authentication.AgentQuery
Description

This is the query for searching agencies. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

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

Gets the query for an agent. Multiple retrievals produce a nested OR term.

Returnosid.authentication.AgentQuery the agent query
ErrorsUNIMPLEMENTED supportsAgentQuery() is false
Complianceoptional This method must be implemented if supportsAgentQuery() is true.
MethodmatchAnyAgent
Description

Matches agencies with any agent.

Parametersbooleanmatch true to match agencies with any agent. false to match agencies with no agents
Compliancemandatory This method must be implemented.
MethodclearAgentTerms
Description

Clears the agent terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorAgencyId
Description

Sets the agency Id for this query to match agencies that have the specified agency as an ancestor.

Parametersosid.id.IdagencyId an agency Id
booleanmatch true for a positive match, false for negative match
ErrorsNULL_ARGUMENT agencyId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorAgencyIdTerms
Description

Clears the ancestor agency Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorAgencyQuery
Description

Tests if an AgencyQuery is available.

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

Gets the query for an agency. Multiple retrievals produce a nested OR term.

Returnosid.authentication.AgentQuery the agency query
ErrorsUNIMPLEMENTED supportsAncestorAgencyQuery() is false
Complianceoptional This method must be implemented if supportsAncestorAgencyQuery() is true.
MethodmatchAnyAncestorAgency
Description

Matches agencies with any ancestor.

Parametersbooleanmatch true to match agencies with any ancestor, false to match root agencies
Compliancemandatory This method must be implemented.
MethodclearAncestorAgencyTerms
Description

Clears the ancestor agency terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantAgencyId
Description

Sets the agency Id for this query to match agencies that have the specified agency as an descendant.

Parametersosid.id.IdagencyId an agency Id
booleanmatch true for a positive match, false for negative match
ErrorsNULL_ARGUMENT agencyId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantAgencyIdTerms
Description

Clears the descendant agency Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantAgencyQuery
Description

Tests if an AgencyQuery is available.

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

Gets the query for an agency. Multiple retrievals produce a nested OR term.

Returnosid.authentication.AgentQuery the agency query
ErrorsUNIMPLEMENTED supportsDescendantAgencyQuery() is false
Complianceoptional This method must be implemented if supportsDescendantAgencyQuery() is true.
MethodmatchAnyDescendantAgency
Description

Matches agencies with any descendant.

Parametersbooleanmatch true to match agencies with any descendant, false to match leaf agencies
Compliancemandatory This method must be implemented.
MethodclearDescendantAgencyTerms
Description

Clears the descendant agency terms.

Compliancemandatory This method must be implemented.
MethodgetAgencyQueryRecord
Description

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

Parametersosid.type.TypeagencyRecordType an agency record type
Returnosid.authentication.records.AgencyQueryRecord the agency query record
ErrorsNULL_ARGUMENT agencyRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(agencyRecordType) is false
Compliancemandatory This method must be implemented.