Interface ActivityUnitQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidSubjugateableQuery, Suppliable
public interface ActivityUnitQuery
extends OsidObjectQuery, OsidOperableQuery, OsidSubjugateableQuery
This is the query for searching activity units. Each method match
specifies an AND term while multiple invocations of the same
method produce a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the activityIdterms.voidClears the activity terms.voidClears the contact terms.voidClears the course catalogIdterms.voidClears the course catalog terms.voidClears the courseIdterms.voidClears the course terms.voidClears the objectiveIdterms.voidClears the learning objective terms.voidClears the recurring weekly terms.voidClears the total contact terms.voidClears the total effort terms.voidClears the individual effort terms.voidClears the weekly contact time terms.voidClears the weekly effort terms.voidClears the weekly individual effort terms.Gets the query for an activity.getActivityUnitQueryRecord(Type activityUnitRecordType) Gets the activity unit query record corresponding to the givenCourserecordType.Gets the query for a course catalog.Gets the query for a course.Gets the query for a learning objective.voidmatchActivityId(Id activityId, boolean match) Sets the activityIdfor this query to match activity units that have a related activity.voidmatchAnyActivity(boolean match) Matches activity units that have any activity.voidmatchAnyLearningObjective(boolean match) Matches activity units that have any learning objective.voidmatchAnyTotalTargetContactTime(boolean match) Matches an activity unit that has any total contact assigned.voidmatchAnyTotalTargetEffort(boolean match) Matches an activity unit that has any total effort assigned.voidmatchAnyTotalTargetIndividualEffort(boolean match) Matches an activity unit that has any individual effort assigned.voidmatchAnyWeeklyContactTime(boolean match) Matches an activity unit that has any weekly contact time assigned.voidmatchAnyWeeklyEffort(boolean match) Matches an activity unit that has any weekly effort assigned.voidmatchAnyWeeklyIndividualEffort(boolean match) Matches an activity unit that has any weekly individual effort assigned.voidmatchContact(boolean match) Matches activity units that are contact activities.voidmatchCourseCatalogId(Id courseCatalogId, boolean match) Sets the course catalogIdfor this query to match courses assigned to course catalogs.voidmatchCourseId(Id courseId, boolean match) Sets the courseIdfor this query to match activity units that have a related course.voidmatchLearningObjectiveId(Id objectiveId, boolean match) Sets the objectiveIdfor this query.voidmatchRecurringWeekly(boolean match) Matches activity units that recur weekly.voidmatchTotalTargetContactTime(Duration min, Duration max, boolean match) Matches activity units with a total contact time between the given durations inclusive.voidmatchTotalTargetEffort(Duration min, Duration max, boolean match) Matches activity units with a total effort between the given durations inclusive.voidmatchTotalTargetIndividualEffort(Duration min, Duration max, boolean match) Matches activity units with an individual effort between the given durations inclusive.voidmatchWeeklyContactTime(Duration min, Duration max, boolean match) Matches activity units with a weekly contact time between the given durations inclusive.voidmatchWeeklyEffort(Duration min, Duration max, boolean match) Matches activity units with a weekly effort between the given durations inclusive.voidmatchWeeklyIndividualEffort(Duration min, Duration max, boolean match) Matches activity units with a weekly individual effort between the given durations inclusive.booleanTests if anActivityQueryis available.booleanTests if aCourseCatalogQueryis available.booleanTests if aCourseQueryis available.booleanTests if aObjectiveQueryis 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
-
matchCourseId
Sets the courseIdfor this query to match activity units 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 courseIdterms.- 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} .
-
clearCourseTerms
void clearCourseTerms()Clears the course terms.- Compliance:
mandatory- This method must be implemented.
-
matchTotalTargetEffort
Matches activity units with a total effort between the given durations inclusive.- Parameters:
min- low rangemax- high rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-maxis less thanminNullArgumentException-minormaxisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyTotalTargetEffort
void matchAnyTotalTargetEffort(boolean match) Matches an activity unit that has any total effort assigned.- Parameters:
match-trueto match activity units with any total effort,falseto match activity units with no total effort- Compliance:
mandatory- This method must be implemented.
-
clearTotalTargetEffortTerms
void clearTotalTargetEffortTerms()Clears the total effort terms.- Compliance:
mandatory- This method must be implemented.
-
matchContact
void matchContact(boolean match) Matches activity units that are contact activities.- Parameters:
match-trueto match activity units that have contact,falseto match activity units with no contact- Compliance:
mandatory- This method must be implemented.
-
clearContactTerms
void clearContactTerms()Clears the contact terms.- Compliance:
mandatory- This method must be implemented.
-
matchTotalTargetContactTime
Matches activity units with a total contact time between the given durations inclusive.- Parameters:
min- low rangemax- high rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-maxis less thanminNullArgumentException-minormaxisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyTotalTargetContactTime
void matchAnyTotalTargetContactTime(boolean match) Matches an activity unit that has any total contact assigned.- Parameters:
match-trueto match activity units with any total contatc,falseto match activity units with no total contact- Compliance:
mandatory- This method must be implemented.
-
clearTotalTargetContactTimeTerms
void clearTotalTargetContactTimeTerms()Clears the total contact terms.- Compliance:
mandatory- This method must be implemented.
-
matchTotalTargetIndividualEffort
Matches activity units with an individual effort between the given durations inclusive.- Parameters:
min- low rangemax- high rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-maxis less thanminNullArgumentException-minormaxisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyTotalTargetIndividualEffort
void matchAnyTotalTargetIndividualEffort(boolean match) Matches an activity unit that has any individual effort assigned.- Parameters:
match-trueto match activity units with any individual effort,falseto match activity units with no individual effort- Compliance:
mandatory- This method must be implemented.
-
clearTotalTargetIndividualEffortTerms
void clearTotalTargetIndividualEffortTerms()Clears the individual effort terms.- Compliance:
mandatory- This method must be implemented.
-
matchRecurringWeekly
void matchRecurringWeekly(boolean match) Matches activity units that recur weekly.- Parameters:
match-trueto match activity units that recur weekly,falseto match activity units with no weekly recurrance- Compliance:
mandatory- This method must be implemented.
-
clearRecurringWeeklyTerms
void clearRecurringWeeklyTerms()Clears the recurring weekly terms.- Compliance:
mandatory- This method must be implemented.
-
matchWeeklyEffort
Matches activity units with a weekly effort between the given durations inclusive.- Parameters:
min- low rangemax- high rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-maxis less thanminNullArgumentException-minormaxisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyWeeklyEffort
void matchAnyWeeklyEffort(boolean match) Matches an activity unit that has any weekly effort assigned.- Parameters:
match-trueto match activity units with any weekly effort,falseto match activity units with no weekly effort- Compliance:
mandatory- This method must be implemented.
-
clearWeeklyEffortTerms
void clearWeeklyEffortTerms()Clears the weekly effort terms.- Compliance:
mandatory- This method must be implemented.
-
matchWeeklyContactTime
Matches activity units with a weekly contact time between the given durations inclusive.- Parameters:
min- low rangemax- high rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-maxis less thanminNullArgumentException-minormaxisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyWeeklyContactTime
void matchAnyWeeklyContactTime(boolean match) Matches an activity unit that has any weekly contact time assigned.- Parameters:
match-trueto match activity units with any weekly contact time,falseto match activity units with no weekly contact time- Compliance:
mandatory- This method must be implemented.
-
clearWeeklyContactTimeTerms
void clearWeeklyContactTimeTerms()Clears the weekly contact time terms.- Compliance:
mandatory- This method must be implemented.
-
matchWeeklyIndividualEffort
Matches activity units with a weekly individual effort between the given durations inclusive.- Parameters:
min- low rangemax- high rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-maxis less thanminNullArgumentException-minormaxisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyWeeklyIndividualEffort
void matchAnyWeeklyIndividualEffort(boolean match) Matches an activity unit that has any weekly individual effort assigned.- Parameters:
match-trueto match activity units with any weekly individual effort,falseto match activity units with no weekly individual effort- Compliance:
mandatory- This method must be implemented.
-
clearWeeklyIndividualEffortTerms
void clearWeeklyIndividualEffortTerms()Clears the weekly individual effort 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 objectiveIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsLearningObjectiveQuery
boolean supportsLearningObjectiveQuery()Tests if aObjectiveQueryis 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:
- an 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 activity units that have any learning objective.- Parameters:
match-trueto match activity units with any learning objective,falseto match activity units 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.
-
matchActivityId
Sets the activityIdfor this query to match activity units that have a related activity.- Parameters:
activityId- 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 activityIdterms.- 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 activity units that have any activity.- Parameters:
match-trueto match activity units with any activity.falseto match activity units with no activity- Compliance:
mandatory- This method must be implemented.
-
clearActivityTerms
void clearActivityTerms()Clears the activity terms.- Compliance:
mandatory- This method must be implemented.
-
matchCourseCatalogId
Sets the course catalogIdfor this query to match courses 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.
-
getActivityUnitQueryRecord
ActivityUnitQueryRecord getActivityUnitQueryRecord(Type activityUnitRecordType) throws OperationFailedException Gets the activity unit query record corresponding to the givenCourserecordType. Multiple record retrievals produce a nestedORterm.- Parameters:
activityUnitRecordType- an activity unit record type- Returns:
- the activity unit query record
- Throws:
NullArgumentException-activityUnitRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(activityUnitRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-