Interface AssessmentTakenQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable
This is the query for searching assessments. Each method match request
produces an AND term while multiple invocations of a method
produces a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears all start time terms.voidClears all assessment offeredIdterms.voidClears all assessment offered terms.voidClears all bankIdterms.voidClears all bank terms.voidClears all in completion time terms.voidClears all comment terms.voidClears all gradeIdterms.voidClears all grade terms.voidClears all rubric assessment takenIdterms.voidClears all rubric assessment taken terms.voidClears all grade systemIdterms.voidClears all grade system terms.voidClears all score terms.voidClears all resourceIdterms.voidClears all resource terms.voidClears all agentIdterms.voidClears all taking agent terms.voidClears all in time spent terms.Gets the query for an assessment.getAssessmentTakenQueryRecord(Type assessmentTakenRecordType) Gets the assessment taken query record corresponding to the givenAssessmentTakenrecordType.Gets the query for a bank.Gets the query for a grade.Gets the query for a rubric assessment.Gets the query for a grade system.Gets the query for a resource.Gets the query for an agent.voidmatchActualStartTime(DateTime start, DateTime end, boolean match) Matches assessments whose start time falls between the specified range inclusive.voidmatchAnyActualStartTime(boolean match) Matches taken assessments taken that have begun.voidmatchAnyCompletionTime(boolean match) Matches taken assessments taken that have completed.voidmatchAnyFeedback(boolean match) Matches taken assessments that have any comments.voidmatchAnyGrade(boolean match) Matches taken assessments that have any grade assigned.voidmatchAnyRubric(boolean match) Matches an assessment taken that has any rubric assessment assigned.voidmatchAnyScore(boolean match) Matches taken assessments that have any score assigned.voidmatchAnyScoreSystem(boolean match) Matches taken assessments that have any grade system assigned.voidmatchAssessmentOfferedId(Id assessmentOfferedId, boolean match) Sets the assessment offeredIdfor this query.voidmatchBankId(Id bankId, boolean match) Sets the bankIdfor this query.voidmatchCompletionTime(DateTime start, DateTime end, boolean match) Matches assessments whose completion time falls between the specified range inclusive.voidmatchFeedback(String comments, Type stringMatchType, boolean match) Sets the comment string for this query.voidmatchGradeId(Id gradeId, boolean match) Sets the gradeIdfor this query.voidmatchRubricId(Id assessmentTakenId, boolean match) Sets the rubric assessment takenIdfor this query.voidmatchScore(BigDecimal low, BigDecimal high, boolean match) Matches assessments whose score falls between the specified range inclusive.voidmatchScoreSystemId(Id gradeSystemId, boolean match) Sets the grade systemIdfor this query.voidmatchTakerId(Id resourceId, boolean match) Sets the resourceIdfor this query.voidmatchTakingAgentId(Id agentId, boolean match) Sets the agentIdfor this query.voidmatchTimeSpent(Duration low, Duration high, boolean match) Matches assessments where the time spent falls between the specified range inclusive.booleanTests if anAssessmentOfferedQueryis available.booleanTests if aBankQueryis available.booleanTests if aGradeQueryis available.booleanTests if anAssessmentTakenQueryis available.booleanTests if aGradeSystemQueryis available.booleanTests if aResourceQueryis available.booleanTests if anAgentQueryis 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.
-
Method Details
-
matchAssessmentOfferedId
Sets the assessment offeredIdfor this query.- Parameters:
assessmentOfferedId- an assessmentIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-assessmentOfferedIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAssessmentOfferedIdTerms
void clearAssessmentOfferedIdTerms()Clears all assessment offeredIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsAssessmentOfferedQuery
boolean supportsAssessmentOfferedQuery()Tests if anAssessmentOfferedQueryis available.- Returns:
trueif an assessment offered query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAssessmentOfferedQuery
AssessmentOfferedQuery getAssessmentOfferedQuery()Gets the query for an assessment. Multiple retrievals produce a nestedORterm.- Returns:
- the assessment offered query
- Throws:
UnimplementedException-supportsAssessmentOfferedQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAssessmentOfferedQuery()} is {@code true} .
-
clearAssessmentOfferedTerms
void clearAssessmentOfferedTerms()Clears all assessment offered terms.- Compliance:
mandatory- This method must be implemented.
-
matchTakerId
Sets the resourceIdfor this query.- Parameters:
resourceId- a resourceIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearTakerIdTerms
void clearTakerIdTerms()Clears all resourceIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsTakerQuery
boolean supportsTakerQuery()Tests if aResourceQueryis available.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTakerQuery
ResourceQuery getTakerQuery()Gets the query for a resource. Multiple retrievals produce a nestedORterm.- Returns:
- the resource query
- Throws:
UnimplementedException-supportsTakerQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsTakerQuery()} is {@code true} .
-
clearTakerTerms
void clearTakerTerms()Clears all resource terms.- Compliance:
mandatory- This method must be implemented.
-
matchTakingAgentId
Sets the agentIdfor this query.- Parameters:
agentId- an agentIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-agentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearTakingAgentIdTerms
void clearTakingAgentIdTerms()Clears all agentIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsTakingAgentQuery
boolean supportsTakingAgentQuery()Tests if anAgentQueryis available.- Returns:
trueif an agent query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTakingAgentQuery
AgentQuery getTakingAgentQuery()Gets the query for an agent. Multiple retrievals produce a nestedORterm.- Returns:
- the agent query
- Throws:
UnimplementedException-supportsTakingAgentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsTakingAgentQuery()} is {@code true} .
-
clearTakingAgentTerms
void clearTakingAgentTerms()Clears all taking agent terms.- Compliance:
mandatory- This method must be implemented.
-
matchActualStartTime
Matches assessments whose start time falls between the specified range inclusive.- Parameters:
start- start of rangeend- end of rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-endis less thanstartNullArgumentException-startorendisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyActualStartTime
void matchAnyActualStartTime(boolean match) Matches taken assessments taken that have begun.- Parameters:
match-trueto match assessments taken started,falseto match assessments taken that have not begun- Compliance:
mandatory- This method must be implemented.
-
clearActualStartTimeTerms
void clearActualStartTimeTerms()Clears all start time terms.- Compliance:
mandatory- This method must be implemented.
-
matchCompletionTime
Matches assessments whose completion time falls between the specified range inclusive.- Parameters:
start- start of rangeend- end of rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-endis less thanstartNullArgumentException-startorendisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyCompletionTime
void matchAnyCompletionTime(boolean match) Matches taken assessments taken that have completed.- Parameters:
match-trueto match assessments taken completed,falseto match assessments taken that are incomplete- Compliance:
mandatory- This method must be implemented.
-
clearCompletionTimeTerms
void clearCompletionTimeTerms()Clears all in completion time terms.- Compliance:
mandatory- This method must be implemented.
-
matchTimeSpent
Matches assessments where the time spent falls between the specified range inclusive.- Parameters:
low- start of duration rangehigh- end of duration rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-highis less thanlowNullArgumentException-loworhighisnull- Compliance:
mandatory- This method must be implemented.
-
clearTimeSpentTerms
void clearTimeSpentTerms()Clears all in time spent terms.- Compliance:
mandatory- This method must be implemented.
-
matchScoreSystemId
Sets the grade systemIdfor this query.- Parameters:
gradeSystemId- a grade systemIdmatch-true for a positive match, false for a negative match- Throws:
NullArgumentException-gradeSystemIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearScoreSystemIdTerms
void clearScoreSystemIdTerms()Clears all grade systemIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsScoreSystemQuery
boolean supportsScoreSystemQuery()Tests if aGradeSystemQueryis available.- Returns:
trueif a grade system query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getScoreSystemQuery
GradeSystemQuery getScoreSystemQuery()Gets the query for a grade system. Multiple retrievals produce a nestedORterm.- Returns:
- the grade system query
- Throws:
UnimplementedException-supportsScoreSystemQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsScoreSystemQuery()} is {@code true} .
-
matchAnyScoreSystem
void matchAnyScoreSystem(boolean match) Matches taken assessments that have any grade system assigned.- Parameters:
match-trueto match assessments with any grade system,falseto match assessments with no grade system- Compliance:
mandatory- This method must be implemented.
-
clearScoreSystemTerms
void clearScoreSystemTerms()Clears all grade system terms.- Compliance:
mandatory- This method must be implemented.
-
matchScore
Matches assessments whose score falls between the specified range inclusive.- Parameters:
low- start of rangehigh- end of rangematch-truefor a positive match,falsefor negative match- Throws:
InvalidArgumentException-highis less thanlow- Compliance:
mandatory- This method must be implemented.
-
matchAnyScore
void matchAnyScore(boolean match) Matches taken assessments that have any score assigned.- Parameters:
match-trueto match assessments with any score,falseto match assessments with no score- Compliance:
mandatory- This method must be implemented.
-
clearScoreTerms
void clearScoreTerms()Clears all score terms.- Compliance:
mandatory- This method must be implemented.
-
matchGradeId
Sets the gradeIdfor this query.- Parameters:
gradeId- a gradeIdmatch-true for a positive match, false for a negative match- Throws:
NullArgumentException-gradeIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearGradeIdTerms
void clearGradeIdTerms()Clears all gradeIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsGradeQuery
boolean supportsGradeQuery()Tests if aGradeQueryis available.- Returns:
trueif a grade query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradeQuery
GradeQuery getGradeQuery()Gets the query for a grade. Multiple retrievals produce a nestedORterm.- Returns:
- the grade query
- Throws:
UnimplementedException-supportsGradeQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsGradeQuery()} is {@code true} .
-
matchAnyGrade
void matchAnyGrade(boolean match) Matches taken assessments that have any grade assigned.- Parameters:
match-trueto match assessments with any grade,falseto match assessments with no grade- Compliance:
mandatory- This method must be implemented.
-
clearGradeTerms
void clearGradeTerms()Clears all grade terms.- Compliance:
mandatory- This method must be implemented.
-
matchFeedback
Sets the comment string for this query.- Parameters:
comments- comment stringstringMatchType- the string match typematch-truefor a positive match,falsefor negative match- Throws:
InvalidArgumentException-comments isnot ofstringMatchTypeNullArgumentException-commentsorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyFeedback
void matchAnyFeedback(boolean match) Matches taken assessments that have any comments.- Parameters:
match-trueto match assessments with any comments,falseto match assessments with no comments- Compliance:
mandatory- This method must be implemented.
-
clearFeedbackTerms
void clearFeedbackTerms()Clears all comment terms.- Compliance:
mandatory- This method must be implemented.
-
matchRubricId
Sets the rubric assessment takenIdfor this query.- Parameters:
assessmentTakenId- an assessment takenIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-assessmentTakenIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRubricIdTerms
void clearRubricIdTerms()Clears all rubric assessment takenIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsRubricQuery
boolean supportsRubricQuery()Tests if anAssessmentTakenQueryis available.- Returns:
trueif a rubric assessment taken query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRubricQuery
AssessmentTakenQuery getRubricQuery()Gets the query for a rubric assessment. Multiple retrievals produce a nestedORterm.- Returns:
- the assessment taken query
- Throws:
UnimplementedException-supportsRubricQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRubricQuery()} is {@code true} .
-
matchAnyRubric
void matchAnyRubric(boolean match) Matches an assessment taken that has any rubric assessment assigned.- Parameters:
match-trueto match assessments taken with any rubric,falseto match assessments taken with no rubric- Compliance:
mandatory- This method must be implemented.
-
clearRubricTerms
void clearRubricTerms()Clears all rubric assessment taken terms.- Compliance:
mandatory- This method must be implemented.
-
matchBankId
Sets the bankIdfor this query.- Parameters:
bankId- a bankIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-bankIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearBankIdTerms
void clearBankIdTerms()Clears all bankIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsBankQuery
boolean supportsBankQuery()Tests if aBankQueryis available.- Returns:
trueif a bank query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getBankQuery
BankQuery getBankQuery()Gets the query for a bank. Multiple retrievals produce a nestedORterm.- Returns:
- the bank query
- Throws:
UnimplementedException-supportsBankQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBankQuery()} is {@code true} .
-
clearBankTerms
void clearBankTerms()Clears all bank terms.- Compliance:
mandatory- This method must be implemented.
-
getAssessmentTakenQueryRecord
AssessmentTakenQueryRecord getAssessmentTakenQueryRecord(Type assessmentTakenRecordType) throws OperationFailedException Gets the assessment taken query record corresponding to the givenAssessmentTakenrecordType. Multiple retrievals produce a nestedORterm.- Parameters:
assessmentTakenRecordType- an assessment taken record type- Returns:
- the assessment taken query record
- Throws:
NullArgumentException-assessmentTakenRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(assessmentTakenRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-