public interface ProgramQuery extends OsidObjectQuery, OsidOperableQuery
This is the query for searching programs. 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 |
clearCompletionRequirementsIdTerms()
Clears the requisite
Id terms. |
void |
clearCompletionRequirementsInfoTerms()
Clears the completion requirements info terms.
|
void |
clearCompletionRequirementsTerms()
Clears the requisite terms.
|
void |
clearCourseCatalogIdTerms()
Clears the course catalog
Id terms. |
void |
clearCourseCatalogTerms()
Clears the course catalog terms.
|
void |
clearCredentialIdTerms()
Clears the credential
Id terms. |
void |
clearCredentialTerms()
Clears the credential terms.
|
void |
clearNumberTerms()
Clears the number terms.
|
void |
clearProgramOfferingIdTerms()
Clears the program offering
Id terms. |
void |
clearProgramOfferingTerms()
Clears the program offering terms.
|
void |
clearSponsorIdTerms()
Clears the sponsor
Id terms. |
void |
clearSponsorTerms()
Clears the sponsor terms.
|
void |
clearTitleTerms()
Clears the title terms.
|
RequisiteQuery |
getCompletionRequirementsQuery()
Gets the query for a requisite.
|
CourseCatalogQuery |
getCourseCatalogQuery()
Gets the query for a course catalog.
|
CredentialQuery |
getCredentialQuery()
Gets the query for a credential.
|
ProgramOfferingQuery |
getProgramOfferingQuery()
Gets the query for a program offering.
|
ProgramQueryRecord |
getProgramQueryRecord(Type programRecordType)
Gets the program query record corresponding to the given
Program record Type. |
ResourceQuery |
getSponsorQuery()
Gets the query for a sponsor.
|
void |
matchAnyCompletionRequirements(boolean match)
Matches programs that have any completion requirement requisite.
|
void |
matchAnyCompletionRequirementsInfo(boolean match)
Matches a program that has any completion requirements information
assigned.
|
void |
matchAnyCredential(boolean match)
Matches programs that have any credentials.
|
void |
matchAnyNumber(boolean match)
Matches a programs number that has any value.
|
void |
matchAnyProgramOffering(boolean match)
Matches programs that have any program offering.
|
void |
matchAnySponsor(boolean match)
Matches programs that have any sponsor.
|
void |
matchAnyTitle(boolean match)
Matches a title that has any value.
|
void |
matchCompletionRequirementsId(Id ruleId,
boolean match)
Sets the requisite
Id for this query. |
void |
matchCompletionRequirementsInfo(java.lang.String requirementsInfo,
Type stringMatchType,
boolean match)
Matches programs with the prerequisites informational string.
|
void |
matchCourseCatalogId(Id courseCatalogId,
boolean match)
Sets the course catalog
Id for this query to match
programs assigned to course catalogs. |
void |
matchCredentialId(Id credentialId,
boolean match)
Sets the credential
Id for this query. |
void |
matchNumber(java.lang.String number,
Type stringMatchType,
boolean match)
Adds a programs number for this query.
|
void |
matchProgramOfferingId(Id programOfferingId,
boolean match)
Sets the program offering
Id for this query to match
programs that have a related program offering. |
void |
matchSponsorId(Id resourceId,
boolean match)
Sets the resource
Id for this query to match programs
that have a sponsor. |
void |
matchTitle(java.lang.String title,
Type stringMatchType,
boolean match)
Adds a title for this query.
|
boolean |
supportsCompletionRequirementsQuery()
Tests if a
RequisiteQuery is available. |
boolean |
supportsCourseCatalogQuery()
Tests if a
CourseCatalogQuery is available. |
boolean |
supportsCredentialQuery()
Tests if a
CredentialQuery is available. |
boolean |
supportsProgramOfferingQuery()
Tests if a
ProgramOfferingQuery is available. |
boolean |
supportsSponsorQuery()
Tests if a
ResourceQuery 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, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeclearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperationalvoid matchTitle(java.lang.String title,
Type stringMatchType,
boolean match)
title - title string to matchstringMatchType - the string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - title 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 programs with any title,
false to match programs with no titlemandatory - This method must be implemented. void clearTitleTerms()
mandatory - This method must be implemented. void matchNumber(java.lang.String number,
Type stringMatchType,
boolean match)
number - programs number string to matchstringMatchType - the string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - number not of
stringMatchType NullArgumentException - number or
stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyNumber(boolean match)
match - true to match programs with any number,
false to match programs with no titlemandatory - This method must be implemented. void clearNumberTerms()
mandatory - This method must be implemented. void matchSponsorId(Id resourceId, boolean match)
Id for this query to match programs
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 programs with any sponsor,
false to match programs with no sponsorsmandatory - This method must be implemented. void clearSponsorTerms()
mandatory - This method must be implemented. void matchCompletionRequirementsInfo(java.lang.String requirementsInfo,
Type stringMatchType,
boolean match)
requirementsInfo - completion requirements string to matchstringMatchType - the string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - requirementsInfo
not of stringMatchType NullArgumentException - requirementsInfo
or stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyCompletionRequirementsInfo(boolean match)
match - true to match programs with any
completion requirements information, false
otherwisemandatory - This method must be implemented. void clearCompletionRequirementsInfoTerms()
mandatory - This method must be implemented. void matchCompletionRequirementsId(Id ruleId, boolean match)
Id for this query.ruleId - a rule Id match - true if a positive match, false
for a negative matchNullArgumentException - ruleId is
null mandatory - This method must be implemented. void clearCompletionRequirementsIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsCompletionRequirementsQuery()
RequisiteQuery is available. true if a requisite query is available,
false otherwisemandatory - This method must be implemented. RequisiteQuery getCompletionRequirementsQuery()
OR term.UnimplementedException -
supportsCompletionRequirementsQuery() is false
optional - This method must be implemented if
supportsCompletionRequirementsQuery() is
true. void matchAnyCompletionRequirements(boolean match)
match - true to match programs with any
requisite, false to match programs with no
requisitesmandatory - This method must be implemented. void clearCompletionRequirementsTerms()
mandatory - This method must be implemented. void matchCredentialId(Id credentialId, boolean match)
Id for this query.credentialId - a credential Id match - true if a positive match, false
for a negative matchNullArgumentException - credentialId is
null mandatory - This method must be implemented. void clearCredentialIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsCredentialQuery()
CredentialQuery is available. true if a credential query is available,
false otherwisemandatory - This method must be implemented. CredentialQuery getCredentialQuery()
OR term.UnimplementedException -
supportsCredentialQuery() is false optional - This method must be implemented if
supportsCredentialQuery() is true. void matchAnyCredential(boolean match)
match - true to match programs with any
credentials, false to match programs with no
credentialsmandatory - This method must be implemented. void clearCredentialTerms()
mandatory - This method must be implemented. void matchProgramOfferingId(Id programOfferingId, boolean match)
Id for this query to match
programs that have a related program offering.programOfferingId - a program offering Id match - true if a positive match, false
for a negative matchNullArgumentException - programOfferingId
is null mandatory - This method must be implemented. void clearProgramOfferingIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsProgramOfferingQuery()
ProgramOfferingQuery is available. true if a program offering query is available,
false otherwisemandatory - This method must be implemented. ProgramOfferingQuery getProgramOfferingQuery()
OR term.UnimplementedException -
supportsProgramOfferingQuery() is false optional - This method must be implemented if
supportsProgramOfferingQuery() is true.
void matchAnyProgramOffering(boolean match)
match - true to match programs with any program
offering, false to match programs with no
program offeringmandatory - This method must be implemented. void clearProgramOfferingTerms()
mandatory - This method must be implemented. void matchCourseCatalogId(Id courseCatalogId, boolean match)
Id for this query to match
programs 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. ProgramQueryRecord getProgramQueryRecord(Type programRecordType) throws OperationFailedException
Program record Type. Multiple record retrievals
produce a nested OR term.programRecordType - a programs record typeNullArgumentException - programRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(programRecordType) is false
mandatory - This method must be implemented.