public interface CredentialQuery extends OsidObjectQuery
This is the query for searching credentials. 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 |
clearCourseCatalogIdTerms()
Clears the course catalog
Id terms. |
void |
clearCourseCatalogTerms()
Clears the course catalog terms.
|
void |
clearLifetimeTerms()
Clears the lifetime
Id terms. |
void |
clearProgramIdTerms()
Clears the program
Id terms. |
void |
clearProgramTerms()
Clears the program terms.
|
CourseCatalogQuery |
getCourseCatalogQuery()
Gets the query for a course catalog.
|
CredentialQueryRecord |
getCredentialQueryRecord(Type credentialRecordType)
Gets the credential query record corresponding to the given
Credential record Type. |
ProgramQuery |
getProgramQuery()
Gets the query for a program.
|
void |
matchAnyLifetime(boolean match)
Matches credentials that have any lifetime.
|
void |
matchAnyProgram(boolean match)
Matches credentials that have any program.
|
void |
matchCourseCatalogId(Id courseCatalogId,
boolean match)
Sets the course catalog
Id for this query to match
credentials assigned to course catalogs. |
void |
matchLifetime(Duration low,
Duration high,
boolean match)
Matches lifetimes between the given range inclusive.
|
void |
matchProgramId(Id programId,
boolean match)
Sets the program
Id for this query to match credentials
that have a related program. |
boolean |
supportsCourseCatalogQuery()
Tests if a
CourseCatalogQuery is available. |
boolean |
supportsProgramQuery()
Tests if a
ProgramQuery 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, supportsStringMatchTypevoid matchLifetime(Duration low, Duration high, boolean match)
low - start of rangehigh - end of rangematch - true if a positive match, false
for a negative matchInvalidArgumentException - low is
greater than high NullArgumentException - low or
high is null mandatory - This method must be implemented. void matchAnyLifetime(boolean match)
match - true to match credentials with any
lifetime, false to match credentials with no
lifetimemandatory - This method must be implemented. void clearLifetimeTerms()
Id terms.mandatory - This method must be implemented. void matchProgramId(Id programId, boolean match)
Id for this query to match credentials
that have a related program.programId - a program Id match - true if a positive match, false
for a negative matchNullArgumentException - programId is
null mandatory - This method must be implemented. void clearProgramIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsProgramQuery()
ProgramQuery is available. true if a program query is available,
false otherwisemandatory - This method must be implemented. ProgramQuery getProgramQuery()
OR term.UnimplementedException - supportsProgramQuery()
is false optional - This method must be implemented if
supportsProgramQuery() is true. void matchAnyProgram(boolean match)
match - true to match credentials with any
related program, false to match credentials
with no programsmandatory - This method must be implemented. void clearProgramTerms()
mandatory - This method must be implemented. void matchCourseCatalogId(Id courseCatalogId, boolean match)
Id for this query to match
credentials 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. CredentialQueryRecord getCredentialQueryRecord(Type credentialRecordType) throws OperationFailedException
Credential record Type. Multiple record
retrievals produce a nested OR term.credentialRecordType - a credential record typeNullArgumentException - credentialRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(credentialRecordType) is false
mandatory - This method must be implemented.