Interface TriggerQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, OsidSubjugateableQuery, Suppliable
This is the query for searching triggers. Each method match specifies
an AND term while multiple invocations of the same method produce
a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the action groupIdquery terms.voidClears the action group query terms.voidClears the changed state event query terms.voidClears the changed amount event query terms.voidClears the controllerIdquery terms.voidClears the controller query terms.voidClears the deceeds amount event query terms.voidClears the discreet stateIdquery terms.voidClears the discreet state query terms.voidClears the exceeds amount event query terms.voidClears the sceneIdquery terms.voidClears the scene query terms.voidClears the settingIdquery terms.voidClears the setting query terms.voidClears the systemIdquery terms.voidClears the system query terms.voidClears the OFF event query terms.voidClears the ON event query terms.Gets the query for an action group.Gets the query for a controller.Gets the query for a discreet state.Gets the query for a scene.Gets the query for a setting.Gets the query for a system.getTriggerQueryRecord(Type triggerRecordType) Gets the trigger query record corresponding to the givenTriggerrecordType.Multiple record retrievals produce a nestedORterm.voidmatchActionGroupId(Id actionGroupId, boolean match) Sets the action groupIdfor this query.voidmatchAnyActionGroup(boolean match) Matches triggers with any action group.voidmatchAnyDeceedsVariableAmount(boolean match) Matches triggers with any deceeds variable amount.voidmatchAnyDiscreetState(boolean match) Matches triggers with any discreet state.voidmatchAnyExceedsVariableAmount(boolean match) Matches triggers with any exceeds variable amount.voidmatchAnyScene(boolean match) Matches triggers with any scene.voidmatchAnySetting(boolean match) Matches triggers with any setting.voidmatchChangedDiscreetState(boolean match) Matches triggers listening for changed state events.voidmatchChangedVariableAmount(boolean match) Matches triggers listening for changed amount events.voidmatchControllerId(Id controllerId, boolean match) Sets the controllerIdfor this query.voidmatchDeceedsVariableAmount(BigDecimal start, BigDecimal end, boolean match) Matches triggers listening for deceeds amount events between the given values inclusive.voidmatchDiscreetStateId(Id stateId, boolean match) Sets the stateIdfor this query.voidmatchExceedsVariableAmount(BigDecimal start, BigDecimal end, boolean match) Matches triggers listening for exceeds amount events between the given values inclusive.voidmatchSceneId(Id sceneId, boolean match) Sets the sceneIdfor this query.voidmatchSettingId(Id settingId, boolean match) Sets the settingIdfor this query.voidmatchSystemId(Id triggerId, boolean match) Sets the systemIdfor this query to match triggers assigned to systems.voidmatchTurnedOff(boolean match) Matches triggers listening for OFF events.voidmatchTurnedOn(boolean match) Matches triggers listening for ON events.booleanTests if anActionGroupQueryis available.booleanTests if aControllerQueryis available.booleanTests if aStateQueryis available.booleanTests if aSceneQueryis available.booleanTests if aSettingQueryis available.booleanTests if aSystemQueryis 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 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 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.
-
Method Details
-
matchControllerId
Sets the controllerIdfor this query.- Parameters:
controllerId- a controllerIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-controllerIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearControllerIdTerms
void clearControllerIdTerms()Clears the controllerIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsControllerQuery
boolean supportsControllerQuery()Tests if aControllerQueryis available.- Returns:
trueif a controller query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getControllerQuery
ControllerQuery getControllerQuery()Gets the query for a controller. Multiple retrievals produce a nestedORterm.- Returns:
- the controller query
- Throws:
UnimplementedException-supportsControllerQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsControllerQuery()} is {@code true} .
-
clearControllerTerms
void clearControllerTerms()Clears the controller query terms.- Compliance:
mandatory- This method must be implemented.
-
matchTurnedOn
void matchTurnedOn(boolean match) Matches triggers listening for ON events.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearTurnedOnTerms
void clearTurnedOnTerms()Clears the ON event query terms.- Compliance:
mandatory- This method must be implemented.
-
matchTurnedOff
void matchTurnedOff(boolean match) Matches triggers listening for OFF events.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearTurnedOffTerms
void clearTurnedOffTerms()Clears the OFF event query terms.- Compliance:
mandatory- This method must be implemented.
-
matchChangedVariableAmount
void matchChangedVariableAmount(boolean match) Matches triggers listening for changed amount events.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearChangedVariableAmountTerms
void clearChangedVariableAmountTerms()Clears the changed amount event query terms.- Compliance:
mandatory- This method must be implemented.
-
matchExceedsVariableAmount
Matches triggers listening for exceeds amount events between the given values inclusive.- Parameters:
start- start of rangeend- end of rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-startis greater thanend- Compliance:
mandatory- This method must be implemented.
-
matchAnyExceedsVariableAmount
void matchAnyExceedsVariableAmount(boolean match) Matches triggers with any exceeds variable amount.- Parameters:
match-trueto match triggers with any exceeds amount,falseto match triggers with no exceeds amount- Compliance:
mandatory- This method must be implemented.
-
clearExceedsVariableAmountTerms
void clearExceedsVariableAmountTerms()Clears the exceeds amount event query terms.- Compliance:
mandatory- This method must be implemented.
-
matchDeceedsVariableAmount
Matches triggers listening for deceeds amount events between the given values inclusive.- Parameters:
start- start of rangeend- end of rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-startis greater thanend- Compliance:
mandatory- This method must be implemented.
-
matchAnyDeceedsVariableAmount
void matchAnyDeceedsVariableAmount(boolean match) Matches triggers with any deceeds variable amount.- Parameters:
match-trueto match triggers with any deceeds amount,falseto match triggers with no deceeds amount- Compliance:
mandatory- This method must be implemented.
-
clearDeceedsVariableAmountTerms
void clearDeceedsVariableAmountTerms()Clears the deceeds amount event query terms.- Compliance:
mandatory- This method must be implemented.
-
matchChangedDiscreetState
void matchChangedDiscreetState(boolean match) Matches triggers listening for changed state events.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearChangedDiscreetStateTerms
void clearChangedDiscreetStateTerms()Clears the changed state event query terms.- Compliance:
mandatory- This method must be implemented.
-
matchDiscreetStateId
Sets the stateIdfor this query.- Parameters:
stateId- a stateIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-stateIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDiscreetStateIdTerms
void clearDiscreetStateIdTerms()Clears the discreet stateIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsDiscreetStateQuery
boolean supportsDiscreetStateQuery()Tests if aStateQueryis available.- Returns:
trueif a discreet state query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDiscreetStateQuery
StateQuery getDiscreetStateQuery()Gets the query for a discreet state. Multiple retrievals produce a nestedORterm.- Returns:
- the discreet state query
- Throws:
UnimplementedException-supportsDiscreetStateQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDiscreetStateQuery()} is {@code true} .
-
matchAnyDiscreetState
void matchAnyDiscreetState(boolean match) Matches triggers with any discreet state.- Parameters:
match-trueto match triggers with any discreet state,falseto match triggers with no discreet states- Compliance:
mandatory- This method must be implemented.
-
clearDiscreetStateTerms
void clearDiscreetStateTerms()Clears the discreet state query terms.- Compliance:
mandatory- This method must be implemented.
-
matchActionGroupId
Sets the action groupIdfor this query.- Parameters:
actionGroupId- an action groupIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-actionGroupIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearActionGroupIdTerms
void clearActionGroupIdTerms()Clears the action groupIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsActionGroupQuery
boolean supportsActionGroupQuery()Tests if anActionGroupQueryis available.- Returns:
trueif an action group query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getActionGroupQuery
ActionGroupQuery getActionGroupQuery()Gets the query for an action group. Multiple retrievals produce a nestedORterm.- Returns:
- the action group query
- Throws:
UnimplementedException-supportsActionGroupQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsActionGroupQuery()} is {@code true} .
-
matchAnyActionGroup
void matchAnyActionGroup(boolean match) Matches triggers with any action group.- Parameters:
match-trueto match triggers with any action group,,falseto match triggers with no action groups- Compliance:
mandatory- This method must be implemented.
-
clearActionGroupTerms
void clearActionGroupTerms()Clears the action group query terms.- Compliance:
mandatory- This method must be implemented.
-
matchSceneId
Sets the sceneIdfor this query.- Parameters:
sceneId- a sceneIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-sceneIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSceneIdTerms
void clearSceneIdTerms()Clears the sceneIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsSceneQuery
boolean supportsSceneQuery()Tests if aSceneQueryis available.- Returns:
trueif a scene query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSceneQuery
SceneQuery getSceneQuery()Gets the query for a scene. Multiple retrievals produce a nestedORterm.- Returns:
- the scene query
- Throws:
UnimplementedException-supportsSceneQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSceneQuery()} is {@code true} .
-
matchAnyScene
void matchAnyScene(boolean match) Matches triggers with any scene.- Parameters:
match-trueto match triggers with any scene,falseto match triggers with no scenes- Compliance:
mandatory- This method must be implemented.
-
clearSceneTerms
void clearSceneTerms()Clears the scene query terms.- Compliance:
mandatory- This method must be implemented.
-
matchSettingId
Sets the settingIdfor this query.- Parameters:
settingId- a settingIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-settingIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSettingIdTerms
void clearSettingIdTerms()Clears the settingIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsSettingQuery
boolean supportsSettingQuery()Tests if aSettingQueryis available.- Returns:
trueif a setting query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSettingQuery
SettingQuery getSettingQuery()Gets the query for a setting. Multiple retrievals produce a nestedORterm.- Returns:
- the setting query
- Throws:
UnimplementedException-supportsSettingQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSettingQuery()} is {@code true} .
-
matchAnySetting
void matchAnySetting(boolean match) Matches triggers with any setting.- Parameters:
match-trueto match triggers with any setting,falseto match triggers with no settings- Compliance:
mandatory- This method must be implemented.
-
clearSettingTerms
void clearSettingTerms()Clears the setting query terms.- Compliance:
mandatory- This method must be implemented.
-
matchSystemId
Sets the systemIdfor this query to match triggers assigned to systems.- Parameters:
triggerId- the triggerIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-triggerIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSystemIdTerms
void clearSystemIdTerms()Clears the systemIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsSystemQuery
boolean supportsSystemQuery()Tests if aSystemQueryis available.- Returns:
trueif a system query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSystemQuery
SystemQuery getSystemQuery()Gets the query for a system. Multiple retrievals produce a nestedORterm.- Returns:
- the system query
- Throws:
UnimplementedException-supportsSystemQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSystemQuery()} is {@code true} .
-
clearSystemTerms
void clearSystemTerms()Clears the system query terms.- Compliance:
mandatory- This method must be implemented.
-
getTriggerQueryRecord
Gets the trigger query record corresponding to the givenTriggerrecordType.Multiple record retrievals produce a nestedORterm.- Parameters:
triggerRecordType- a trigger record type- Returns:
- the trigger query record
- Throws:
NullArgumentException-triggerRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(triggerRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-