OSID Logo
OSID Specifications
profile package
Version 3.0.0
Interfaceosid.profile.ProfileItemQuery
Implementsosid.OsidObjectQuery
Used Byosid.profile.ProfileEntryQuery
osid.profile.ProfileEntrySmartProfileSession
osid.profile.ProfileItemQuerySession
osid.profile.ProfileItemSearchSession
osid.profile.ProfileItemSmartProfileSession
osid.profile.ProfileQuery
Description

This is the query for searching profile items. Each method match request produces an AND term while multiple invocations of a method produces a nested OR .

MethodmatchProfileEntryId
Description

Sets the pofile entry Id for this query.

Parametersosid.id.IdprofileEntryIda profile entry Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTprofileEntryId 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 an ProfileEntryQuery is available.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsProfileEntryQuery() is false
ComplianceoptionalThis method must be implemented if supportsProfileEntryQuery() is true .
MethodmatchAnyProfileEntry
Description

Matches profile items that have any profile entry mapping.

Parametersbooleanmatchtrue to match items with any entry mapping, false to match items with no entry mapping
CompliancemandatoryThis method must be implemented.
MethodclearProfileEntryTerms
Description

Clears the profile entry query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchProfileId
Description

Sets the profile Id for this query.

Parametersosid.id.IdprofileIda profile Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTprofileId is null
CompliancemandatoryThis method must be implemented.
MethodclearProfileIdTerms
Description

Clears the profile Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsProfileQuery
Description

Tests if a ProfileQuery is available.

Returnbooleantrue if a profile query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProfileQuery
Description

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

Returnosid.profile.ProfileQuerythe profile query
ErrorsUNIMPLEMENTEDsupportsProfileQuery() is false
ComplianceoptionalThis method must be implemented if supportsProfileQuery() is true .
MethodclearProfileTerms
Description

Clears the profile entry query terms.

CompliancemandatoryThis method must be implemented.
MethodgetProfileItemQueryRecord
Description

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

Parametersosid.type.TypeprofileItemRecordTypea profile item record type
Returnosid.profile.records.ProfileItemQueryRecordthe profile item query record
ErrorsNULL_ARGUMENTprofileItemRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(profileItemRecordType) is false
CompliancemandatoryThis method must be implemented.