Interface RequestQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidRelationshipQuery, OsidTemporalQuery, Suppliable
This is the query for searching requests. Each method match specifies
an AND term while multiple invocations of the same method produce
a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the distributorIdquery terms.voidClears the distributor query terms.voidClears the ewa query terms.voidClears the exchange provisionIdquery terms.voidClears the exchange provision query terms.voidClears the origin provisionIdquery terms.voidClears the origin provision query terms.voidClears the poolIdquery terms.voidClears the pool query terms.voidClears the position query terms.voidClears the queueIdquery terms.voidClears the queue query terms.voidClears the request date query terms.voidClears the requested provisionableIdquery terms.voidClears the requested provisionable query terms.voidClears the resourceIdquery terms.voidClears the resource query terms.voidClears the agentIdquery terms.voidClears the agent query terms.voidClears the request transactionIdquery terms.voidClears the request transaction query terms.Gets the query for a distributor.Gets the query for an exchange provision.Gets the query for an origin provision.Gets the query for a pool.Gets the query for a queue.Gets the query for a requested provisionable.Gets the query for a resource.Gets the query for an agent.getRequestQueryRecord(Type requestRecordType) Gets the request query record corresponding to the givenRequestrecordType.Multiple record retrievals produce a nestedORterm.Gets the query for a request transaction.voidmatchAnyEWA(boolean match) Matches requests with any ewa.voidmatchAnyExchangeProvision(boolean match) Matches requests with any exchange provision.voidmatchAnyOriginProvision(boolean match) Matches requests with any originating provision.voidmatchAnyPool(boolean match) Matches requests with any pool.voidmatchAnyPosition(boolean match) Matches requests with any position.voidmatchAnyRequestedProvisionable(boolean match) Matches requests with any requested provisionable.voidmatchDistributorId(Id distributorId, boolean match) Sets the distributorIdfor this query.voidMatches requests whose estimated waiting time is in the given range inclusive,.voidmatchExchangeProvisionId(Id provisionId, boolean match) Sets the exchange provisionIdfor this query.voidmatchOriginProvisionId(Id provisionId, boolean match) Sets the origin provisionIdfor this query.voidmatchPoolId(Id poolId, boolean match) Sets the poolIdfor this query.voidmatchPosition(long start, long end, boolean match) Matches requests whose position is in the given range inclusive,.voidmatchQueueId(Id queueId, boolean match) Sets the queueIdfor this query.voidmatchRequestDate(DateTime from, DateTime to, boolean match) Matches requests with a date in the given range inclusive.voidmatchRequestedProvisionableId(Id provisionableId, boolean match) Sets the requested provisionableIdfor this query.voidmatchRequesterId(Id resourceId, boolean match) Sets the resourceIdfor this query.voidmatchRequestingAgentId(Id agentId, boolean match) Sets the agentIdfor this query.voidmatchRequestTransactionId(Id transactionId, boolean match) Sets the request transactionIdfor this query.booleanTests if aDistributorQueryis available.booleanTests if aProvisionQueryis available.booleanTests if aProvisionQueryis available.booleanTests if aPoolQueryis available.booleanTests if aQueueQueryis available.booleanTests if aProvisionableQueryis available.booleanTests if aResourceQueryis available.booleanTests if anAgentQueryis available.booleanTests if aRequestTransactionQueryis 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 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 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
-
matchRequestTransactionId
Sets the request transactionIdfor this query.- Parameters:
transactionId- the request transactionIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-transactionIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRequestTransactionIdTerms
void clearRequestTransactionIdTerms()Clears the request transactionIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsRequestTransactionQuery
boolean supportsRequestTransactionQuery()Tests if aRequestTransactionQueryis available.- Returns:
trueif a request transaction query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRequestTransactionQuery
RequestTransactionQuery getRequestTransactionQuery()Gets the query for a request transaction. Multiple retrievals produce a nestedORterm.- Returns:
- the request transaction query
- Throws:
UnimplementedException-supportsRequestTransactionQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRequestTransactionQuery()} is {@code true} .
-
clearRequestTransactionTerms
void clearRequestTransactionTerms()Clears the request transaction query terms.- Compliance:
mandatory- This method must be implemented.
-
matchQueueId
Sets the queueIdfor this query.- Parameters:
queueId- the queueIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-queueIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearQueueIdTerms
void clearQueueIdTerms()Clears the queueIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsQueueQuery
boolean supportsQueueQuery()Tests if aQueueQueryis available.- Returns:
trueif a queue query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getQueueQuery
QueueQuery getQueueQuery()Gets the query for a queue. Multiple retrievals produce a nestedORterm.- Returns:
- the queue query
- Throws:
UnimplementedException-supportsQueueQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsQueueQuery()} is {@code true} .
-
clearQueueTerms
void clearQueueTerms()Clears the queue query terms.- Compliance:
mandatory- This method must be implemented.
-
matchRequestDate
Matches requests with a date in the given range inclusive.- Parameters:
from- the range startto- the range endmatch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnull- Compliance:
mandatory- This method must be implemented.
-
clearRequestDateTerms
void clearRequestDateTerms()Clears the request date query terms.- Compliance:
mandatory- This method must be implemented.
-
matchRequesterId
Sets the resourceIdfor this query.- Parameters:
resourceId- the resourceIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRequesterIdTerms
void clearRequesterIdTerms()Clears the resourceIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsRequesterQuery
boolean supportsRequesterQuery()Tests if aResourceQueryis available.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRequesterQuery
ResourceQuery getRequesterQuery()Gets the query for a resource. Multiple retrievals produce a nestedORterm.- Returns:
- the resource query
- Throws:
UnimplementedException-supportsRequesterQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRequesterQuery()} is {@code true} .
-
clearRequesterTerms
void clearRequesterTerms()Clears the resource query terms.- Compliance:
mandatory- This method must be implemented.
-
matchRequestingAgentId
Sets the agentIdfor this query.- Parameters:
agentId- the agentIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-agentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRequestingAgentIdTerms
void clearRequestingAgentIdTerms()Clears the agentIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsRequestingAgentQuery
boolean supportsRequestingAgentQuery()Tests if anAgentQueryis available.- Returns:
trueif an agent query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRequestingAgentQuery
AgentQuery getRequestingAgentQuery()Gets the query for an agent. Multiple retrievals produce a nestedORterm.- Returns:
- the agent query
- Throws:
UnimplementedException-supportsRequestingAgentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRequestingAgentQuery()} is {@code true} .
-
clearRequestingAgentTerms
void clearRequestingAgentTerms()Clears the agent query terms.- Compliance:
mandatory- This method must be implemented.
-
matchPoolId
Sets the poolIdfor this query.- Parameters:
poolId- the poolIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-poolIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearPoolIdTerms
void clearPoolIdTerms()Clears the poolIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsPoolQuery
boolean supportsPoolQuery()Tests if aPoolQueryis available.- Returns:
trueif a pool query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPoolQuery
PoolQuery getPoolQuery()Gets the query for a pool. Multiple retrievals produce a nestedORterm.- Returns:
- the pool query
- Throws:
UnimplementedException-supportsPoolQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsResourceQuery()} is {@code true} .
-
matchAnyPool
void matchAnyPool(boolean match) Matches requests with any pool.- Parameters:
match-trueto match requests with any poo,falseto match requests with no pool- Compliance:
mandatory- This method must be implemented.
-
clearPoolTerms
void clearPoolTerms()Clears the pool query terms.- Compliance:
mandatory- This method must be implemented.
-
matchRequestedProvisionableId
Sets the requested provisionableIdfor this query.- Parameters:
provisionableId- the provisionableIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-provisionableIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRequestedProvisionableIdTerms
void clearRequestedProvisionableIdTerms()Clears the requested provisionableIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsRequestedProvisionableQuery
boolean supportsRequestedProvisionableQuery()Tests if aProvisionableQueryis available.- Returns:
trueif a provisionable query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRequestedProvisionableQuery
ProvisionableQuery getRequestedProvisionableQuery()Gets the query for a requested provisionable. Multiple retrievals produce a nestedORterm.- Returns:
- the provisionable query
- Throws:
UnimplementedException-supportsRequestedprovisionableQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRequestedProvisionableQuery()} is {@code true} .
-
matchAnyRequestedProvisionable
void matchAnyRequestedProvisionable(boolean match) Matches requests with any requested provisionable.- Parameters:
match-trueto match requests with any requested provisionable,falseto match requests with no requested provisionables- Compliance:
mandatory- This method must be implemented.
-
clearRequestedProvisionableTerms
void clearRequestedProvisionableTerms()Clears the requested provisionable query terms.- Compliance:
mandatory- This method must be implemented.
-
matchExchangeProvisionId
Sets the exchange provisionIdfor this query.- Parameters:
provisionId- the provisionIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-provisionIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearExchangeProvisionIdTerms
void clearExchangeProvisionIdTerms()Clears the exchange provisionIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsExchangeProvisionQuery
boolean supportsExchangeProvisionQuery()Tests if aProvisionQueryis available.- Returns:
trueif a provision query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getExchangeProvisionQuery
ProvisionQuery getExchangeProvisionQuery()Gets the query for an exchange provision. Multiple retrievals produce a nestedORterm.- Returns:
- the provision query
- Throws:
UnimplementedException-supportsExchangeProvisionQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsExchangeProvisionQuery()} is {@code true} .
-
matchAnyExchangeProvision
void matchAnyExchangeProvision(boolean match) Matches requests with any exchange provision.- Parameters:
match-trueto match requests with any exchange provision,falseto match requests with no exchange provision- Compliance:
mandatory- This method must be implemented.
-
clearExchangeProvisionTerms
void clearExchangeProvisionTerms()Clears the exchange provision query terms.- Compliance:
mandatory- This method must be implemented.
-
matchOriginProvisionId
Sets the origin provisionIdfor this query.- Parameters:
provisionId- the provisionIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-provisionIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearOriginProvisionIdTerms
void clearOriginProvisionIdTerms()Clears the origin provisionIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsOriginProvisionQuery
boolean supportsOriginProvisionQuery()Tests if aProvisionQueryis available.- Returns:
trueif a provision query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getOriginProvisionQuery
ProvisionQuery getOriginProvisionQuery()Gets the query for an origin provision. Multiple retrievals produce a nestedORterm.- Returns:
- the provision query
- Throws:
UnimplementedException-supportsOriginProvisionQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsOriginProvisionQuery()} is {@code true} .
-
matchAnyOriginProvision
void matchAnyOriginProvision(boolean match) Matches requests with any originating provision.- Parameters:
match-trueto match requests with any originating provision,falseto match requests with no origininating provision- Compliance:
mandatory- This method must be implemented.
-
clearOriginProvisionTerms
void clearOriginProvisionTerms()Clears the origin provision query terms.- Compliance:
mandatory- This method must be implemented.
-
matchPosition
void matchPosition(long start, long end, boolean match) Matches requests whose position is in the given range 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.
-
matchAnyPosition
void matchAnyPosition(boolean match) Matches requests with any position.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearPositionTerms
void clearPositionTerms()Clears the position query terms.- Compliance:
mandatory- This method must be implemented.
-
matchEWA
Matches requests whose estimated waiting time is in the given range inclusive,.- Parameters:
start- start of rangeend- end of rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-startis greater thanendNullArgumentException-startorendisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyEWA
void matchAnyEWA(boolean match) Matches requests with any ewa.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearEWATerms
void clearEWATerms()Clears the ewa query terms.- Compliance:
mandatory- This method must be implemented.
-
matchDistributorId
Sets the distributorIdfor this query.- Parameters:
distributorId- the distributorIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-distributorIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDistributorIdTerms
void clearDistributorIdTerms()Clears the distributorIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsDistributorQuery
boolean supportsDistributorQuery()Tests if aDistributorQueryis available.- Returns:
trueif a distributor query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDistributorQuery
DistributorQuery getDistributorQuery()Gets the query for a distributor. Multiple retrievals produce a nestedORterm.- Returns:
- the distributor query
- Throws:
UnimplementedException-supportDistributorQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDistributorQuery()} is {@code true} .
-
clearDistributorTerms
void clearDistributorTerms()Clears the distributor query terms.- Compliance:
mandatory- This method must be implemented.
-
getRequestQueryRecord
Gets the request query record corresponding to the givenRequestrecordType.Multiple record retrievals produce a nestedORterm.- Parameters:
requestRecordType- a request record type- Returns:
- the request query record
- Throws:
NullArgumentException-requestRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(requestRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-