OSID Logo
OSID Specifications
profile package
Version 3.0.0
Release Candidate Preview
Interfaceosid.profile.ProfileQuery
Implementsosid.OsidCatalogQuery
Description

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

MethodmatchProfileItemId
Description

Sets the profile item Id for this query.

Parametersosid.id.IdprofileItemIda profile item Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT profileItemId is null
CompliancemandatoryThis method must be implemented.
MethodclearProfileItemIdTerms
Description

Clears the profile item Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsProfileItemQuery
Description

Tests if a ProfileItemQuery is available.

Returnboolean true if a profile item query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProfileItemQuery
Description

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

Returnosid.profile.ProfileItemQuerythe profile item query
ErrorsUNIMPLEMENTED supportsProfileItemQuery() is false
ComplianceoptionalThis method must be implemented if supportsProfileItemQuery() is true.
MethodmatchAnyProfileItem
Description

Matches profiles that have any profile item.

Parametersbooleanmatch true to match profiles with any item mapping, false to match profiles with no item mapping
CompliancemandatoryThis method must be implemented.
MethodclearProfileItemTerms
Description

Clears the profile item query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchProfileEntryId
Description

Sets the profile entry Id for this query.

Parametersosid.id.IdprofileEntryIda profile entry Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT profileEntryId is null
CompliancemandatoryThis method must be implemented.
MethodclearProfileEntryIdTerms
Description

Clears the profile entry Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsProfileEntryQuery
Description

Tests if a ProfileEntryQuery is available.

Returnboolean true if a profile entry query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProfileEntryQuery
Description

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

Returnosid.profile.ProfileEntryQuerythe profile entry query
ErrorsUNIMPLEMENTED supportsProfileEntryQuery() is false
ComplianceoptionalThis method must be implemented if supportsProfileEntryQuery() is true.
MethodmatchAnyProfileEntry
Description

Matches profiles that have any profile entry.

Parametersbooleanmatch true to match profiles with any entry mapping, false to match profiles with no entry mapping
CompliancemandatoryThis method must be implemented.
MethodclearProfileEntryTerms
Description

Clears the profile entry query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorProfileId
Description

Sets the profile Id for this query to match profiles that have the specified profile as an ancestor.

Parametersosid.id.IdprofileIda profile Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT profileId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorProfileIdTerms
Description

Clears the ancestor profile Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorProfileQuery
Description

Tests if a ProfileQuery is available.

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

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

Returnosid.profile.ProfileQuerythe profile query
ErrorsUNIMPLEMENTED supportsAncestorProfileQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorProfileQuery() is true.
MethodmatchAnyAncestorProfile
Description

Matches profiles with any ancestor.

Parametersbooleanmatch true to match profile with any ancestor, false to match root profiles
CompliancemandatoryThis method must be implemented.
MethodclearAncestorProfileTerms
Description

Clears the ancestor profile query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantProfileId
Description

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

Parametersosid.id.IdprofileIda profile Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT profileId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantProfileIdTerms
Description

Clears the descendant profile Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantProfileQuery
Description

Tests if a ProfileQuery is available.

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

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

Returnosid.profile.ProfileQuerythe profile query
ErrorsUNIMPLEMENTED supportsDescendantProfileQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantProfileQuery() is true.
MethodmatchAnyDescendantProfile
Description

Matches profiles with any descendant.

Parametersbooleanmatch true to match profile with any descendant, false to match leaf profiles
CompliancemandatoryThis method must be implemented.
MethodclearDescendantProfileTerms
Description

Clears the descendant profile query terms.

CompliancemandatoryThis method must be implemented.
MethodgetProfileQueryRecord
Description

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

Parametersosid.type.TypeprofileRecordTypea profile record type
Returnosid.profile.records.ProfileQueryRecordthe profile query record
ErrorsNULL_ARGUMENT profileRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(profileRecordType) is false
CompliancemandatoryThis method must be implemented.