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.
Modifier and Type | Method and Description |
---|---|
void |
clearActivityIdTerms()
Clears the activity
Id terms. |
void |
clearActivityTerms()
Clears the activity terms.
|
void |
clearContactTerms()
Clears the contact terms.
|
void |
clearCourseCatalogIdTerms()
Clears the course catalog
Id terms. |
void |
clearCourseCatalogTerms()
Clears the course catalog terms.
|
void |
clearCourseIdTerms()
Clears the course
Id terms. |
void |
clearCourseTerms()
Clears the course terms.
|
void |
clearLearningObjectiveIdTerms()
Clears the objective
Id terms. |
void |
clearLearningObjectiveTerms()
Clears the learning objective terms.
|
void |
clearRecurringWeeklyTerms()
Clears the recurring weekly terms.
|
void |
clearTotalTargetContactTimeTerms()
Clears the total contact terms.
|
void |
clearTotalTargetEffortTerms()
Clears the total effort terms.
|
void |
clearTotalTargetIndividualEffortTerms()
Clears the individual effort terms.
|
void |
clearWeeklyContactTimeTerms()
Clears the weekly contact time terms.
|
void |
clearWeeklyEffortTerms()
Clears the weekly effort terms.
|
void |
clearWeeklyIndividualEffortTerms()
Clears the weekly individual effort terms.
|
ActivityQuery |
getActivityQuery()
Gets the query for an activity.
|
ActivityUnitQueryRecord |
getActivityUnitQueryRecord(Type activityUnitRecordType)
Gets the activity unit query record corresponding to the given
Course record Type. |
CourseCatalogQuery |
getCourseCatalogQuery()
Gets the query for a course catalog.
|
CourseQuery |
getCourseQuery()
Gets the query for a course.
|
ObjectiveQuery |
getLearningObjectiveQuery()
Gets the query for a learning objective.
|
void |
matchActivityId(Id activityId,
boolean match)
Sets the activity
Id for this query to match activity
units that have a related activity. |
void |
matchAnyActivity(boolean match)
Matches activity units that have any activity.
|
void |
matchAnyLearningObjective(boolean match)
Matches activity units that have any learning objective.
|
void |
matchAnyTotalTargetContactTime(boolean match)
Matches an activity unit that has any total contact assigned.
|
void |
matchAnyTotalTargetEffort(boolean match)
Matches an activity unit that has any total effort assigned.
|
void |
matchAnyTotalTargetIndividualEffort(boolean match)
Matches an activity unit that has any individual effort assigned.
|
void |
matchAnyWeeklyContactTime(boolean match)
Matches an activity unit that has any weekly contact time assigned.
|
void |
matchAnyWeeklyEffort(boolean match)
Matches an activity unit that has any weekly effort assigned.
|
void |
matchAnyWeeklyIndividualEffort(boolean match)
Matches an activity unit that has any weekly individual effort
assigned.
|
void |
matchContact(boolean match)
Matches activity units that are contact activities.
|
void |
matchCourseCatalogId(Id courseCatalogId,
boolean match)
Sets the course catalog
Id for this query to match
courses assigned to course catalogs. |
void |
matchCourseId(Id courseId,
boolean match)
Sets the course
Id for this query to match activity
units that have a related course. |
void |
matchLearningObjectiveId(Id objectiveId,
boolean match)
Sets the objective
Id for this query. |
void |
matchRecurringWeekly(boolean match)
Matches activity units that recur weekly.
|
void |
matchTotalTargetContactTime(Duration min,
Duration max,
boolean match)
Matches activity units with a total contact time between the given
durations inclusive.
|
void |
matchTotalTargetEffort(Duration min,
Duration max,
boolean match)
Matches activity units with a total effort between the given durations
inclusive.
|
void |
matchTotalTargetIndividualEffort(Duration min,
Duration max,
boolean match)
Matches activity units with a individual effort between the given
durations inclusive.
|
void |
matchWeeklyContactTime(Duration min,
Duration max,
boolean match)
Matches activity units with a weekly contact time between the given
durations inclusive.
|
void |
matchWeeklyEffort(Duration min,
Duration max,
boolean match)
Matches activity units with a weekly effort between the given
durations inclusive.
|
void |
matchWeeklyIndividualEffort(Duration min,
Duration max,
boolean match)
Matches activity units with a weekly individual effort between the
given durations inclusive.
|
boolean |
supportsActivityQuery()
Tests if an
ActivityQuery is available. |
boolean |
supportsCourseCatalogQuery()
Tests if a
CourseCatalogQuery is available. |
boolean |
supportsCourseQuery()
Tests if a
CourseQuery is available. |
boolean |
supportsLearningObjectiveQuery()
Tests if a
ObjectiveQuery is available. |
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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperational
void matchCourseId(Id courseId, boolean match)
Id
for this query to match activity
units that have a related course.courseId
- a course Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- courseId
is
null
mandatory
- This method must be implemented. void clearCourseIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsCourseQuery()
CourseQuery
is available. true
if a course query is available,
false
otherwisemandatory
- This method must be implemented. CourseQuery getCourseQuery()
OR
term.UnimplementedException
- supportsCourseQuery()
is false
optional
- This method must be implemented if
supportsCourseQuery()
is true.
void clearCourseTerms()
mandatory
- This method must be implemented. void matchTotalTargetEffort(Duration min, Duration max, boolean match)
min
- low rangemax
- high rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- max
is less
than min
NullArgumentException
- min
or
max
is null
mandatory
- This method must be implemented. void matchAnyTotalTargetEffort(boolean match)
match
- true
to match activity units with any
total effort, false
to match activity units
with no total effortmandatory
- This method must be implemented. void clearTotalTargetEffortTerms()
mandatory
- This method must be implemented. void matchContact(boolean match)
match
- true
to match activity units that have
contact, false
to match activity units with no
contactmandatory
- This method must be implemented. void clearContactTerms()
mandatory
- This method must be implemented. void matchTotalTargetContactTime(Duration min, Duration max, boolean match)
min
- low rangemax
- high rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- max
is less
than min
NullArgumentException
- min
or
max
is null
mandatory
- This method must be implemented. void matchAnyTotalTargetContactTime(boolean match)
match
- true
to match activity units with any
total contatc, false
to match activity units
with no total contactmandatory
- This method must be implemented. void clearTotalTargetContactTimeTerms()
mandatory
- This method must be implemented. void matchTotalTargetIndividualEffort(Duration min, Duration max, boolean match)
min
- low rangemax
- high rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- max
is less
than min
NullArgumentException
- min
or
max
is null
mandatory
- This method must be implemented. void matchAnyTotalTargetIndividualEffort(boolean match)
match
- true
to match activity units with any
individual effort, false
to match activity
units with no individual effortmandatory
- This method must be implemented. void clearTotalTargetIndividualEffortTerms()
mandatory
- This method must be implemented. void matchRecurringWeekly(boolean match)
match
- true
to match activity units that recur
weekly, false
to match activity units with no
weekly recurrancemandatory
- This method must be implemented. void clearRecurringWeeklyTerms()
mandatory
- This method must be implemented. void matchWeeklyEffort(Duration min, Duration max, boolean match)
min
- low rangemax
- high rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- max
is less
than min
NullArgumentException
- min
or
max
is null
mandatory
- This method must be implemented. void matchAnyWeeklyEffort(boolean match)
match
- true
to match activity units with any
weekly effort, false
to match activity units
with no weekly effortmandatory
- This method must be implemented. void clearWeeklyEffortTerms()
mandatory
- This method must be implemented. void matchWeeklyContactTime(Duration min, Duration max, boolean match)
min
- low rangemax
- high rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- max
is less
than min
NullArgumentException
- min
or
max
is null
mandatory
- This method must be implemented. void matchAnyWeeklyContactTime(boolean match)
match
- true
to match activity units with any
weekly contact time, false
to match activity
units with no weekly contact timemandatory
- This method must be implemented. void clearWeeklyContactTimeTerms()
mandatory
- This method must be implemented. void matchWeeklyIndividualEffort(Duration min, Duration max, boolean match)
min
- low rangemax
- high rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- max
is less
than min
NullArgumentException
- min
or
max
is null
mandatory
- This method must be implemented. void matchAnyWeeklyIndividualEffort(boolean match)
match
- true
to match activity units with any
weekly individual effort, false
to match
activity units with no weekly individual effortmandatory
- This method must be implemented. void clearWeeklyIndividualEffortTerms()
mandatory
- This method must be implemented. void matchLearningObjectiveId(Id objectiveId, boolean match)
Id
for this query.objectiveId
- an objective Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- objectiveId
is
null
mandatory
- This method must be implemented. void clearLearningObjectiveIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsLearningObjectiveQuery()
ObjectiveQuery
is available. true
if an objective query is available,
false
otherwisemandatory
- This method must be implemented. ObjectiveQuery getLearningObjectiveQuery()
OR
term.UnimplementedException
-
supportsLearningObjectiveQuery()
is false
optional
- This method must be implemented if
supportsLearningObjectiveQuery()
is true.
void matchAnyLearningObjective(boolean match)
match
- true
to match activity units with any
learning objective, false
to match activity
units with no learning objectivesmandatory
- This method must be implemented. void clearLearningObjectiveTerms()
mandatory
- This method must be implemented. void matchActivityId(Id activityId, boolean match)
Id
for this query to match activity
units that have a related activity.activityId
- an activity Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- activityId
is
null
mandatory
- This method must be implemented. void clearActivityIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsActivityQuery()
ActivityQuery
is available. true
if an activity query is available,
false
otherwisemandatory
- This method must be implemented. ActivityQuery getActivityQuery()
OR
term.UnimplementedException
- supportsActivityQuery()
is false
optional
- This method must be implemented if
supportsActivityQuery()
is true.
void matchAnyActivity(boolean match)
match
- true
to match activity units with any
activity. false
to match activity units with no
activitymandatory
- This method must be implemented. void clearActivityTerms()
mandatory
- This method must be implemented. void matchCourseCatalogId(Id courseCatalogId, boolean match)
Id
for this query to match
courses assigned to course catalogs.courseCatalogId
- the course catalog Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- courseCatalogId
is null
mandatory
- This method must be implemented. void clearCourseCatalogIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsCourseCatalogQuery()
CourseCatalogQuery
is available. true
if a course catalog query is available,
false
otherwisemandatory
- This method must be implemented. CourseCatalogQuery getCourseCatalogQuery()
OR
term.UnimplementedException
-
supportsCourseCatalogQuery()
is false
optional
- This method must be implemented if
supportsCourseCatalogQuery()
is true.
void clearCourseCatalogTerms()
mandatory
- This method must be implemented. ActivityUnitQueryRecord getActivityUnitQueryRecord(Type activityUnitRecordType) throws OperationFailedException
Course
record Type.
Multiple record retrievals
produce a nested OR
term.activityUnitRecordType
- an activity unit record typeNullArgumentException
- activityUnitRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(activityUnitRecordType)
is false
mandatory
- This method must be implemented.