OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Release Candidate Preview
Interfaceosid.personnel.OrganizationQuery
Implementsosid.OsidObjectQuery
osid.OsidFederateableQuery
osid.OsidTemporalQuery
Description

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

MethodmatchDisplayLabel
Description

Matches a display label.

Parametersstringlabela display label
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT label is not of stringMatchType
NULL_ARGUMENT label or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDisplayLabel
Description

Matches organizations with any display label.

Parametersbooleanmatch true to match organizations with any display label, false to match organizations with no display label
CompliancemandatoryThis method must be implemented.
MethodclearDisplayLabelTerms
Description

Clears all display label terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorOrganizationId
Description

Sets the organization Id for this query to match organizations that have the specified organization as an ancestor.

Parametersosid.id.IdorganizationIdan organization Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT organizationId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorOrganizationIdTerms
Description

Clears the ancestor organization Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorOrganizationQuery
Description

Tests if an OrganizationQuery is available.

Returnboolean true if an organization query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAncestorOrganizationQuery
Description

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

Returnosid.personnel.OrganizationQuerythe organization query
ErrorsUNIMPLEMENTED supportsAncestorOrganizationQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorOrganizationQuery() is true.
MethodmatchAnyAncestorOrganization
Description

Matches agencies with any organization ancestor.

Parametersbooleanmatch true to match organizations with any ancestor, false to match root organizations
CompliancemandatoryThis method must be implemented.
MethodclearAncestorOrganizationTerms
Description

Clears the ancestor organization query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantOrganizationId
Description

Sets the organization Id for this query to match organizations that have the specified organization as a descendant.

Parametersosid.id.IdorganizationIdan organization Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT organizationId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantOrganizationIdTerms
Description

Clears the descendant organization Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantOrganizationQuery
Description

Tests if an OrganizationQuery is available.

Returnboolean true if an organization query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDescendantOrganizationQuery
Description

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

Returnosid.personnel.OrganizationQuerythe organization query
ErrorsUNIMPLEMENTED supportsDescendantOrganizationQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantOrganizationQuery() is true.
MethodmatchAnyDescendantOrganization
Description

Matches organizations with any organization descendant.

Parametersbooleanmatch true to match organizations with any descendant, false to match leaf organizations
CompliancemandatoryThis method must be implemented.
MethodclearDescendantOrganizationTerms
Description

Clears the descendant organization query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRealmId
Description

Sets the realm Id for this query to match organizations assigned to realms.

Parametersosid.id.IdrealmIda realm Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT realmId is null
CompliancemandatoryThis method must be implemented.
MethodclearRealmIdTerms
Description

Clears all realm Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRealmQuery
Description

Tests if a RealmQuery is available.

Returnboolean true if a realm query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRealmQuery
Description

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

Returnosid.personnel.RealmQuerythe realm query
ErrorsUNIMPLEMENTED supportsRealmQuery() is false
ComplianceoptionalThis method must be implemented if supportsRealmQuery() is true.
MethodclearRealmTerms
Description

Clears all realm terms.

CompliancemandatoryThis method must be implemented.
MethodgetOrganizationQueryRecord
Description

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

Parametersosid.type.TypeorganizationRecordTypean organization record type
Returnosid.personnel.records.OrganizationQueryRecordthe organization query record
ErrorsNULL_ARGUMENT organizationRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(organizationRecordType) is false
CompliancemandatoryThis method must be implemented.