public interface HoldQuery extends OsidRelationshipQuery
This is the query for searching holds. 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 |
clearAgentIdTerms()
Clears the agent
Id query terms. |
void |
clearAgentTerms()
Clears the agent query terms.
|
void |
clearIssueIdTerms()
Clears the issue
Id query terms. |
void |
clearIssueTerms()
Clears the issue query terms.
|
void |
clearOublietteIdTerms()
Clears the oubliette
Id query terms. |
void |
clearOublietteTerms()
Clears the oubliette query terms.
|
void |
clearResourceIdTerms()
Clears the resource
Id query terms. |
void |
clearResourceTerms()
Clears the resource query terms.
|
AgentQuery |
getAgentQuery()
Gets the query for an agent.
|
HoldQueryRecord |
getHoldQueryRecord(Type holdRecordType)
Gets the hold query record corresponding to the given
Hold
record Type. |
IssueQuery |
getIssueQuery()
Gets the query for an issue.
|
OublietteQuery |
getOublietteQuery()
Gets the query for an oubliette.
|
ResourceQuery |
getResourceQuery()
Gets the query for a resource.
|
void |
matchAgentId(Id agentId,
boolean match)
Sets the agent
Id for this query. |
void |
matchAnyAgent(boolean match)
Matches holds that have any agent defined.
|
void |
matchAnyResource(boolean match)
Matches holds that have any resource defined.
|
void |
matchIssueId(Id issueId,
boolean match)
Sets the issue
Id for this query. |
void |
matchOublietteId(Id oublietteId,
boolean match)
Sets the oubliette
Id for this query to match holds
assigned to foundries. |
void |
matchResourceId(Id resourceId,
boolean match)
Sets the resource
Id for this query. |
boolean |
supportsAgentQuery()
Tests if an
AgentQuery is available. |
boolean |
supportsIssueQuery()
Tests if an
IssueQuery is available. |
boolean |
supportsOublietteQuery()
Tests if a
OublietteQuery is available. |
boolean |
supportsResourceQuery()
Tests if a
ResourceQuery 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 matchResourceId(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 clearResourceIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsResourceQuery()
ResourceQuery is available. true if a resource query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getResourceQuery()
OR term.UnimplementedException - supportsResourceQuery()
is false optional - This method must be implemented if
supportsResourceQuery() is true. void matchAnyResource(boolean match)
match - true to match holds with any resources,
false to match holds with no resourcesmandatory - This method must be implemented. void clearResourceTerms()
mandatory - This method must be implemented. void matchAgentId(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 clearAgentIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsAgentQuery()
AgentQuery is available. true if an agent query is available,
false otherwisemandatory - This method must be implemented. AgentQuery getAgentQuery()
OR term.UnimplementedException - supportsAgentQuery()
is false optional - This method must be implemented if
supportsAgentQuery() is true. void matchAnyAgent(boolean match)
match - true to match holds with any agents,
false to match holds with no agentsmandatory - This method must be implemented. void clearAgentTerms()
mandatory - This method must be implemented. void matchIssueId(Id issueId, boolean match)
Id for this query.issueId - the issue Id match - true for a positive match, false
for a negative matchNullArgumentException - issueId is
null mandatory - This method must be implemented. void clearIssueIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsIssueQuery()
IssueQuery is available. true if an issue query is available,
false otherwisemandatory - This method must be implemented. IssueQuery getIssueQuery()
OR term.UnimplementedException - supportsIssueQuery()
is false optional - This method must be implemented if
supportsIssueQuery() is true. void clearIssueTerms()
mandatory - This method must be implemented. void matchOublietteId(Id oublietteId, boolean match)
Id for this query to match holds
assigned to foundries.oublietteId - the oubliette Id match - true for a positive match, false
for a negative matchNullArgumentException - oublietteId is
null mandatory - This method must be implemented. void clearOublietteIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsOublietteQuery()
OublietteQuery is available. true if an oubliette query is available,
false otherwisemandatory - This method must be implemented. OublietteQuery getOublietteQuery()
OR term.UnimplementedException -
supportsOublietteQuery() is false optional - This method must be implemented if
supportsOublietteQuery() is true. void clearOublietteTerms()
mandatory - This method must be implemented. HoldQueryRecord getHoldQueryRecord(Type holdRecordType) throws OperationFailedException, PermissionDeniedException
Hold
record Type. Multiple record retrievals produce
a nested OR term.holdRecordType - a hold record typeNullArgumentException - holdRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException -
hasRecordType(holdRecordType) is false mandatory - This method must be implemented.