Interface CourseCatalogQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidCatalogQuery, OsidExtensibleQuery, OsidFederateableQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSourceableQuery, Suppliable
This is the query for searching course catalogs. Each method match
specifies an AND term while multiple invocations of the same
method produce a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the activityIdquery terms.voidClears the activity query terms.voidClears the activity unitIdquery terms.voidClears the activity unit query terms.voidClears the ancestor course catalogIdquery terms.voidClears the ancestor course catalog query terms.voidClears the courseIdquery terms.voidClears the course offeringIdquery terms.voidClears the course offering query terms.voidClears the course query terms.voidClears the descendant course catalogIdquery terms.voidClears the descendant course catalog query terms.voidClears the termIdquery terms.voidClears the term query terms.Gets the query for an activity.Gets the query for an activity unit.Gets the query for a course catalog.getCourseCatalogQueryRecord(Type courseCatalogRecordType) Gets the course catalog query record corresponding to the givenCourseCatalogrecordType.Gets the query for a course offering.Gets the query for a course.Gets the query for a course catalog.Gets the query for a term Multiple retrievals produce a nestedORterm.voidmatchActivityId(Id activityUnitId, boolean match) Sets the activityIdfor this query.voidmatchActivityUnitId(Id activityUnitId, boolean match) Sets the activity unitIdfor this query.voidmatchAncestorCourseCatalogId(Id courseCatalogId, boolean match) Sets the course catalogIdfor this query to match course catalogs that have the specified course catalog as an ancestor.voidmatchAnyActivity(boolean match) Matches course catalogs that have any activity.voidmatchAnyActivityUnit(boolean match) Matches course catalogs that have any activity unit.voidmatchAnyAncestorCourseCatalog(boolean match) Matches course catalogs with any course catalog ancestor.voidmatchAnyCourse(boolean match) Matches course catalogs that have any course.voidmatchAnyCourseOffering(boolean match) Matches course catalogs that have any course offering.voidmatchAnyDescendantCourseCatalog(boolean match) Matches course catalogs with any descendant course catalog.voidmatchAnyTerm(boolean match) Matches course catalogs that have any term.voidmatchCourseId(Id courseId, boolean match) Sets the courseIdfor this query to match courses that have a related course.voidmatchCourseOfferingId(Id courseOfferingId, boolean match) Sets the catalogIdfor this query.voidmatchDescendantCourseCatalogId(Id courseCatalogId, boolean match) Sets the course catalogIdfor this query to match course catalogs that have the specified course catalog as a descendant.voidmatchTermId(Id termId, boolean match) Sets the termIdfor this query to match catalogs containing terms.booleanTests if anActivityQueryis available.booleanTests if anActivityUnitQueryis available.booleanTests if aCourseCatalogQueryis available.booleanTests if aCourseOfferingQueryis available.booleanTests if aCourseQueryis available.booleanTests if aCourseCatalogQueryis available.booleanTests if aTermQueryis 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 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.Methods inherited from interface OsidSourceableQuery
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQueryModifier and TypeMethodDescriptionvoidClears all assetIdterms.voidClears all branding terms.voidClears all license terms.voidClears all providerIdterms.voidClears all provider terms.getBrandingQuery(boolean match) Gets the query for an asset.getProviderQuery(boolean match) Gets the query for the provider.voidmatchAnyBranding(boolean match) Match sourceables with any branding.voidmatchAnyLicense(boolean match) Matches any object with a license.voidmatchAnyProvider(boolean match) Match sourceables with a provider value.voidmatchBrandingId(Id assetId, boolean match) Match theIdof an asset used for branding.voidmatchLicense(String license, Type stringMatchType, boolean match) Adds a license to match.voidmatchProviderId(Id resourceId, boolean match) Match theIdof the provider resource.booleanTests if anAssetQueryfor the branding is available.booleanTests if aResourceQueryfor the provider is available.
-
Method Details
-
matchCourseId
Sets the courseIdfor this query to match courses that have a related course.- Parameters:
courseId- a courseIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-courseIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCourseIdTerms
void clearCourseIdTerms()Clears the courseIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsCourseQuery
boolean supportsCourseQuery()Tests if aCourseQueryis available.- Returns:
trueif a course query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCourseQuery
CourseQuery getCourseQuery()Gets the query for a course. Multiple retrievals produce a nestedORterm.- Returns:
- the course query
- Throws:
UnimplementedException-supportsCourseQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCourseQuery()} is {@code true} .
-
matchAnyCourse
void matchAnyCourse(boolean match) Matches course catalogs that have any course.- Parameters:
match-trueto match courses with any course,falseto match courses with no course- Compliance:
mandatory- This method must be implemented.
-
clearCourseTerms
void clearCourseTerms()Clears the course query terms.- Compliance:
mandatory- This method must be implemented.
-
matchActivityUnitId
Sets the activity unitIdfor this query.- Parameters:
activityUnitId- an activity unitIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-activityUnitIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearActivityUnitIdTerms
void clearActivityUnitIdTerms()Clears the activity unitIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsActivityUnitQuery
boolean supportsActivityUnitQuery()Tests if anActivityUnitQueryis available.- Returns:
trueif an activity unit query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getActivityUnitQuery
ActivityUnitQuery getActivityUnitQuery()Gets the query for an activity unit. Multiple retrievals produce a nestedORterm.- Returns:
- the activity unit query
- Throws:
UnimplementedException-supportsActivityUnitQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsActivityUnitQuery()} is {@code true} .
-
matchAnyActivityUnit
void matchAnyActivityUnit(boolean match) Matches course catalogs that have any activity unit.- Parameters:
match-trueto match course catalogs with any activity unit,falseto match course catalogs with no activity units- Compliance:
mandatory- This method must be implemented.
-
clearActivityUnitTerms
void clearActivityUnitTerms()Clears the activity unit query terms.- Compliance:
mandatory- This method must be implemented.
-
matchCourseOfferingId
Sets the catalogIdfor this query.- Parameters:
courseOfferingId- a course offeringIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-courseOfferingIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCourseOfferingIdTerms
void clearCourseOfferingIdTerms()Clears the course offeringIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsCourseOfferingQuery
boolean supportsCourseOfferingQuery()Tests if aCourseOfferingQueryis available.- Returns:
trueif a course offering query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCourseOfferingQuery
CourseOfferingQuery getCourseOfferingQuery()Gets the query for a course offering. Multiple retrievals produce a nestedORterm.- Returns:
- the course offering query
- Throws:
UnimplementedException-supportsCourseOfferingQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCourseOfferingQuery()} is {@code true} .
-
matchAnyCourseOffering
void matchAnyCourseOffering(boolean match) Matches course catalogs that have any course offering.- Parameters:
match-trueto match courses with any course offering,falseto match courses with no course offering- Compliance:
mandatory- This method must be implemented.
-
clearCourseOfferingTerms
void clearCourseOfferingTerms()Clears the course offering query terms.- Compliance:
mandatory- This method must be implemented.
-
matchActivityId
Sets the activityIdfor this query.- Parameters:
activityUnitId- an activityIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-activityIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearActivityIdTerms
void clearActivityIdTerms()Clears the activityIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsActivityQuery
boolean supportsActivityQuery()Tests if anActivityQueryis available.- Returns:
trueif an activity query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getActivityQuery
ActivityQuery getActivityQuery()Gets the query for an activity. Multiple retrievals produce a nestedORterm.- Returns:
- the activity query
- Throws:
UnimplementedException-supportsActivityQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsActivityQuery()} is {@code true} .
-
matchAnyActivity
void matchAnyActivity(boolean match) Matches course catalogs that have any activity.- Parameters:
match-trueto match course catalogs with any activity,falseto match course catalogs with no activities- Compliance:
mandatory- This method must be implemented.
-
clearActivityTerms
void clearActivityTerms()Clears the activity query terms.- Compliance:
mandatory- This method must be implemented.
-
matchTermId
Sets the termIdfor this query to match catalogs containing terms.- Parameters:
termId- the termIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-termIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearTermIdTerms
void clearTermIdTerms()Clears the termIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsTermQuery
boolean supportsTermQuery()Tests if aTermQueryis available.- Returns:
trueif a term query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTermQuery
TermQuery getTermQuery()Gets the query for a term Multiple retrievals produce a nestedORterm.- Returns:
- the term query
- Throws:
UnimplementedException-supportsTermQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsTermQuery()} is {@code true} .
-
matchAnyTerm
void matchAnyTerm(boolean match) Matches course catalogs that have any term.- Parameters:
match-trueto match course catalogs with any term,falseto match courses with no term- Compliance:
mandatory- This method must be implemented.
-
clearTermTerms
void clearTermTerms()Clears the term query terms.- Compliance:
mandatory- This method must be implemented.
-
matchAncestorCourseCatalogId
Sets the course catalogIdfor this query to match course catalogs that have the specified course catalog as an ancestor.- Parameters:
courseCatalogId- a course catalogIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-courseCatalogIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAncestorCourseCatalogIdTerms
void clearAncestorCourseCatalogIdTerms()Clears the ancestor course catalogIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsAncestorCourseCatalogQuery
boolean supportsAncestorCourseCatalogQuery()Tests if aCourseCatalogQueryis available.- Returns:
trueif a course catalog query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAncestorCourseCatalogQuery
CourseCatalogQuery getAncestorCourseCatalogQuery()Gets the query for a course catalog. Multiple retrievals produce a nestedORterm.- Returns:
- the course catalog query
- Throws:
UnimplementedException-supportsAncestorCourseCatalogQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAncestorCourseCatalogQuery()} is {@code true} .
-
matchAnyAncestorCourseCatalog
void matchAnyAncestorCourseCatalog(boolean match) Matches course catalogs with any course catalog ancestor.- Parameters:
match-trueto match course catalogs with any ancestor,falseto match root course catalogs- Compliance:
mandatory- This method must be implemented.
-
clearAncestorCourseCatalogTerms
void clearAncestorCourseCatalogTerms()Clears the ancestor course catalog query terms.- Compliance:
mandatory- This method must be implemented.
-
matchDescendantCourseCatalogId
Sets the course catalogIdfor this query to match course catalogs that have the specified course catalog as a descendant.- Parameters:
courseCatalogId- a course catalogIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-courseCatalogIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDescendantCourseCatalogIdTerms
void clearDescendantCourseCatalogIdTerms()Clears the descendant course catalogIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsDescendantCourseCatalogQuery
boolean supportsDescendantCourseCatalogQuery()Tests if aCourseCatalogQueryis available.- Returns:
trueif a course catalog query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDescendantCourseCatalogQuery
CourseCatalogQuery getDescendantCourseCatalogQuery()Gets the query for a course catalog. Multiple retrievals produce a nestedORterm.- Returns:
- the course catalog query
- Throws:
UnimplementedException-supportsDescendantCourseCatalogQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDescendantCourseCatalogQuery()} is {@code true} .
-
matchAnyDescendantCourseCatalog
void matchAnyDescendantCourseCatalog(boolean match) Matches course catalogs with any descendant course catalog.- Parameters:
match-trueto match course catalogs with any descendant,falseto match leaf course catalogs- Compliance:
mandatory- This method must be implemented.
-
clearDescendantCourseCatalogTerms
void clearDescendantCourseCatalogTerms()Clears the descendant course catalog query terms.- Compliance:
mandatory- This method must be implemented.
-
getCourseCatalogQueryRecord
CourseCatalogQueryRecord getCourseCatalogQueryRecord(Type courseCatalogRecordType) throws OperationFailedException Gets the course catalog query record corresponding to the givenCourseCatalogrecordType. Multiple record retrievals produce a nestedORterm.- Parameters:
courseCatalogRecordType- a course catalog record type- Returns:
- the course catalog query record
- Throws:
NullArgumentException-courseCatalogRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(courseCatalogRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-