public interface LessonQuery extends OsidRelationshipQuery
This is the query for searching for lessons. Each method 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 |
clearActualEndingActivityIdTerms()
Clears the ending activity
Id terms. |
void |
clearActualEndingActivityTerms()
Clears the ending activity terms.
|
void |
clearActualEndTimeTerms()
Clears the actual end time terms.
|
void |
clearActualStartingActivityIdTerms()
Clears the starting activity
Id terms. |
void |
clearActualStartingActivityTerms()
Clears the starting activity terms.
|
void |
clearActualStartTimeTerms()
Clears the actual start time terms.
|
void |
clearActualTimeSpentTerms()
Clears the actual time spent terms.
|
void |
clearCompleteTerms()
Clears the complete terms.
|
void |
clearCourseCatalogIdTerms()
Clears the course catalog
Id terms. |
void |
clearCourseCatalogTerms()
Clears the course catalog terms.
|
void |
clearDocetIdTerms()
Clears the docet
Id terms. |
void |
clearDocetTerms()
Clears the docet terms.
|
void |
clearPlanIdTerms()
Clears the plan
Id tems. |
void |
clearPlannedStartTimeTerms()
Clears the planned start time terms.
|
void |
clearPlanTerms()
Clears the plan terms.
|
void |
clearSkippedTerms()
Clears the skipped terms.
|
ActivityQuery |
getActivityQuery()
Gets the query for an activity.
|
ActivityQuery |
getActualEndingActivityQuery()
Gets the query for an ending activity.
|
ActivityQuery |
getActualStartingActivityQuery()
Gets the query for a starting activity.
|
CourseCatalogQuery |
getCourseCatalogQuery()
Gets the query for a course catalog query.
|
DocetQuery |
getDocetQuery()
Gets the query for a docet.
|
LessonQueryRecord |
getLessonQueryRecord(Type lessonRecordType)
Gets the lesson query record corresponding to the given
Lesson
record Type. |
PlanQuery |
getPlanQuery()
Gets the query for a plan.
|
void |
matchActivityId(Id activitytId,
boolean match)
Sets the activity
Id for this query. |
void |
matchActualEndingActivityId(Id activitytId,
boolean match)
Sets the ending activity
Id for this query. |
void |
matchActualEndTime(Duration from,
Duration to,
boolean match)
Matches an actual ending time within the given date range inclusive.
|
void |
matchActualStartingActivityId(Id activitytId,
boolean match)
Sets the starting activity
Id for this query. |
void |
matchActualStartTime(Duration from,
Duration to,
boolean match)
Matches an actual start time within the given date range inclusive.
|
void |
matchActualTimeSpent(Duration from,
Duration to,
boolean match)
Matches an actual time spent within the given duration range
inclusive.
|
void |
matchAnyActivity(boolean match)
Matches a lesson that has any activity.
|
void |
matchAnyActualEndingActivity(boolean match)
Matches a lesson that has any ending activity.
|
void |
matchAnyActualEndTime(boolean match)
Matches a lesson that has any actual end time.
|
void |
matchAnyActualStartingActivity(boolean match)
Matches a lesson that has any starting activity.
|
void |
matchAnyActualStartTime(boolean match)
Matches a lesson that has begun.
|
void |
matchAnyActualTimeSpent(boolean match)
Matches a lesson that has any actual time spent.
|
void |
matchAnyDocet(boolean match)
Matches a lesson that has any docet.
|
void |
matchAnyPlannedStartTime(boolean match)
Matches a lesson that has any planned start time.
|
void |
matchComplete(boolean match)
Matches a lesson that has been completed.
|
void |
matchCourseCatalogId(Id courseCatalogId,
boolean match)
Sets the lesson
Id for this query to match syllabi
assigned to course catalogs. |
void |
matchDocetId(Id docetId,
boolean match)
Sets the docet
Id for this query. |
void |
matchPlanId(Id planId,
boolean match)
Sets the plan
Id for this query. |
void |
matchPlannedStartTime(Duration from,
Duration to,
boolean match)
Matches a planned start time within the given duration range
inclusive.
|
void |
matchSkipped(boolean match)
Matches a lesson that has been skipped.
|
boolean |
supportsActivityQuery()
Tests if an activity query is available.
|
boolean |
supportsActualEndingActivityQuery()
Tests if an ending activity query is available.
|
boolean |
supportsActualStartingActivityQuery()
Tests if a starting activity query is available.
|
boolean |
supportsCourseCatalogQuery()
Tests if an
CourseCatalogQuery is available. |
boolean |
supportsDocetQuery()
Tests if a docet query is available.
|
boolean |
supportsPlanQuery()
Tests if a plan query is available.
|
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQuery
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
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
void matchPlanId(Id planId, boolean match)
Id
for this query.planId
- a plan Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- planId
is
null
mandatory
- This method must be implemented. void clearPlanIdTerms()
Id
tems.mandatory
- This method must be implemented. boolean supportsPlanQuery()
true
if a plan query is available, false
otherwisemandatory
- This method must be implemented. PlanQuery getPlanQuery()
UnimplementedException
- supportsPlanQuery()
is false
optional
- This method must be implemented if
supportsPlanQuery()
is true.
void clearPlanTerms()
mandatory
- This method must be implemented. void matchDocetId(Id docetId, boolean match)
Id
for this query.docetId
- a docet Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- docetId
is
null
mandatory
- This method must be implemented. void clearDocetIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsDocetQuery()
true
if a docet query is available,
false
otherwisemandatory
- This method must be implemented. DocetQuery getDocetQuery()
UnimplementedException
- supportsDocetQuery()
is false
optional
- This method must be implemented if
supportsDocetQuery()
is true.
void matchAnyDocet(boolean match)
match
- true
to match lessons with any docet,
false
to match lessons with no docetmandatory
- This method must be implemented. void clearDocetTerms()
mandatory
- This method must be implemented. void matchActivityId(Id activitytId, boolean match)
Id
for this query.activitytId
- an activity Id
match
- true
for 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()
true
if an activity query is available,
false
otherwisemandatory
- This method must be implemented. ActivityQuery getActivityQuery()
UnimplementedException
- supportsActivityQuery()
is false
optional
- This method must be implemented if
supportsActivityQuery()
is true.
void matchAnyActivity(boolean match)
match
- true
to match lessons with any activity,
false
to match lessons with no activitiesmandatory
- This method must be implemented. void clearActivityTerms()
mandatory
- This method must be implemented. void matchPlannedStartTime(Duration from, Duration to, boolean match)
from
- a starting dateto
- a ending datematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void matchAnyPlannedStartTime(boolean match)
match
- true
to match lessons with any planned
start time, false
to match lessons with no
planned start timemandatory
- This method must be implemented. void clearPlannedStartTimeTerms()
mandatory
- This method must be implemented. void matchActualStartTime(Duration from, Duration to, boolean match)
from
- a starting dateto
- a ending datematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void matchAnyActualStartTime(boolean match)
match
- true
to match lessons with any actual
start time, false
to match lessons with no
actual start timemandatory
- This method must be implemented. void clearActualStartTimeTerms()
mandatory
- This method must be implemented. void matchActualStartingActivityId(Id activitytId, boolean match)
Id
for this query.activitytId
- an activity Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- activityId
is
null
mandatory
- This method must be implemented. void clearActualStartingActivityIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsActualStartingActivityQuery()
true
if a starting activity query is available,
false
otherwisemandatory
- This method must be implemented. ActivityQuery getActualStartingActivityQuery()
UnimplementedException
-
supportsActualStartingActivityQuery()
is false
optional
- This method must be implemented if
supportsActualStartingActivityQuery()
is
true.
void matchAnyActualStartingActivity(boolean match)
match
- true
to match lessons with any starting
activity, false
to match lessons with no
starting activitymandatory
- This method must be implemented. void clearActualStartingActivityTerms()
mandatory
- This method must be implemented. void matchComplete(boolean match)
match
- true
to match lessons that have been
completed, false
to match lessons that have not
been completedmandatory
- This method must be implemented. void clearCompleteTerms()
mandatory
- This method must be implemented. void matchSkipped(boolean match)
match
- true
to match lessons that have been
skipped, false
to match lessons that have not
been skippedmandatory
- This method must be implemented. void clearSkippedTerms()
mandatory
- This method must be implemented. void matchActualEndTime(Duration from, Duration to, boolean match)
from
- a starting dateto
- a ending datematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void matchAnyActualEndTime(boolean match)
match
- true
to match lessons with any actual end
time, false
to match lessons with no actual end
timemandatory
- This method must be implemented. void clearActualEndTimeTerms()
mandatory
- This method must be implemented. void matchActualEndingActivityId(Id activitytId, boolean match)
Id
for this query.activitytId
- an activity Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- activityId
is
null
mandatory
- This method must be implemented. void clearActualEndingActivityIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsActualEndingActivityQuery()
true
if an ending activity query is available,
false
otherwisemandatory
- This method must be implemented. ActivityQuery getActualEndingActivityQuery()
UnimplementedException
-
supportsEndingActivityQuery()
is false
optional
- This method must be implemented if
supportsEndingActivityQuery()
is true.
void matchAnyActualEndingActivity(boolean match)
match
- true
to match lessons with any ending
activity, false
to match lessons with no ending
activitymandatory
- This method must be implemented. void clearActualEndingActivityTerms()
mandatory
- This method must be implemented. void matchActualTimeSpent(Duration from, Duration to, boolean match)
from
- a starting dateto
- a ending datematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void matchAnyActualTimeSpent(boolean match)
match
- true
to match lessons with any actual
time spent, false
to match lessons with no time
spentmandatory
- This method must be implemented. void clearActualTimeSpentTerms()
mandatory
- This method must be implemented. void matchCourseCatalogId(Id courseCatalogId, boolean match)
Id
for this query to match syllabi
assigned to course catalogs.courseCatalogId
- a 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. LessonQueryRecord getLessonQueryRecord(Type lessonRecordType) throws OperationFailedException
Lesson
record Type.
Multiple record retrievals produce
a nested boolean OR
term.lessonRecordType
- a lesson record typeNullArgumentException
- lessonRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(lessonRecordType)
is false
mandatory
- This method must be implemented.