Interface JobConstrainerQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidConstrainerQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, Suppliable
This is the query for searching job constrainers. Each method match
specifies an AND term while multiple invocations of the same
method produce a nested OR.
Like all OsidQueries, JobConstrainerQuery is stateful
and must not be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the foundryIdquery terms.voidClears the foundry query terms.voidClears the jobIdquery terms.voidClears the job query terms.Gets the query for a foundry.getJobConstrainerQueryRecord(Type jobConstrainerRecordType) Gets the job constrainer query record corresponding to the givenJobConstrainerrecordType.Gets the query for a job.voidmatchAnyRuledJob(boolean match) Matches mapped to any job.voidmatchFoundryId(Id foundryId, boolean match) Matches mapped to the foundry.voidmatchRuledJobId(Id foundryId, boolean match) Matches mapped to a job.booleanTests if aFoundryQueryis available.booleanTests if anJobQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeMethods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdMethods inherited from interface OsidObjectQuery
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, supportsSubjectRelevancyQueryMethods inherited from interface OsidOperableQuery
clearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperationalMethods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeMethods inherited from interface OsidRuleQuery
clearConditionRecordTypeTerms, clearRuleIdTerms, clearRuleTerms, getRuleQuery, matchAnyConditionRecordType, matchAnyRule, matchConditionRecordType, matchRuleId, supportsRuleQuery
-
Method Details
-
matchRuledJobId
Matches mapped to a job.- Parameters:
foundryId- the jobIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-foundryIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRuledJobIdTerms
void clearRuledJobIdTerms()Clears the jobIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsRuledJobQuery
boolean supportsRuledJobQuery()Tests if anJobQueryis available.- Returns:
trueif a job query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRuledJobQuery
JobQuery getRuledJobQuery()Gets the query for a job. Multiple retrievals produce a nestedORterm.- Returns:
- the job query
- Throws:
UnimplementedException-supportsRuledJobQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRuledJobQuery()} is {@code true}.
-
matchAnyRuledJob
void matchAnyRuledJob(boolean match) Matches mapped to any job.- Parameters:
match-truefor mapped to any job,falseto match mapped to no jobs- Compliance:
mandatory- This method must be implemented.
-
clearRuledJobTerms
void clearRuledJobTerms()Clears the job query terms.- Compliance:
mandatory- This method must be implemented.
-
matchFoundryId
Matches mapped to the foundry.- Parameters:
foundryId- the foundryIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-foundryIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearFoundryIdTerms
void clearFoundryIdTerms()Clears the foundryIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsFoundryQuery
boolean supportsFoundryQuery()Tests if aFoundryQueryis available.- Returns:
trueif a foundry query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getFoundryQuery
FoundryQuery getFoundryQuery()Gets the query for a foundry. Multiple retrievals produce a nestedORterm.- Returns:
- the foundry query
- Throws:
UnimplementedException-supportsFoundryQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsFoundryQuery()} is {@code true}.
-
clearFoundryTerms
void clearFoundryTerms()Clears the foundry query terms.- Compliance:
mandatory- This method must be implemented.
-
getJobConstrainerQueryRecord
JobConstrainerQueryRecord getJobConstrainerQueryRecord(Type jobConstrainerRecordType) throws OperationFailedException Gets the job constrainer query record corresponding to the givenJobConstrainerrecordType. Multiple record retrievals produce a nestedORterm.- Parameters:
jobConstrainerRecordType- a job constrainer record type- Returns:
- the job constrainer query record
- Throws:
NullArgumentException-jobConstrainerRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(jobConstrainerRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-