public interface ResourceQuery extends OsidObjectQuery
This is the query for searching resources. 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 |
clearAvatarIdTerms()
Clears the asset
Id terms. |
void |
clearAvatarTerms()
Clears the asset terms.
|
void |
clearBinIdTerms()
Clears the bin
Id terms. |
void |
clearBinTerms()
Clears the bin terms.
|
void |
clearContainingGroupIdTerms()
Clears the group
Id terms. |
void |
clearContainingGroupTerms()
Clears the containing group terms.
|
void |
clearDemographicTerms()
Clears the demographic terms.
|
void |
clearGroupTerms()
Clears the group terms.
|
void |
clearResourceRelationshipIdTerms()
Clears the resource relationship
Id terms. |
void |
clearResourceRelationshipTerms()
Clears the resource relationship terms.
|
AgentQuery |
getAgentQuery()
Gets the query for an agent.
|
AssetQuery |
getAvatarQuery()
Gets the query for an asset.
|
BinQuery |
getBinQuery()
Gets the query for a bin.
|
ResourceQuery |
getContainingGroupQuery()
Gets the query for a a containing group.
|
ResourceQueryRecord |
getResourceQueryRecord(Type resourceRecordType)
Gets the resource query record corresponding to the given
Resource record Type. |
ResourceRelationshipQuery |
getResourceRelationshipQuery()
Gets the query for aa resource relationship.
|
void |
matchAgentId(Id agentId,
boolean match)
Sets the agent
Id for this query. |
void |
matchAnyAgent(boolean match)
Matches resources with any agent.
|
void |
matchAnyAvatar(boolean match)
Matches resources with any asset.
|
void |
matchAnyContainingGroup(boolean match)
Matches resources inside any group.
|
void |
matchAnyResourceRelationship(boolean match)
Matches resources with any resource relationship.
|
void |
matchAvatarId(Id assetId,
boolean match)
Sets the asset
Id for this query. |
void |
matchBinId(Id binId,
boolean match)
Sets the bin
Id for this query. |
void |
matchContainingGroupId(Id resourceId,
boolean match)
Sets the group
Id for this query to match resources
within the given group. |
void |
matchDemographic(boolean match)
Matches resources that are also demographics.
|
void |
matchGroup(boolean match)
Matches resources that are also groups.
|
void |
matchResourceRelationshipId(Id resourceRelationshipId,
boolean match)
Sets the resource relationship
Id for this query. |
boolean |
supportsAgentQuery()
Tests if an
AgentQuery is available. |
boolean |
supportsAvatarQuery()
Tests if an
AssetQuery is available. |
boolean |
supportsBinQuery()
Tests if a
BinQuery is available. |
boolean |
supportsContainingGroupQuery()
Tests if a
ResourceQuery is available for querying
containing groups. |
boolean |
supportsResourceRelationshipQuery()
Tests if a
ResourceRelationshipQuery 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, supportsStringMatchTypevoid matchGroup(boolean match)
match - true for a positive match, false
for a negative matchmandatory - This method must be implemented. void clearGroupTerms()
mandatory - This method must be implemented. void matchDemographic(boolean match)
match - true for a positive match, false
for a negative matchmandatory - This method must be implemented. void clearDemographicTerms()
mandatory - This method must be implemented. void matchContainingGroupId(Id resourceId, boolean match)
Id for this query to match resources
within the given group.resourceId - a resource Id match - true for a positive match, false
for a negative matchNullArgumentException - resourceId is
null mandatory - This method must be implemented. void clearContainingGroupIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsContainingGroupQuery()
ResourceQuery is available for querying
containing groups. true if a group resource query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getContainingGroupQuery()
OR term.UnimplementedException -
supportsContainingGroupQuery() is false optional - This method must be implemented if
supportsAgentQuery() is true. void matchAnyContainingGroup(boolean match)
match - true to match any containing group,
false to match resources part of no groupsmandatory - This method must be implemented. void clearContainingGroupTerms()
mandatory - This method must be implemented. void matchAvatarId(Id assetId, boolean match)
Id for this query.assetId - the asset Id match - true for a positive match, false
for a negative matchNullArgumentException - assetId is
null mandatory - This method must be implemented. void clearAvatarIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsAvatarQuery()
AssetQuery is available. true if an asset query is available,
false otherwisemandatory - This method must be implemented. AssetQuery getAvatarQuery()
OR term.UnimplementedException - supportsAvatarQuery()
is false optional - This method must be implemented if
supportsAvatarQuery() is true. void matchAnyAvatar(boolean match)
match - true to match any asset, false
to match resources with no assetmandatory - This method must be implemented. void clearAvatarTerms()
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 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 any agent, false
to match resources with no agentmandatory - This method must be implemented. void clearAgentTerms()
mandatory - This method must be implemented. void matchResourceRelationshipId(Id resourceRelationshipId, boolean match)
Id for this query.resourceRelationshipId - the resource relationship Id
match - true for a positive match, false
for a negative matchNullArgumentException - resourceRelationshipId
is null mandatory - This method must be implemented. void clearResourceRelationshipIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsResourceRelationshipQuery()
ResourceRelationshipQuery is available. true if a resource relationship query is
available, false otherwisemandatory - This method must be implemented. ResourceRelationshipQuery getResourceRelationshipQuery()
OR term.UnimplementedException -
supportsResourceRelationshipQuery() is false
optional - This method must be implemented if
supportsResourceRelationshipQuery() is
true. void matchAnyResourceRelationship(boolean match)
match - true to match any resource relationship,
false to match resources with no relationshipmandatory - This method must be implemented. void clearResourceRelationshipTerms()
mandatory - This method must be implemented. void matchBinId(Id binId, boolean match)
Id for this query.binId - the bin Id match - true for a positive match, false
for a negative matchNullArgumentException - binId is
null mandatory - This method must be implemented. void clearBinIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsBinQuery()
BinQuery is available. true if a bin query is available, false
otherwisemandatory - This method must be implemented. BinQuery getBinQuery()
OR term.UnimplementedException - supportsBinQuery()
is false optional - This method must be implemented if
supportsBinQuery() is true. void clearBinTerms()
mandatory - This method must be implemented. ResourceQueryRecord getResourceQueryRecord(Type resourceRecordType) throws OperationFailedException
Resource record Type. Multiple retrievals
produce a nested OR term.resourceRecordType - a resource record typeNullArgumentException - resourceRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(resourceRecordType) is false
mandatory - This method must be implemented.