Interface ActivityQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSubjugateableQuery, Suppliable
This is the query for searching activities. Each method match request
produces an AND term while multiple invocations of a method
produces a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the assessmentIdterms.voidClears the assessment terms.voidClears the assetIdterms.voidClears the asset terms.voidClears the courseIdterms.voidClears the course terms.voidClears the objective bankIdterms.voidClears the objective bank terms.voidClears the objectiveIdterms.voidClears the objective terms.getActivityQueryRecord(Type activityRecordType) Gets the activity query record corresponding to the givenActivityrecordType.Multiple retrievals produce a nestedORterm.Gets the query for an assessment.Gets the query for an asset.Gets the query for a course.Gets the query for an objective bank.Gets the query for an objective.voidmatchAnyAssessment(boolean match) Matches an activity that has any assessment assigned.voidmatchAnyAsset(boolean match) Matches an activity that has any objective assigned.voidmatchAnyCourse(boolean match) Matches an activity that has any course assigned.voidmatchAssessmentId(Id assessmentId, boolean match) Sets the assessmentIdfor this query.voidmatchAssetId(Id assetId, boolean match) Sets the assetIdfor this query.voidmatchCourseId(Id courseId, boolean match) Sets the courseIdfor this query.voidmatchObjectiveBankId(Id objectiveBankId, boolean match) Sets the objective bankIdfor this query.voidmatchObjectiveId(Id objectiveId, boolean match) Sets the objectiveIdfor this query.booleanTests if anAssessmentQueryis available for querying assessments.booleanTests if anAssetQueryis available for querying objectives.booleanTests if aCourseQueryis available for querying courses.booleanTests if aObjectiveBankQueryis available for querying resources.booleanTests if anObjectiveQueryis available for querying objectives.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.
-
Method Details
-
matchObjectiveId
Sets the objectiveIdfor this query.- Parameters:
objectiveId- an objectiveIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-objectiveIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearObjectiveIdTerms
void clearObjectiveIdTerms()Clears the objectiveIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsObjectiveQuery
boolean supportsObjectiveQuery()Tests if anObjectiveQueryis available for querying objectives.- Returns:
trueif an objective query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getObjectiveQuery
ObjectiveQuery getObjectiveQuery()Gets the query for an objective. Multiple retrievals produce a nestedORterm.- Returns:
- the objective query
- Throws:
UnimplementedException-supportsObjectiveQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsObjectiveQuery()} is {@code true} .
-
clearObjectiveTerms
void clearObjectiveTerms()Clears the objective terms.- Compliance:
mandatory- This method must be implemented.
-
matchAssetId
Sets the assetIdfor this query.- Parameters:
assetId- an assetIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-assetIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAssetIdTerms
void clearAssetIdTerms()Clears the assetIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsAssetQuery
boolean supportsAssetQuery()Tests if anAssetQueryis available for querying objectives.- Returns:
trueif an asset query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAssetQuery
AssetQuery getAssetQuery()Gets the query for an asset. Multiple retrievals produce a nestedORterm.- Returns:
- the asset query
- Throws:
UnimplementedException-supportsAssetQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsObjectiveQuery()} is {@code true} .
-
matchAnyAsset
void matchAnyAsset(boolean match) Matches an activity that has any objective assigned.- Parameters:
match-trueto match activities with any asset,falseto match activities with no asset- Compliance:
mandatory- This method must be implemented.
-
clearAssetTerms
void clearAssetTerms()Clears the asset terms.- Compliance:
mandatory- This method must be implemented.
-
matchCourseId
Sets the courseIdfor this query.- Parameters:
courseId- a courseIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-courseIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCourseIdTerms
void clearCourseIdTerms()Clears the courseIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsCourseQuery
boolean supportsCourseQuery()Tests if aCourseQueryis available for querying courses.- 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 an activity that has any course assigned.- Parameters:
match-trueto match activities with any courses,falseto match activities with no courses- Compliance:
mandatory- This method must be implemented.
-
clearCourseTerms
void clearCourseTerms()Clears the course terms.- Compliance:
mandatory- This method must be implemented.
-
matchAssessmentId
Sets the assessmentIdfor this query.- Parameters:
assessmentId- an assessmentIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-assessmentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAssessmentIdTerms
void clearAssessmentIdTerms()Clears the assessmentIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsAssessmentQuery
boolean supportsAssessmentQuery()Tests if anAssessmentQueryis available for querying assessments.- Returns:
trueif an assessment query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAssessmentQuery
AssessmentQuery getAssessmentQuery()Gets the query for an assessment. Multiple retrievals produce a nestedORterm.- Returns:
- the assessment query
- Throws:
UnimplementedException-supportsAssessmentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAssessmentQuery()} is {@code true} .
-
matchAnyAssessment
void matchAnyAssessment(boolean match) Matches an activity that has any assessment assigned.- Parameters:
match-trueto match activities with any assessments,falseto match activities with no assessments- Compliance:
mandatory- This method must be implemented.
-
clearAssessmentTerms
void clearAssessmentTerms()Clears the assessment terms.- Compliance:
mandatory- This method must be implemented.
-
matchObjectiveBankId
Sets the objective bankIdfor this query.- Parameters:
objectiveBankId- an objective bankIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-objectiveBankIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearObjectiveBankIdTerms
void clearObjectiveBankIdTerms()Clears the objective bankIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsObjectiveBankQuery
boolean supportsObjectiveBankQuery()Tests if aObjectiveBankQueryis available for querying resources.- Returns:
trueif an objective bank query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getObjectiveBankQuery
ObjectiveBankQuery getObjectiveBankQuery()Gets the query for an objective bank. Multiple retrievals produce a nestedORterm.- Returns:
- the objective bank query
- Throws:
UnimplementedException-supportsObjectiveBankQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsObjectiveBankQuery()} is {@code true} .
-
clearObjectiveBankTerms
void clearObjectiveBankTerms()Clears the objective bank terms.- Compliance:
mandatory- This method must be implemented.
-
getActivityQueryRecord
Gets the activity query record corresponding to the givenActivityrecordType.Multiple retrievals produce a nestedORterm.- Parameters:
activityRecordType- an activity query record type- Returns:
- the activity query record
- Throws:
NullArgumentException-activityRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(activityRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-