Interface InstructionQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidEnablerQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRelationshipQuery, OsidRuleApplicatorQuery, OsidRuleQuery, OsidTemporalQuery, Suppliable
This is the query for searching instructions. Each method match
specifies an AND term while multiple invocations of the same
method produce a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the agendaIdquery terms.voidClears the agenda query terms.voidClears the break-on-success query terms.voidClears the checkIdquery terms.voidClears the check query terms.voidClears the continue-on-fail query terms.voidClears the engineIdquery terms.voidClears the engine query terms.voidClears the message query terms.voidClears the order terms.voidClears the warning query terms.Gets the query for an agenda.Gets the query for a check.Gets the query for an engine.getInstructionQueryRecord(Type instructionRecordType) Gets the instruction query record corresponding to the givenInstructionrecordType.voidmatchAgendaId(Id agendaId, boolean match) Sets the agendaIdfor this query.voidmatchAnyBreakOnSuccess(boolean match) Matches instructions that have any break on success status set.voidmatchAnyContinueOnFail(boolean match) Matches instructions that have any continue on fail status set.voidmatchAnyMessage(boolean match) Matches instructions that have any message.voidmatchAnyWarning(boolean match) Matches instructions that have any warning status set.voidmatchBreakOnSuccess(boolean match) Matches break-on-successl instructions.voidmatchCheckId(Id checkId, boolean match) Sets the checkIdfor this query.voidmatchContinueOnFail(boolean match) Matches continue-on-fail instructions.voidmatchEngineId(Id engineId, boolean match) Sets the engineIdfor this query to match instructions assigned to engines.voidmatchMessage(String message, Type stringMatchType, boolean match) Adds a message for this query.voidmatchOrder(long from, long to, boolean match) Matches instructions within the given order range inclusive.voidmatchWarning(boolean match) Matches warnings.booleanTests if anAgendaQueryis available.booleanTests if aCheckQueryis available.booleanTests if aEngineQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidEnablerQuery
clearCyclicEventIdTerms, clearCyclicEventTerms, clearCyclicTimePeriodIdTerms, clearCyclicTimePeriodTerms, clearEventIdTerms, clearEventTerms, clearRequirementTerms, clearScheduleIdTerms, clearScheduleTerms, clearTimePeriodIdTerms, clearTimePeriodTerms, getCyclicEventQuery, getCyclicTimePeriodQuery, getEventQuery, getScheduleQuery, getTimePeriodQuery, matchAnyCyclicEvent, matchAnyCyclicTimePeriod, matchAnyEvent, matchAnyRequirement, matchAnySchedule, matchAnyTimePeriod, matchCyclicEventId, matchCyclicTimePeriodId, matchEventId, matchRequirement, matchScheduleId, matchTimePeriodId, supportsCyclicEventQuery, supportsCyclicTimePeriodQuery, supportsEventQuery, supportsScheduleQuery, supportsTimePeriodQueryModifier and TypeMethodDescriptionvoidClears the cyclic eventIdquery terms.voidClears the cyclic event query terms.voidClears the cyclic time periodIdquery terms.voidClears the cyclic time period query terms.voidClears all eventIdterms.voidClears all recurirng event terms.voidClears all requirement terms.voidClears all scheduleIdterms.voidClears all schedule terms.voidClears the time periodIdquery terms.voidClears the time period query terms.Gets the query for a cyclic event.Gets the query for a cyclic time period.getEventQuery(boolean match) Gets the query for the event.getScheduleQuery(boolean match) Gets the query for the schedule.Gets the query for a time period.voidmatchAnyCyclicEvent(boolean match) Matches any enabler with a cyclic event.voidmatchAnyCyclicTimePeriod(boolean match) Matches any enabler with a cyclic time period.voidmatchAnyEvent(boolean match) Match any associated event.voidmatchAnyRequirement(boolean match) MatchOsidEnablerswith any requirement flag set.voidmatchAnySchedule(boolean match) Match any associated schedule.voidmatchAnyTimePeriod(boolean match) Matches any enabler with a time period.voidmatchCyclicEventId(Id cyclicEventId, boolean match) Sets the cyclic eventIdfor this query.voidmatchCyclicTimePeriodId(Id cyclicTimePeriodId, boolean match) Sets the cyclic time periodIdfor this query.voidmatchEventId(Id eventId, boolean match) Match theIdof an associated event.voidmatchRequirement(boolean match) Matches enablers that are requirements,voidmatchScheduleId(Id scheduleId, boolean match) Match theIdof an associated schedule.voidmatchTimePeriodId(Id timePeriodId, boolean match) Sets the time periodIdfor this query.booleanTests if aCyclicEventQueryis available.booleanTests if aCyclicTimePeriodquery is available.booleanTests if aEventQueryfor the rule is available.booleanTests if aScheduleQueryfor the rule is available.booleanTests if aTimePeriodquery is available.Methods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeModifier and TypeMethodDescriptionvoidClears all recordTypeterms.voidmatchAnyRecord(boolean match) Matches an object that has any record.voidmatchRecordType(Type recordType, boolean match) Sets aTypefor querying objects having records implementing a given record type.Methods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdModifier and TypeMethodDescriptionvoidClears allIdterms.voidAdds anIdto match.Methods 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, supportsSubjectRelevancyQueryModifier and TypeMethodDescriptionvoidClears all commentIdterms.voidClears all comment terms.voidClears all creditIdterms.voidClears all credit terms.voidClears all description terms.voidClears all display name terms.voidClears all genus type terms.voidClears all journal entryIdterms.voidClears all journal entry terms.voidClears all genus type terms.voidClears all relationshipIdterms.voidClears all relationshipIdterms.voidClears all relationship terms.voidClears all stateIdterms.voidClears all state terms.voidClears all statistic terms.voidClears all subjectIdterms.voidClears all subject relevancy terms.voidClears all subject terms.Gets the query for a comment.Gets the query for an ackowledgement credit.Gets the query for a journal entry.Gets the query for relationship.Gets the query for a state.Gets the query for a statistic.Gets the query for a subject.Gets the query for a subject relevancy.voidmatchAnyComment(boolean match) Matches an object that has anyCommentin the givenBook.voidmatchAnyCredit(boolean match) Matches an object that has anyCredit.voidmatchAnyDescription(boolean match) Matches a description that has any value.voidmatchAnyDisplayName(boolean match) Matches any object with a display name.voidmatchAnyGenusType(boolean match) Matches an object that has any genus type.voidmatchAnyJournalEntry(boolean match) Matches an object that has anyJournalEntryin the givenJournal.voidmatchAnyRelationship(boolean match) Matches an object that has anyRelationship.voidmatchAnyState(boolean match) Matches an object that has any mapping to aStatein the givenProcess.voidmatchAnyStatistic(boolean match) Matches an object that has anyStatistic.voidmatchAnySubject(boolean match) Matches an object that has any relationship to aSubject.voidmatchCommentId(Id commentId, boolean match) Matches an object that has the given comment.voidmatchCreditId(Id creditId, boolean match) Matches an object that has the given credit.voidmatchDescription(String description, Type stringMatchType, boolean match) Adds a description name to match.voidmatchDisplayName(String displayName, Type stringMatchType, boolean match) Adds a display name to match.voidmatchGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchJournalEntryId(Id journalEntryId, boolean match) Matches an object that has the given journal entry.voidmatchParentGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchRelationshipId(Id relationshipId, boolean match) Matches an object that has the given relationship.voidmatchRelationshipPeerId(Id peerId, boolean match) Matches an object that has a relationship to the given peerId.voidmatchStateId(Id stateId, boolean match) Matches an object mapped to the given state.voidmatchSubjectId(Id subjectId, boolean match) Matches an object with a relationship to the given subject.booleanTests if aCommentQueryis available.booleanTests if aCreditQueryis available to provide queries of related acknowledgements.booleanTests if aJournalEntryis available to provide queries of journaledOsidObjects.booleanTests if aRelationshipQueryis available.booleanTests if aStateQueryis available to provide queries of processed objects.booleanTests if aStatisticQueryis available to provide statistical queries.booleanTests if aSubjectQueryis available.booleanTests if aRelevancyQueryis available to provide queries about the relationships toSubjects.Methods inherited from interface OsidOperableQuery
clearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperationalModifier and TypeMethodDescriptionvoidClears the active query terms.voidClears the administratively disabled query terms.voidClears the administratively enabled query terms.voidClears the operational query terms.voidmatchActive(boolean match) Matches active.voidmatchDisabled(boolean match) Matches administratively disabled.voidmatchEnabled(boolean match) Matches administratively enabled.voidmatchOperational(boolean match) Matches operational operables.Methods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeModifier and TypeMethodDescriptionvoidClears the match any terms.voidClears all keyword terms.Gets the string matching types supported.voidmatchAny(boolean match) Matches any object.voidmatchKeyword(String keyword, Type stringMatchType, boolean match) Adds a keyword to match.booleansupportsStringMatchType(Type stringMatchType) Tests if the given string matching type is supported.Methods inherited from interface OsidRelationshipQuery
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQueryModifier and TypeMethodDescriptionvoidClears all stateIdterms.voidClears all end reason state terms.getEndReasonQuery(boolean match) Gets the query for the end reason state.voidmatchAnyEndReason(boolean match) Match any end reason state.voidmatchEndReasonId(Id stateId, boolean match) Match theIdof the end reason state.booleanTests if aStateQueryfor the end reason is available.Methods inherited from interface OsidRuleApplicatorQuery
clearResourceIdTerms, clearResourceTerms, getResourceQuery, matchAnyResource, matchResourceId, supportsResourceQueryModifier and TypeMethodDescriptionvoidClears all resourceIdterms.voidClears all resource terms.getResourceQuery(boolean match) Gets the query for the resource.voidmatchAnyResource(boolean match) Match any associated resource.voidmatchResourceId(Id resourceId, boolean match) Match theIdof the resource.booleanTests if aResourceQueryis available.Methods inherited from interface OsidRuleQuery
clearConditionRecordTypeTerms, clearRuleIdTerms, clearRuleTerms, getRuleQuery, matchAnyConditionRecordType, matchAnyRule, matchConditionRecordType, matchRuleId, supportsRuleQueryModifier and TypeMethodDescriptionvoidClears the condition recordTypequery terms.voidClears all ruleIdterms.voidClears all rule terms.getRuleQuery(boolean match) Gets the query for the rule.voidmatchAnyConditionRecordType(boolean match) Matches rules with any condition record type.voidmatchAnyRule(boolean match) Match any associated rule.voidmatchConditionRecordType(Type conditionRecordType, boolean match) Matches a condition record type.voidmatchRuleId(Id ruleId, boolean match) Match theIdof the rule.booleanTests if aRuleQueryfor the rule is available.Methods inherited from interface OsidTemporalQuery
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDateModifier and TypeMethodDescriptionvoidClears the date query terms.voidClears the effective query terms.voidClears the end date query terms.voidClears the start date query terms.voidmatchAnyEndDate(boolean match) Matches temporals with any end date set.voidmatchAnyStartDate(boolean match) Matches temporals with any start date set.voidMatches temporals where the given date range falls entirely between the start and end dates inclusive.voidmatchEffective(boolean match) Match effective objects where the current date falls within the start and end dates inclusive.voidmatchEndDate(DateTime start, DateTime end, boolean match) Matches temporals whose effective end date falls in between the given dates inclusive.voidmatchStartDate(DateTime start, DateTime end, boolean match) Matches temporals whose start date falls in between the given dates inclusive.
-
Method Details
-
matchAgendaId
Sets the agendaIdfor this query.- Parameters:
agendaId- the agendaIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-agendaIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAgendaIdTerms
void clearAgendaIdTerms()Clears the agendaIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsAgendaQuery
boolean supportsAgendaQuery()Tests if anAgendaQueryis available.- Returns:
trueif an agenda query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAgendaQuery
AgendaQuery getAgendaQuery()Gets the query for an agenda. Multiple retrievals produce a nestedORterm.- Returns:
- the agenda query
- Throws:
UnimplementedException-supportsAgendaQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAgendaQuery()} is {@code true} .
-
clearAgendaTerms
void clearAgendaTerms()Clears the agenda query terms.- Compliance:
mandatory- This method must be implemented.
-
matchCheckId
Sets the checkIdfor this query.- Parameters:
checkId- the checkIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-checkIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCheckIdTerms
void clearCheckIdTerms()Clears the checkIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsCheckQuery
boolean supportsCheckQuery()Tests if aCheckQueryis available.- Returns:
trueif a check query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCheckQuery
CheckQuery getCheckQuery()Gets the query for a check. Multiple retrievals produce a nestedORterm.- Returns:
- the check query
- Throws:
UnimplementedException-supportsCheckQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCheckQuery()} is {@code true} .
-
clearCheckTerms
void clearCheckTerms()Clears the check query terms.- Compliance:
mandatory- This method must be implemented.
-
matchMessage
Adds a message for this query.- Parameters:
message- message string to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-messagenot ofstringMatchTypeNullArgumentException-messageorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyMessage
void matchAnyMessage(boolean match) Matches instructions that have any message.- Parameters:
match-trueto match instructions with any message,falseto match instructions with no message- Compliance:
mandatory- This method must be implemented.
-
clearMessageTerms
void clearMessageTerms()Clears the message query terms.- Compliance:
mandatory- This method must be implemented.
-
matchWarning
void matchWarning(boolean match) Matches warnings.- Parameters:
match-trueto match warnings,falseto match hard errors- Compliance:
mandatory- This method must be implemented.
-
matchAnyWarning
void matchAnyWarning(boolean match) Matches instructions that have any warning status set.- Parameters:
match-trueto match instructions with any warning status set,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
clearWarningTerms
void clearWarningTerms()Clears the warning query terms.- Compliance:
mandatory- This method must be implemented.
-
matchContinueOnFail
void matchContinueOnFail(boolean match) Matches continue-on-fail instructions.- Parameters:
match-trueto match continue-on-fail instructions,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
matchAnyContinueOnFail
void matchAnyContinueOnFail(boolean match) Matches instructions that have any continue on fail status set.- Parameters:
match-trueto match instructions with any continue on fail status set,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
clearContinueOnFailTerms
void clearContinueOnFailTerms()Clears the continue-on-fail query terms.- Compliance:
mandatory- This method must be implemented.
-
matchBreakOnSuccess
void matchBreakOnSuccess(boolean match) Matches break-on-successl instructions.- Parameters:
match-trueto match break-on-successl instructions,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
matchAnyBreakOnSuccess
void matchAnyBreakOnSuccess(boolean match) Matches instructions that have any break on success status set.- Parameters:
match-trueto match instructions with any break on success status set,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
clearBreakOnSuccessTerms
void clearBreakOnSuccessTerms()Clears the break-on-success query terms.- Compliance:
mandatory- This method must be implemented.
-
matchEngineId
Sets the engineIdfor this query to match instructions assigned to engines.- Parameters:
engineId- the engineIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-engineIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearEngineIdTerms
void clearEngineIdTerms()Clears the engineIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsEngineQuery
boolean supportsEngineQuery()Tests if aEngineQueryis available.- Returns:
trueif an engine query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getEngineQuery
EngineQuery getEngineQuery()Gets the query for an engine. Multiple retrievals produce a nestedORterm.- Returns:
- the engine query
- Throws:
UnimplementedException-supportsEngineQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEngineQuery()} is {@code true} .
-
clearEngineTerms
void clearEngineTerms()Clears the engine query terms.- Compliance:
mandatory- This method must be implemented.
-
matchOrder
void matchOrder(long from, long to, boolean match) Matches instructions within the given order range inclusive.- Parameters:
from- start of rangeto- end of rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-fromis greater thanto- Compliance:
mandatory- This method must be implemented.
-
clearOrderTerms
void clearOrderTerms()Clears the order terms.- Compliance:
mandatory- This method must be implemented.
-
getInstructionQueryRecord
InstructionQueryRecord getInstructionQueryRecord(Type instructionRecordType) throws OperationFailedException, PermissionDeniedException Gets the instruction query record corresponding to the givenInstructionrecordType. Multiple record retrievals produce a nestedORterm.- Parameters:
instructionRecordType- an instruction record type- Returns:
- the instruction query record
- Throws:
NullArgumentException-instructionRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-hasRecordType(instructionRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-