Interface GradeEntryQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidRelationshipQuery, OsidTemporalQuery, Suppliable
This is the query for searching grade entries. Each method match
request produces an AND term while multiple invocations of a
method produces a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the derived terms.voidClears the gradebook columnIdterms.voidClears the gradebook column terms.voidClears the gradebookIdterms.voidClears the gradebook terms.voidClears the gradeIdterms.voidClears the graderIdterms.voidClears the grader terms.voidClears the grade terms.voidClears the graderIdterms.voidClears the grading agent terms.voidClears the ignored for calculation entries terms.voidClears the key resourceIdterms.voidClears the key resource terms.voidClears the overridden grade entryIdterms.voidClears the overridden grade entry terms.voidClears the score terms.voidClears the time graded terms.Gets the query for a gradebook column.Gets the query for a gradebook.getGradeEntryQueryRecord(Type gradeEntryRecordType) Gets the grade entry query record corresponding to the givenGradeEntryrecordType.Gets the query for a grade.Gets the query for an agent.Gets the query for an agent.Gets the query for a key resource.Gets the query for an overridden derived grade entry.voidmatchAnyGrade(boolean match) Matches grade entries with any grade.voidmatchAnyGrader(boolean match) Matches grade entries with any grader.voidmatchAnyGradingAgent(boolean match) Matches grade entries with any grading agent.voidmatchAnyKeyResource(boolean match) Matches grade entries with any key resource.voidmatchAnyOverriddenGradeEntry(boolean match) Matches grade entries overriding any calculated grade entry.voidmatchAnyScore(boolean match) Matches grade entries with any score.voidmatchDerived(boolean match) Matches derived grade entries.voidmatchGradebookColumnId(Id gradebookColumnId, boolean match) Sets the gradebook columnIdfor this query.voidmatchGradebookId(Id gradebookId, boolean match) Sets the gradebookIdfor this query.voidmatchGradeId(Id gradeId, boolean match) Sets the gradeIdfor this query.voidmatchGraderId(Id resourceId, boolean match) Sets the agentIdfor this query.voidmatchGradingAgentId(Id agentId, boolean match) Sets the grading agentIdfor this query.voidmatchIgnoredForCalculations(boolean match) Matches grade entries ignored for calculations.voidmatchKeyResourceId(Id resourceId, boolean match) Sets the key resourceIdfor this query.voidmatchOverriddenGradeEntryId(Id gradeEntryId, boolean match) Sets the grade entryIdfor an overridden calculated grade entry.voidmatchScore(BigDecimal start, BigDecimal end, boolean match) Matches grade entries which score is between the specified score inclusive.voidmatchTimeGraded(DateTime start, DateTime end, boolean match) Matches grade entries which graded time is between the specified times inclusive.booleanTests if aGradebookColumnQueryis available for querying creators.booleanTests if aGradebookQueryis available for querying resources.booleanTests if aGradeQueryis available for querying grades.booleanTests if aResourceQueryis available for querying graders.booleanTests if anAgentQueryis available for querying grading agents.booleanTests if aResourceQUeryis available for querying key resources.booleanTests if aGradeEntryis available for querying overridden calculated grade entries.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 OsidRelationshipQuery
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQueryModifier and TypeMethodDescriptionvoidClears all stateIdterms.voidClears all end reason state terms.getEndReasonQuery(boolean match) Gets the query for the end reason state.voidmatchAnyEndReason(boolean match) Match any end reason state.voidmatchEndReasonId(Id stateId, boolean match) Match theIdof the end reason state.booleanTests if aStateQueryfor the end reason is available.Methods inherited from interface OsidTemporalQuery
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDateModifier and TypeMethodDescriptionvoidClears the date query terms.voidClears the effective query terms.voidClears the end date query terms.voidClears the start date query terms.voidmatchAnyEndDate(boolean match) Matches temporals with any end date set.voidmatchAnyStartDate(boolean match) Matches temporals with any start date set.voidMatches temporals where the given date range falls entirely between the start and end dates inclusive.voidmatchEffective(boolean match) Match effective objects where the current date falls within the start and end dates inclusive.voidmatchEndDate(DateTime start, DateTime end, boolean match) Matches temporals whose effective end date falls in between the given dates inclusive.voidmatchStartDate(DateTime start, DateTime end, boolean match) Matches temporals whose start date falls in between the given dates inclusive.
-
Method Details
-
matchGradebookColumnId
Sets the gradebook columnIdfor this query.- Parameters:
gradebookColumnId- a gradebook columnIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-gradebookColumnIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearGradebookColumnIdTerms
void clearGradebookColumnIdTerms()Clears the gradebook columnIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsGradebookColumnQuery
boolean supportsGradebookColumnQuery()Tests if aGradebookColumnQueryis available for querying creators.- Returns:
trueif a gradebook column query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradebookColumnQuery
GradebookColumnQuery getGradebookColumnQuery()Gets the query for a gradebook column. Multiple retrievals produce a nestedORterm.- Returns:
- the gradebook column query
- Throws:
UnimplementedException-supportsGradebookColumnQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsGradebookColumnQuery()} is {@code true} .
-
clearGradebookColumnTerms
void clearGradebookColumnTerms()Clears the gradebook column terms.- Compliance:
mandatory- This method must be implemented.
-
matchKeyResourceId
Sets the key 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.
-
clearKeyResourceIdTerms
void clearKeyResourceIdTerms()Clears the key resourceIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsKeyResourceQuery
boolean supportsKeyResourceQuery()Tests if aResourceQUeryis available for querying key resources.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getKeyResourceQuery
ResourceQuery getKeyResourceQuery()Gets the query for a key resource. Multiple retrievals produce a nestedORterm.- Returns:
- the resource query
- Throws:
UnimplementedException-supportsKeyResourceQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeyResourceQuery()} is {@code true} .
-
matchAnyKeyResource
void matchAnyKeyResource(boolean match) Matches grade entries with any key resource.- Parameters:
match-trueto match grade entries with any key resource,falseto match entries with no key resource- Compliance:
mandatory- This method must be implemented.
-
clearKeyResourceTerms
void clearKeyResourceTerms()Clears the key resource terms.- Compliance:
mandatory- This method must be implemented.
-
matchDerived
void matchDerived(boolean match) Matches derived grade entries.- Parameters:
match-trueto match derived grade entries ,falseto match manual entries- Compliance:
mandatory- This method must be implemented.
-
clearDerivedTerms
void clearDerivedTerms()Clears the derived terms.- Compliance:
mandatory- This method must be implemented.
-
matchOverriddenGradeEntryId
Sets the grade entryIdfor an overridden calculated grade entry.- Parameters:
gradeEntryId- a grade entryIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-gradeEntryIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearOverriddenGradeEntryIdTerms
void clearOverriddenGradeEntryIdTerms()Clears the overridden grade entryIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsOverriddenGradeEntryQuery
boolean supportsOverriddenGradeEntryQuery()Tests if aGradeEntryis available for querying overridden calculated grade entries.- Returns:
trueif a grade entry query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getOverriddenGradeEntryQuery
GradeEntryQuery getOverriddenGradeEntryQuery()Gets the query for an overridden derived grade entry. Multiple retrievals produce a nestedORterm.- Returns:
- the grade entry query
- Throws:
UnimplementedException-supportsOverriddenGradeEntryQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsOverriddenGradeEntryQuery()} is {@code true} .
-
matchAnyOverriddenGradeEntry
void matchAnyOverriddenGradeEntry(boolean match) Matches grade entries overriding any calculated grade entry.- Parameters:
match-trueto match grade entries overriding any grade entry,falseto match entries not overriding any entry- Compliance:
mandatory- This method must be implemented.
-
clearOverriddenGradeEntryTerms
void clearOverriddenGradeEntryTerms()Clears the overridden grade entry terms.- Compliance:
mandatory- This method must be implemented.
-
matchIgnoredForCalculations
void matchIgnoredForCalculations(boolean match) Matches grade entries ignored for calculations.- Parameters:
match-trueto match grade entries ignored for calculations,falseto match entries used in calculations- Compliance:
mandatory- This method must be implemented.
-
clearIgnoredForCalculationsTerms
void clearIgnoredForCalculationsTerms()Clears the ignored for calculation entries terms.- Compliance:
mandatory- This method must be implemented.
-
matchGradeId
Sets the gradeIdfor this query.- Parameters:
gradeId- a gradeIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-gradeIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearGradeIdTerms
void clearGradeIdTerms()Clears the gradeIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsGradeQuery
boolean supportsGradeQuery()Tests if aGradeQueryis available for querying grades.- 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 grade entries with any grade.- Parameters:
match-trueto match grade entries with any grade,falseto match entries with no grade- Compliance:
mandatory- This method must be implemented.
-
clearGradeTerms
void clearGradeTerms()Clears the grade terms.- Compliance:
mandatory- This method must be implemented.
-
matchScore
Matches grade entries which score is between the specified score inclusive.- Parameters:
start- start of rangeend- end of rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-endis less thanstart- Compliance:
mandatory- This method must be implemented.
-
matchAnyScore
void matchAnyScore(boolean match) Matches grade entries with any score.- Parameters:
match-trueto match grade entries with any score,falseto match entries with no score- Compliance:
mandatory- This method must be implemented.
-
clearScoreTerms
void clearScoreTerms()Clears the score terms.- Compliance:
mandatory- This method must be implemented.
-
matchTimeGraded
Matches grade entries which graded time is between the specified times inclusive.- Parameters:
start- start of rangeend- end of rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-endis less thanstart- Compliance:
mandatory- This method must be implemented.
-
clearTimeGradedTerms
void clearTimeGradedTerms()Clears the time graded terms.- Compliance:
mandatory- This method must be implemented.
-
matchGraderId
Sets the agentIdfor this query.- Parameters:
resourceId- a resourceIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearGraderIdTerms
void clearGraderIdTerms()Clears the graderIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsGraderQuery
boolean supportsGraderQuery()Tests if aResourceQueryis available for querying graders.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGraderQuery
ResourceQuery getGraderQuery()Gets the query for an agent. Multiple retrievals produce a nestedORterm.- Returns:
- the resource query
- Throws:
UnimplementedException-supportsResourceQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsResourceQuery()} is {@code true} .
-
matchAnyGrader
void matchAnyGrader(boolean match) Matches grade entries with any grader.- Parameters:
match-trueto match grade entries with any grader,falseto match entries with no grader- Compliance:
mandatory- This method must be implemented.
-
clearGraderTerms
void clearGraderTerms()Clears the grader terms.- Compliance:
mandatory- This method must be implemented.
-
matchGradingAgentId
Sets the grading 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.
-
clearGradingAgentIdTerms
void clearGradingAgentIdTerms()Clears the graderIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsGradingAgentQuery
boolean supportsGradingAgentQuery()Tests if anAgentQueryis available for querying grading agents.- Returns:
trueif an agent query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradingAgentQuery
AgentQuery getGradingAgentQuery()Gets the query for an agent. Multiple retrievals produce a nestedORterm.- Returns:
- the agent query
- Throws:
UnimplementedException-supportsGradingAgentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsGradingAgentQuery()} is {@code true} .
-
matchAnyGradingAgent
void matchAnyGradingAgent(boolean match) Matches grade entries with any grading agent.- Parameters:
match-trueto match grade entries with any grading agent,falseto match entries with no grading agent- Compliance:
mandatory- This method must be implemented.
-
clearGradingAgentTerms
void clearGradingAgentTerms()Clears the grading agent terms.- Compliance:
mandatory- This method must be implemented.
-
matchGradebookId
Sets the gradebookIdfor this query.- Parameters:
gradebookId- a gradebookIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-gradebookIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearGradebookIdTerms
void clearGradebookIdTerms()Clears the gradebookIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsGradebookQuery
boolean supportsGradebookQuery()Tests if aGradebookQueryis available for querying resources.- Returns:
trueif a gradebook query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradebookQuery
GradebookQuery getGradebookQuery()Gets the query for a gradebook. Multiple retrievals produce a nestedORterm.- Returns:
- the gradebook query
- Throws:
UnimplementedException-supportsGradebookQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsGradebookQuery()} is {@code true} .
-
clearGradebookTerms
void clearGradebookTerms()Clears the gradebook terms.- Compliance:
mandatory- This method must be implemented.
-
getGradeEntryQueryRecord
GradeEntryQueryRecord getGradeEntryQueryRecord(Type gradeEntryRecordType) throws OperationFailedException Gets the grade entry query record corresponding to the givenGradeEntryrecordType. Multiple retrievals produce a nestedORterm.- Parameters:
gradeEntryRecordType- a grade entry record type- Returns:
- the grade entry query record
- Throws:
NullArgumentException-gradeEntryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(gradeEntryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-