public interface OfferingQuery extends OsidRelationshipQuery
This is the query for searching offerings. Each method specifies an
AND term while multiple invocations of the same method
produce a nested OR.
| Modifier and Type | Method and Description |
|---|---|
void |
clearCanonicalUnitIdTerms()
Clears the canonical unit
Id terms. |
void |
clearCanonicalUnitTerms()
Clears the canonical unit terms.
|
void |
clearCatalogueIdTerms()
Clears all catalogue
Id terms. |
void |
clearCatalogueTerms()
Clears all catalogue terms.
|
void |
clearCodeTerms()
Clears all code terms.
|
void |
clearResultOptionIdTerms()
Clears the grade system
Id terms. |
void |
clearResultOptionTerms()
Clears the grading option terms.
|
void |
clearSponsorIdTerms()
Clears the sponsor
Id terms. |
void |
clearSponsorTerms()
Clears the sponsor terms.
|
void |
clearTimePeriodIdTerms()
Clears the time period
Id terms. |
void |
clearTimePeriodTerms()
Clears the time period terms.
|
void |
clearTitleTerms()
Clears all title terms.
|
CanonicalUnitQuery |
getCanonicalUnitQuery()
Gets the query for a canonical unit.
|
CatalogueQuery |
getCatalogueQuery()
Gets the query for a catalogue query.
|
OfferingQueryRecord |
getOfferingQueryRecord(Type offeringRecordType)
Gets the offering query record corresponding to the given
Offering record Type. |
GradeSystemQuery |
getResultOptionQuery()
Gets the query for a grading option.
|
ResourceQuery |
getSponsorQuery()
Gets the query for a sponsor.
|
TimePeriodQuery |
getTimePeriodQuery()
Gets the query for a time period.
|
void |
matchAnyCode(boolean match)
Matches offerings with any code.
|
void |
matchAnyResultOption(boolean match)
Matches offerings that have any grading option.
|
void |
matchAnySponsor(boolean match)
Matches offerings that have any sponsor.
|
void |
matchAnyTitle(boolean match)
Matches offerings with any title.
|
void |
matchCanonicalUnitId(Id canonicalUnitId,
boolean match)
Sets the canonical unit
Id for this query. |
void |
matchCatalogueId(Id catalogueId,
boolean match)
Sets the catalogue
Id for this query to match offerings
assigned to catalogues. |
void |
matchCode(java.lang.String code,
Type stringMatchType,
boolean match)
Matches a code.
|
void |
matchResultOptionId(Id gradeSystemId,
boolean match)
Sets the grade system
Id for this query. |
void |
matchSponsorId(Id resourceId,
boolean match)
Sets the resource
Id for this query to match offerings
that have a sponsor. |
void |
matchTimePeriodId(Id timePeriodId,
boolean match)
Sets the time period
Id for this query to match
offerings that have a related term. |
void |
matchTitle(java.lang.String title,
Type stringMatchType,
boolean match)
Matches a title.
|
boolean |
supportsCanonicalUnitQuery()
Tests if a
CanonicalUnitQuery is available. |
boolean |
supportsCatalogueQuery()
Tests if a
CatalogueQuery is available. |
boolean |
supportsResultOptionQuery()
Tests if a
GradeSystemQuery is available. |
boolean |
supportsSponsorQuery()
Tests if a
ResourceQuery is available. |
boolean |
supportsTimePeriodQuery()
Tests if a
TimePeriodQuery is available. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQueryclearCommentIdTerms, 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, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeclearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDatevoid matchCanonicalUnitId(Id canonicalUnitId, boolean match)
Id for this query.canonicalUnitId - a canonica unitl Id match - true if a positive match, false
for a negative matchNullArgumentException - canonicalUnitId
is null mandatory - This method must be implemented. void clearCanonicalUnitIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsCanonicalUnitQuery()
CanonicalUnitQuery is available. true if a canonical unit query is available,
false otherwisemandatory - This method must be implemented. CanonicalUnitQuery getCanonicalUnitQuery()
OR term.UnimplementedException -
supportsCanonicalUnitQuery() is false optional - This method must be implemented if
supportsCanonicalUnitQuery() is true.
void clearCanonicalUnitTerms()
mandatory - This method must be implemented. void matchTimePeriodId(Id timePeriodId, boolean match)
Id for this query to match
offerings that have a related term.timePeriodId - a time period Id match - true if a positive match, false
for a negative matchNullArgumentException - timePeriodId is
null mandatory - This method must be implemented. void clearTimePeriodIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsTimePeriodQuery()
TimePeriodQuery is available. true if a time period query is available,
false otherwisemandatory - This method must be implemented. TimePeriodQuery getTimePeriodQuery()
OR term.UnimplementedException -
supportsTimePeriodQuery() is false optional - This method must be implemented if
supportsTimePeriodQuery() is true. void clearTimePeriodTerms()
mandatory - This method must be implemented. void matchTitle(java.lang.String title,
Type stringMatchType,
boolean match)
title - a titlestringMatchType - a string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - title is not
of stringMatchType NullArgumentException - title or
stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyTitle(boolean match)
match - true to match offerings with any title,
false to match offerings with no titlemandatory - This method must be implemented. void clearTitleTerms()
mandatory - This method must be implemented. void matchCode(java.lang.String code,
Type stringMatchType,
boolean match)
code - a codestringMatchType - a string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - code is not
of stringMatchType NullArgumentException - code or
stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyCode(boolean match)
match - true to match offerings with any code,
false to match offerings with no codemandatory - This method must be implemented. void clearCodeTerms()
mandatory - This method must be implemented. void matchResultOptionId(Id gradeSystemId, boolean match)
Id for this query.gradeSystemId - a grade system Id match - true if a positive match, false
for a negative matchNullArgumentException - gradeSystemId is
null mandatory - This method must be implemented. void clearResultOptionIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsResultOptionQuery()
GradeSystemQuery is available. true if a grade system query is available,
false otherwisemandatory - This method must be implemented. GradeSystemQuery getResultOptionQuery()
OR term.UnimplementedException -
supportsResultOptionQuery() is false optional - This method must be implemented if
supportsGradingOptionQuery() is true.
void matchAnyResultOption(boolean match)
match - true to match offerings with any grading
option, false to match offerings with no
grading optionsmandatory - This method must be implemented. void clearResultOptionTerms()
mandatory - This method must be implemented. void matchSponsorId(Id resourceId, boolean match)
Id for this query to match offerings
that have a sponsor.resourceId - a resource Id match - true if a positive match, false
for a negative matchNullArgumentException - resourceId is
null mandatory - This method must be implemented. void clearSponsorIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsSponsorQuery()
ResourceQuery is available. true if a resource query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getSponsorQuery()
OR term.UnimplementedException - supportsSponsorQuery()
is false optional - This method must be implemented if
supportsSponsorQuery() is true. void matchAnySponsor(boolean match)
match - true to match offerings with any sponsor,
false to match offerings with no sponsorsmandatory - This method must be implemented. void clearSponsorTerms()
mandatory - This method must be implemented. void matchCatalogueId(Id catalogueId, boolean match)
Id for this query to match offerings
assigned to catalogues.catalogueId - a catalogue Id match - true for a positive match, false
for a negative matchNullArgumentException - catalogueId is
null mandatory - This method must be implemented. void clearCatalogueIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsCatalogueQuery()
CatalogueQuery is available. true if a catalogue query is available,
false otherwisemandatory - This method must be implemented. CatalogueQuery getCatalogueQuery()
OR term.UnimplementedException -
supportsCatalogueQuery() is false optional - This method must be implemented if
supportsCatalogueQuery() is true. void clearCatalogueTerms()
mandatory - This method must be implemented. OfferingQueryRecord getOfferingQueryRecord(Type offeringRecordType) throws OperationFailedException
Offering record Type. Multiple record
retrievals produce a nested OR term.offeringRecordType - an offering record typeNullArgumentException - offeringRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(offeringRecordType) is false
mandatory - This method must be implemented.