public interface AgencyQuery extends OsidCatalogQuery
This is the query for searching agencies. Each method 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 terms. |
void |
clearAgentTerms()
Clears the agent terms.
|
void |
clearAncestorAgencyIdTerms()
Clears the ancestor agency
Id terms. |
void |
clearAncestorAgencyTerms()
Clears the ancestor agency terms.
|
void |
clearDescendantAgencyIdTerms()
Clears the descendant agency
Id terms. |
void |
clearDescendantAgencyTerms()
Clears the descendant agency terms.
|
AgencyQueryRecord |
getAgencyQueryRecord(Type agencyRecordType)
Gets the agency query record corresponding to the given
Agency
record Type. |
AgentQuery |
getAgentQuery()
Gets the query for an agent.
|
AgentQuery |
getAncestorAgencyQuery()
Gets the query for an agency.
|
AgentQuery |
getDescendantAgencyQuery()
Gets the query for an agency.
|
void |
matchAgentId(Id agentId,
boolean match)
Sets the agent
Id for this query. |
void |
matchAncestorAgencyId(Id agencyId,
boolean match)
Sets the agency
Id for this query to match agencies
that have the specified agency as an ancestor. |
void |
matchAnyAgent(boolean match)
Matches agencies with any agent.
|
void |
matchAnyAncestorAgency(boolean match)
Matches agencies with any ancestor.
|
void |
matchAnyDescendantAgency(boolean match)
Matches agencies with any descendant.
|
void |
matchDescendantAgencyId(Id agencyId,
boolean match)
Sets the agency
Id for this query to match agencies
that have the specified agency as an descendant. |
boolean |
supportsAgentQuery()
Tests if an
AgentQuery is available. |
boolean |
supportsAncestorAgencyQuery()
Tests if an
AgencyQuery is available. |
boolean |
supportsDescendantAgencyQuery()
Tests if an
AgencyQuery is available. |
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, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeclearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQueryvoid matchAgentId(Id agentId, boolean match)
Id for this query.agentId - an agent Id match - true for a positive match, false
for negative matchNullArgumentException - agentId is
null mandatory - This method must be implemented. void clearAgentIdTerms()
Id 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 agencies with any agent.
false to match agencies with no agentsmandatory - This method must be implemented. void clearAgentTerms()
mandatory - This method must be implemented. void matchAncestorAgencyId(Id agencyId, boolean match)
Id for this query to match agencies
that have the specified agency as an ancestor.agencyId - an agency Id match - true for a positive match, false
for negative matchNullArgumentException - agencyId is
null mandatory - This method must be implemented. void clearAncestorAgencyIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsAncestorAgencyQuery()
AgencyQuery is available. true if an agency query is available,
false otherwisemandatory - This method must be implemented. AgentQuery getAncestorAgencyQuery()
OR term.UnimplementedException -
supportsAncestorAgencyQuery() is false optional - This method must be implemented if
supportsAncestorAgencyQuery() is true.
void matchAnyAncestorAgency(boolean match)
match - true to match agencies with any ancestor,
false to match root agenciesmandatory - This method must be implemented. void clearAncestorAgencyTerms()
mandatory - This method must be implemented. void matchDescendantAgencyId(Id agencyId, boolean match)
Id for this query to match agencies
that have the specified agency as an descendant.agencyId - an agency Id match - true for a positive match, false
for negative matchNullArgumentException - agencyId is
null mandatory - This method must be implemented. void clearDescendantAgencyIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsDescendantAgencyQuery()
AgencyQuery is available. true if an agency query is available,
false otherwisemandatory - This method must be implemented. AgentQuery getDescendantAgencyQuery()
OR term.UnimplementedException -
supportsDescendantAgencyQuery() is false
optional - This method must be implemented if
supportsDescendantAgencyQuery() is true.
void matchAnyDescendantAgency(boolean match)
match - true to match agencies with any
descendant, false to match leaf agenciesmandatory - This method must be implemented. void clearDescendantAgencyTerms()
mandatory - This method must be implemented. AgencyQueryRecord getAgencyQueryRecord(Type agencyRecordType) throws OperationFailedException
Agency
record Type. Multiple record retrievals produce
a nested OR term.agencyRecordType - an agency record typeNullArgumentException - agencyRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(agencyRecordType) is false
mandatory - This method must be implemented.