public interface RequestQuery extends OsidRelationshipQuery
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.
| Modifier and Type | Method and Description |
|---|---|
void |
clearDistributorIdTerms()
Clears the distributor
Id query terms. |
void |
clearDistributorTerms()
Clears the distributor query terms.
|
void |
clearEWATerms()
Clears the ewa query terms.
|
void |
clearExchangeProvisionIdTerms()
Clears the exchange provision
Id query terms. |
void |
clearExchangeProvisionTerms()
Clears the exchange provision query terms.
|
void |
clearOriginProvisionIdTerms()
Clears the origin provision
Id query terms. |
void |
clearOriginProvisionTerms()
Clears the origin provision query terms.
|
void |
clearPoolIdTerms()
Clears the pool
Id query terms. |
void |
clearPoolTerms()
Clears the pool query terms.
|
void |
clearPositionTerms()
Clears the position query terms.
|
void |
clearQueueIdTerms()
Clears the queue
Id query terms. |
void |
clearQueueTerms()
Clears the queue query terms.
|
void |
clearRequestDateTerms()
Clears the request date query terms.
|
void |
clearRequestedProvisionableIdTerms()
Clears the requested provisionable
Id query terms. |
void |
clearRequestedProvisionableTerms()
Clears the requested provisionable query terms.
|
void |
clearRequesterIdTerms()
Clears the resource
Id query terms. |
void |
clearRequesterTerms()
Clears the resource query terms.
|
void |
clearRequestingAgentIdTerms()
Clears the agent
Id query terms. |
void |
clearRequestingAgentTerms()
Clears the agent query terms.
|
void |
clearRequestTransactionIdTerms()
Clears the request transaction
Id query terms. |
void |
clearRequestTransactionTerms()
Clears the request transaction query terms.
|
DistributorQuery |
getDistributorQuery()
Gets the query for a distributor.
|
ProvisionQuery |
getExchangeProvisionQuery()
Gets the query for an exchange provision.
|
ProvisionQuery |
getOriginProvisionQuery()
Gets the query for an origin provision.
|
PoolQuery |
getPoolQuery()
Gets the query for a pool.
|
QueueQuery |
getQueueQuery()
Gets the query for a queue.
|
ProvisionableQuery |
getRequestedProvisionableQuery()
Gets the query for a requested provisionable.
|
ResourceQuery |
getRequesterQuery()
Gets the query for a resource.
|
AgentQuery |
getRequestingAgentQuery()
Gets the query for an agent.
|
RequestQueryRecord |
getRequestQueryRecord(Type requestRecordType)
Gets the request query record corresponding to the given
Request record Type. |
RequestTransactionQuery |
getRequestTransactionQuery()
Gets the query for a request transaction.
|
void |
matchAnyEWA(boolean match)
Matches requests with any ewa.
|
void |
matchAnyExchangeProvision(boolean match)
Matches requests with any exchange provision.
|
void |
matchAnyOriginProvision(boolean match)
Matches requests with any originating provision.
|
void |
matchAnyPool(boolean match)
Matches requests with any pool.
|
void |
matchAnyPosition(boolean match)
Matches requests with any position.
|
void |
matchAnyRequestedProvisionable(boolean match)
Matches requests with any requested provisionable.
|
void |
matchDistributorId(Id distributorId,
boolean match)
Sets the distributor
Id for this query. |
void |
matchEWA(Duration start,
Duration end,
boolean match)
Matches requests whose estimated waiting time is in the given range
inclusive,.
|
void |
matchExchangeProvisionId(Id provisionId,
boolean match)
Sets the exchange provision
Id for this query. |
void |
matchOriginProvisionId(Id provisionId,
boolean match)
Sets the origin provision
Id for this query. |
void |
matchPoolId(Id poolId,
boolean match)
Sets the pool
Id for this query. |
void |
matchPosition(long start,
long end,
boolean match)
Matches requests whose position is in the given range inclusive,.
|
void |
matchQueueId(Id queueId,
boolean match)
Sets the queue
Id for this query. |
void |
matchRequestDate(DateTime from,
DateTime to,
boolean match)
Matches requests with a date in the given range inclusive.
|
void |
matchRequestedProvisionableId(Id provisionableId,
boolean match)
Sets the requested provisionable
Id for this query. |
void |
matchRequesterId(Id resourceId,
boolean match)
Sets the resource
Id for this query. |
void |
matchRequestingAgentId(Id agentId,
boolean match)
Sets the agent
Id for this query. |
void |
matchRequestTransactionId(Id transactionId,
boolean match)
Sets the request transaction
Id for this query. |
boolean |
supportsDistributorQuery()
Tests if a
DistributorQuery is available. |
boolean |
supportsExchangeProvisionQuery()
Tests if a
ProvisionQuery is available. |
boolean |
supportsOriginProvisionQuery()
Tests if a
ProvisionQuery is available. |
boolean |
supportsPoolQuery()
Tests if a
PoolQuery is available. |
boolean |
supportsQueueQuery()
Tests if a
QueueQuery is available. |
boolean |
supportsRequestedProvisionableQuery()
Tests if a
ProvisionableQuery is available. |
boolean |
supportsRequesterQuery()
Tests if a
ResourceQuery is available. |
boolean |
supportsRequestingAgentQuery()
Tests if an
AgentQuery is available. |
boolean |
supportsRequestTransactionQuery()
Tests if a
RequestTransactionQuery is available. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQueryclearCommentIdTerms, 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, supportsStringMatchTypeclearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDatevoid matchRequestTransactionId(Id transactionId, boolean match)
Id for this query.transactionId - the request transaction Id match - true for a positive match, false
for a negative matchNullArgumentException - transactionId is
null mandatory - This method must be implemented. void clearRequestTransactionIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsRequestTransactionQuery()
RequestTransactionQuery is available. true if a request transaction query is
available, false otherwisemandatory - This method must be implemented. RequestTransactionQuery getRequestTransactionQuery()
OR term.UnimplementedException -
supportsRequestTransactionQuery() is false
optional - This method must be implemented if
supportsRequestTransactionQuery() is true.
void clearRequestTransactionTerms()
mandatory - This method must be implemented. void matchQueueId(Id queueId, boolean match)
Id for this query.queueId - the queue Id match - true for a positive match, false
for a negative matchNullArgumentException - queueId is
null mandatory - This method must be implemented. void clearQueueIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsQueueQuery()
QueueQuery is available. true if a queue query is available,
false otherwisemandatory - This method must be implemented. QueueQuery getQueueQuery()
OR term.UnimplementedException - supportsQueueQuery()
is false optional - This method must be implemented if
supportsQueueQuery() is true. void clearQueueTerms()
mandatory - This method must be implemented. void matchRequestDate(DateTime from, DateTime to, boolean match)
from - the range startto - the range endmatch - true for a positive match, false
for a negative matchInvalidArgumentException - from is
greater than to NullArgumentException - from or
to is null mandatory - This method must be implemented. void clearRequestDateTerms()
mandatory - This method must be implemented. void matchRequesterId(Id resourceId, boolean match)
Id for this query.resourceId - the resource Id match - true for a positive match, false
for a negative matchNullArgumentException - resourceId is
null mandatory - This method must be implemented. void clearRequesterIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsRequesterQuery()
ResourceQuery is available. true if a resource query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getRequesterQuery()
OR term.UnimplementedException -
supportsRequesterQuery() is false optional - This method must be implemented if
supportsRequesterQuery() is true. void clearRequesterTerms()
mandatory - This method must be implemented. void matchRequestingAgentId(Id agentId, boolean match)
Id for this query.agentId - the agent Id match - true for a positive match, false
for a negative matchNullArgumentException - agentId is
null mandatory - This method must be implemented. void clearRequestingAgentIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsRequestingAgentQuery()
AgentQuery is available. true if an agent query is available,
false otherwisemandatory - This method must be implemented. AgentQuery getRequestingAgentQuery()
OR term.UnimplementedException -
supportsRequestingAgentQuery() is false optional - This method must be implemented if
supportsRequestingAgentQuery() is true.
void clearRequestingAgentTerms()
mandatory - This method must be implemented. void matchPoolId(Id poolId, boolean match)
Id for this query.poolId - the pool Id match - true for a positive match, false
for a negative matchNullArgumentException - poolId is
null mandatory - This method must be implemented. void clearPoolIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsPoolQuery()
PoolQuery is available. true if a pool query is available, false
otherwisemandatory - This method must be implemented. PoolQuery getPoolQuery()
OR term.UnimplementedException - supportsPoolQuery()
is false optional - This method must be implemented if
supportsResourceQuery() is true. void matchAnyPool(boolean match)
match - true to match requests with any poo,
false to match requests with no poolmandatory - This method must be implemented. void clearPoolTerms()
mandatory - This method must be implemented. void matchRequestedProvisionableId(Id provisionableId, boolean match)
Id for this query.provisionableId - the provisionable Id match - true for a positive match, false
for a negative matchNullArgumentException - provisionableId
is null mandatory - This method must be implemented. void clearRequestedProvisionableIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsRequestedProvisionableQuery()
ProvisionableQuery is available. true if a provisionable query is available,
false otherwisemandatory - This method must be implemented. ProvisionableQuery getRequestedProvisionableQuery()
OR term.UnimplementedException -
supportsRequestedprovisionableQuery() is false
optional - This method must be implemented if
supportsRequestedProvisionableQuery() is
true. void matchAnyRequestedProvisionable(boolean match)
match - true to match requests with any requested
provisionable, false to match requests with no
requested provisionablesmandatory - This method must be implemented. void clearRequestedProvisionableTerms()
mandatory - This method must be implemented. void matchExchangeProvisionId(Id provisionId, boolean match)
Id for this query.provisionId - the provision Id match - true for a positive match, false
for a negative matchNullArgumentException - provisionId is
null mandatory - This method must be implemented. void clearExchangeProvisionIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsExchangeProvisionQuery()
ProvisionQuery is available. true if a provision query is available,
false otherwisemandatory - This method must be implemented. ProvisionQuery getExchangeProvisionQuery()
OR term.UnimplementedException -
supportsExchangeProvisionQuery() is false
optional - This method must be implemented if
supportsExchangeProvisionQuery() is true.
void matchAnyExchangeProvision(boolean match)
match - true to match requests with any exchange
provision, false to match requests with no
exchange provisionmandatory - This method must be implemented. void clearExchangeProvisionTerms()
mandatory - This method must be implemented. void matchOriginProvisionId(Id provisionId, boolean match)
Id for this query.provisionId - the provision Id match - true for a positive match, false
for a negative matchNullArgumentException - provisionId is
null mandatory - This method must be implemented. void clearOriginProvisionIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsOriginProvisionQuery()
ProvisionQuery is available. true if a provision query is available,
false otherwisemandatory - This method must be implemented. ProvisionQuery getOriginProvisionQuery()
OR term.UnimplementedException -
supportsOriginProvisionQuery() is false optional - This method must be implemented if
supportsOriginProvisionQuery() is true.
void matchAnyOriginProvision(boolean match)
match - true to match requests with any
originating provision, false to match requests
with no origininating provisionmandatory - This method must be implemented. void clearOriginProvisionTerms()
mandatory - This method must be implemented. void matchPosition(long start,
long end,
boolean match)
start - start of rangeend - end of rangematch - true for a positive match, false
for a negative matchInvalidArgumentException - start is
greater than end mandatory - This method must be implemented. void matchAnyPosition(boolean match)
match - true for a positive match, false
for a negative matchmandatory - This method must be implemented. void clearPositionTerms()
mandatory - This method must be implemented. void matchEWA(Duration start, Duration end, boolean match)
start - start of rangeend - end of rangematch - true for a positive match, false
for a negative matchInvalidArgumentException - start is
greater than end NullArgumentException - start or
end is null mandatory - This method must be implemented. void matchAnyEWA(boolean match)
match - true for a positive match, false
for a negative matchmandatory - This method must be implemented. void clearEWATerms()
mandatory - This method must be implemented. void matchDistributorId(Id distributorId, boolean match)
Id for this query.distributorId - the distributor Id match - true for a positive match, false
for a negative matchNullArgumentException - distributorId is
null mandatory - This method must be implemented. void clearDistributorIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsDistributorQuery()
DistributorQuery is available. true if a distributor query is available,
false otherwisemandatory - This method must be implemented. DistributorQuery getDistributorQuery()
OR term.UnimplementedException -
supportDistributorQuery() is false optional - This method must be implemented if
supportsDistributorQuery() is true. void clearDistributorTerms()
mandatory - This method must be implemented. RequestQueryRecord getRequestQueryRecord(Type requestRecordType) throws OperationFailedException
Request record Type. Multiple record retrievals
produce a nested OR term.requestRecordType - a request record typeNullArgumentException - requestRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(requestRecordType) is false
mandatory - This method must be implemented.