Interface ProgramQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, Suppliable
This is the query for searching programs. Each method match specifies
an AND term while multiple invocations of the same method produce
a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the requisiteIdterms.voidClears the completion requirements info terms.voidClears the requisite terms.voidClears the course catalogIdterms.voidClears the course catalog terms.voidClears the credentialIdterms.voidClears the credential terms.voidClears the learning objectiveIdterms.voidClears the learning objective terms.voidClears the number terms.voidClears the parent programIdterms.voidClears the parent program terms.voidClears the sponsorIdterms.voidClears the sponsor terms.voidClears the target audienceIdterms.voidClears the target audience terms.voidClears the title terms.Gets the query for a requisite.Gets the query for a course catalog.Gets the query for a credential.Gets the query for a learning objective.Gets the query for a parent program.getProgramQueryRecord(Type programRecordType) Gets the program query record corresponding to the givenProgramrecordType.Multiple record retrievals produce a nestedORterm.Gets the query for a sponsor.Gets the query for a target audience.voidmatchAnyCompletionRequirements(boolean match) Matches programs that have any completion requirement requisite.voidmatchAnyCompletionRequirementsInfo(boolean match) Matches a program that has any completion requirements information assigned.voidmatchAnyCredential(boolean match) Matches programs that have any credentials.voidmatchAnyLearningObjective(boolean match) Matches programs that have any learning objective.voidmatchAnyNumber(boolean match) Matches a programs number that has any value.voidmatchAnyParentProgram(boolean match) Matches programs that have any parent.voidmatchAnySponsor(boolean match) Matches programs that have any sponsor.voidmatchAnyTargetAudience(boolean match) Matches programs that have any target audience.voidmatchAnyTitle(boolean match) Matches a title that has any value.voidmatchCompletionRequirementsId(Id ruleId, boolean match) Sets the requisiteIdfor this query.voidmatchCompletionRequirementsInfo(String requirementsInfo, Type stringMatchType, boolean match) Matches programs with the prerequisites informational string.voidmatchCourseCatalogId(Id courseCatalogId, boolean match) Sets the course catalogIdfor this query to match programs assigned to course catalogs.voidmatchCredentialId(Id credentialId, boolean match) Sets the credentialIdfor this query.voidmatchLearningObjectiveId(Id objectiveId, boolean match) Sets the objectiveIdfor this query.voidmatchNumber(String number, Type stringMatchType, boolean match) Adds a programs number for this query.voidmatchParentProgramId(Id ruleId, boolean match) Sets the parent programIdfor this query.voidmatchSponsorId(Id resourceId, boolean match) Sets the resourceIdfor this query to match programs that have a sponsor.voidmatchTargetAudienceId(Id resourceId, boolean match) Sets the resourceIdfor this query to match programs that have a target audience.voidmatchTitle(String title, Type stringMatchType, boolean match) Adds a title for this query.booleanTests if aRequisiteQueryis available.booleanTests if aCourseCatalogQueryis available.booleanTests if aCredentialQueryis available.booleanTests if anObjectiveQueryis available.booleanTests if aProgramQueryis available.booleanTests if aResourceQueryis available.booleanTests if aResourceQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeModifier and TypeMethodDescriptionvoidClears all recordTypeterms.voidmatchAnyRecord(boolean match) Matches an object that has any record.voidmatchRecordType(Type recordType, boolean match) Sets aTypefor querying objects having records implementing a given record type.Methods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdModifier and TypeMethodDescriptionvoidClears allIdterms.voidAdds anIdto match.Methods inherited from interface OsidObjectQuery
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryModifier and TypeMethodDescriptionvoidClears all commentIdterms.voidClears all comment terms.voidClears all creditIdterms.voidClears all credit terms.voidClears all description terms.voidClears all display name terms.voidClears all genus type terms.voidClears all journal entryIdterms.voidClears all journal entry terms.voidClears all genus type terms.voidClears all relationshipIdterms.voidClears all relationshipIdterms.voidClears all relationship terms.voidClears all stateIdterms.voidClears all state terms.voidClears all statistic terms.voidClears all subjectIdterms.voidClears all subject relevancy terms.voidClears all subject terms.Gets the query for a comment.Gets the query for an ackowledgement credit.Gets the query for a journal entry.Gets the query for relationship.Gets the query for a state.Gets the query for a statistic.Gets the query for a subject.Gets the query for a subject relevancy.voidmatchAnyComment(boolean match) Matches an object that has anyCommentin the givenBook.voidmatchAnyCredit(boolean match) Matches an object that has anyCredit.voidmatchAnyDescription(boolean match) Matches a description that has any value.voidmatchAnyDisplayName(boolean match) Matches any object with a display name.voidmatchAnyGenusType(boolean match) Matches an object that has any genus type.voidmatchAnyJournalEntry(boolean match) Matches an object that has anyJournalEntryin the givenJournal.voidmatchAnyRelationship(boolean match) Matches an object that has anyRelationship.voidmatchAnyState(boolean match) Matches an object that has any mapping to aStatein the givenProcess.voidmatchAnyStatistic(boolean match) Matches an object that has anyStatistic.voidmatchAnySubject(boolean match) Matches an object that has any relationship to aSubject.voidmatchCommentId(Id commentId, boolean match) Matches an object that has the given comment.voidmatchCreditId(Id creditId, boolean match) Matches an object that has the given credit.voidmatchDescription(String description, Type stringMatchType, boolean match) Adds a description name to match.voidmatchDisplayName(String displayName, Type stringMatchType, boolean match) Adds a display name to match.voidmatchGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchJournalEntryId(Id journalEntryId, boolean match) Matches an object that has the given journal entry.voidmatchParentGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchRelationshipId(Id relationshipId, boolean match) Matches an object that has the given relationship.voidmatchRelationshipPeerId(Id peerId, boolean match) Matches an object that has a relationship to the given peerId.voidmatchStateId(Id stateId, boolean match) Matches an object mapped to the given state.voidmatchSubjectId(Id subjectId, boolean match) Matches an object with a relationship to the given subject.booleanTests if aCommentQueryis available.booleanTests if aCreditQueryis available to provide queries of related acknowledgements.booleanTests if aJournalEntryis available to provide queries of journaledOsidObjects.booleanTests if aRelationshipQueryis available.booleanTests if aStateQueryis available to provide queries of processed objects.booleanTests if aStatisticQueryis available to provide statistical queries.booleanTests if aSubjectQueryis available.booleanTests if aRelevancyQueryis available to provide queries about the relationships toSubjects.Methods inherited from interface OsidOperableQuery
clearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperationalModifier and TypeMethodDescriptionvoidClears the active query terms.voidClears the administratively disabled query terms.voidClears the administratively enabled query terms.voidClears the operational query terms.voidmatchActive(boolean match) Matches active.voidmatchDisabled(boolean match) Matches administratively disabled.voidmatchEnabled(boolean match) Matches administratively enabled.voidmatchOperational(boolean match) Matches operational operables.Methods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeModifier and TypeMethodDescriptionvoidClears the match any terms.voidClears all keyword terms.Gets the string matching types supported.voidmatchAny(boolean match) Matches any object.voidmatchKeyword(String keyword, Type stringMatchType, boolean match) Adds a keyword to match.booleansupportsStringMatchType(Type stringMatchType) Tests if the given string matching type is supported.
-
Method Details
-
matchTitle
Adds a title for this query.- Parameters:
title- title string to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-titlenot ofstringMatchTypeNullArgumentException-titleorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyTitle
void matchAnyTitle(boolean match) Matches a title that has any value.- Parameters:
match-trueto match programs with any title,falseto match programs with no title- Compliance:
mandatory- This method must be implemented.
-
clearTitleTerms
void clearTitleTerms()Clears the title terms.- Compliance:
mandatory- This method must be implemented.
-
matchNumber
Adds a programs number for this query.- Parameters:
number- programs number string to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-numbernot ofstringMatchTypeNullArgumentException-numberorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyNumber
void matchAnyNumber(boolean match) Matches a programs number that has any value.- Parameters:
match-trueto match programs with any number,falseto match programs with no title- Compliance:
mandatory- This method must be implemented.
-
clearNumberTerms
void clearNumberTerms()Clears the number terms.- Compliance:
mandatory- This method must be implemented.
-
matchSponsorId
Sets the resourceIdfor this query to match programs that have a sponsor.- Parameters:
resourceId- a resourceIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSponsorIdTerms
void clearSponsorIdTerms()Clears the sponsorIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsSponsorQuery
boolean supportsSponsorQuery()Tests if aResourceQueryis available.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSponsorQuery
ResourceQuery getSponsorQuery()Gets the query for a sponsor. Multiple retrievals produce a nestedORterm.- Returns:
- a resource query
- Throws:
UnimplementedException-supportsSponsorQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSponsorQuery()} is {@code true} .
-
matchAnySponsor
void matchAnySponsor(boolean match) Matches programs that have any sponsor.- Parameters:
match-trueto match programs with any sponsor,falseto match programs with no sponsors- Compliance:
mandatory- This method must be implemented.
-
clearSponsorTerms
void clearSponsorTerms()Clears the sponsor terms.- Compliance:
mandatory- This method must be implemented.
-
matchParentProgramId
Sets the parent programIdfor this query.- Parameters:
ruleId- a ruleIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-ruleIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearParentProgramIdTerms
void clearParentProgramIdTerms()Clears the parent programIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsParentProgramQuery
boolean supportsParentProgramQuery()Tests if aProgramQueryis available.- Returns:
trueif a program query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getParentProgramQuery
ProgramQuery getParentProgramQuery()Gets the query for a parent program. Multiple retrievals produce a nestedORterm.- Returns:
- a parent program query
- Throws:
UnimplementedException-supportsParentProgramQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsParentProgramQuery()} is {@code true} .
-
matchAnyParentProgram
void matchAnyParentProgram(boolean match) Matches programs that have any parent.- Parameters:
match-trueto match programs with parent,falseto match programs with no parent- Compliance:
mandatory- This method must be implemented.
-
clearParentProgramTerms
void clearParentProgramTerms()Clears the parent program terms.- Compliance:
mandatory- This method must be implemented.
-
matchLearningObjectiveId
Sets the objectiveIdfor this query.- Parameters:
objectiveId- an objectiveIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-objectiveIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearLearningObjectiveIdTerms
void clearLearningObjectiveIdTerms()Clears the learning objectiveIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsLearningObjectiveQuery
boolean supportsLearningObjectiveQuery()Tests if anObjectiveQueryis available.- Returns:
trueif an objective query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLearningObjectiveQuery
ObjectiveQuery getLearningObjectiveQuery()Gets the query for a learning objective. Multiple retrievals produce a nestedORterm.- Returns:
- a learning objective query
- Throws:
UnimplementedException-supportsLearningObjectiveQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLearningObjectiveQuery()} is {@code true} .
-
matchAnyLearningObjective
void matchAnyLearningObjective(boolean match) Matches programs that have any learning objective.- Parameters:
match-trueto match programs with any learning objective,falseto match programs with no learning objectives- Compliance:
mandatory- This method must be implemented.
-
clearLearningObjectiveTerms
void clearLearningObjectiveTerms()Clears the learning objective terms.- Compliance:
mandatory- This method must be implemented.
-
matchTargetAudienceId
Sets the resourceIdfor this query to match programs that have a target audience.- Parameters:
resourceId- a resourceIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearTargetAudienceIdTerms
void clearTargetAudienceIdTerms()Clears the target audienceIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsTargetAudienceQuery
boolean supportsTargetAudienceQuery()Tests if aResourceQueryis available.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTargetAudienceQuery
ResourceQuery getTargetAudienceQuery()Gets the query for a target audience. Multiple retrievals produce a nestedORterm.- Returns:
- a resource query
- Throws:
UnimplementedException-supportsTargetAudienceQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsTargetAudienceQuery()} is {@code true} .
-
matchAnyTargetAudience
void matchAnyTargetAudience(boolean match) Matches programs that have any target audience.- Parameters:
match-trueto match programs with any target audience,falseto match programs with no target audiences- Compliance:
mandatory- This method must be implemented.
-
clearTargetAudienceTerms
void clearTargetAudienceTerms()Clears the target audience terms.- Compliance:
mandatory- This method must be implemented.
-
matchCompletionRequirementsInfo
Matches programs with the prerequisites informational string.- Parameters:
requirementsInfo- completion requirements string to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-requirementsInfonot ofstringMatchTypeNullArgumentException-requirementsInfoorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyCompletionRequirementsInfo
void matchAnyCompletionRequirementsInfo(boolean match) Matches a program that has any completion requirements information assigned.- Parameters:
match-trueto match programs with any completion requirements information,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
clearCompletionRequirementsInfoTerms
void clearCompletionRequirementsInfoTerms()Clears the completion requirements info terms.- Compliance:
mandatory- This method must be implemented.
-
matchCompletionRequirementsId
Sets the requisiteIdfor this query.- Parameters:
ruleId- a ruleIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-ruleIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCompletionRequirementsIdTerms
void clearCompletionRequirementsIdTerms()Clears the requisiteIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsCompletionRequirementsQuery
boolean supportsCompletionRequirementsQuery()Tests if aRequisiteQueryis available.- Returns:
trueif a requisite query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCompletionRequirementsQuery
RequisiteQuery getCompletionRequirementsQuery()Gets the query for a requisite. Multiple retrievals produce a nestedORterm.- Returns:
- a requisite query
- Throws:
UnimplementedException-supportsCompletionRequirementsQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompletionRequirementsQuery()} is {@code true} .
-
matchAnyCompletionRequirements
void matchAnyCompletionRequirements(boolean match) Matches programs that have any completion requirement requisite.- Parameters:
match-trueto match programs with any requisite,falseto match programs with no requisites- Compliance:
mandatory- This method must be implemented.
-
clearCompletionRequirementsTerms
void clearCompletionRequirementsTerms()Clears the requisite terms.- Compliance:
mandatory- This method must be implemented.
-
matchCredentialId
Sets the credentialIdfor this query.- Parameters:
credentialId- a credentialIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-credentialIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCredentialIdTerms
void clearCredentialIdTerms()Clears the credentialIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsCredentialQuery
boolean supportsCredentialQuery()Tests if aCredentialQueryis available.- Returns:
trueif a credential query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCredentialQuery
CredentialQuery getCredentialQuery()Gets the query for a credential. Multiple retrievals produce a nestedORterm.- Returns:
- a credential query
- Throws:
UnimplementedException-supportsCredentialQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCredentialQuery()} is {@code true} .
-
matchAnyCredential
void matchAnyCredential(boolean match) Matches programs that have any credentials.- Parameters:
match-trueto match programs with any credentials,falseto match programs with no credentials- Compliance:
mandatory- This method must be implemented.
-
clearCredentialTerms
void clearCredentialTerms()Clears the credential terms.- Compliance:
mandatory- This method must be implemented.
-
matchCourseCatalogId
Sets the course catalogIdfor this query to match programs assigned to course catalogs.- Parameters:
courseCatalogId- the course catalogIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-courseCatalogIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCourseCatalogIdTerms
void clearCourseCatalogIdTerms()Clears the course catalogIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsCourseCatalogQuery
boolean supportsCourseCatalogQuery()Tests if aCourseCatalogQueryis available.- Returns:
trueif a course catalog query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCourseCatalogQuery
CourseCatalogQuery getCourseCatalogQuery()Gets the query for a course catalog. Multiple retrievals produce a nestedORterm.- Returns:
- the course catalog query
- Throws:
UnimplementedException-supportsCourseCatalogQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCourseCatalogQuery()} is {@code true} .
-
clearCourseCatalogTerms
void clearCourseCatalogTerms()Clears the course catalog terms.- Compliance:
mandatory- This method must be implemented.
-
getProgramQueryRecord
Gets the program query record corresponding to the givenProgramrecordType.Multiple record retrievals produce a nestedORterm.- Parameters:
programRecordType- a programs record type- Returns:
- the program query record
- Throws:
NullArgumentException-programRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(programRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-