Interface ResourceQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable
This is the query for searching resources. Each method specifies an
AND term while multiple invocations of the same method produce a
nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the agentIdterms.voidClears the agent terms.voidClears the assetIdterms.voidClears the asset terms.voidClears the binIdterms.voidClears the bin terms.voidClears the groupIdterms.voidClears the containing group terms.voidClears the demographic terms.voidClears the group terms.voidClears the resource relationshipIdterms.voidClears the resource relationship terms.Gets the query for an agent.Gets the query for an asset.Gets the query for a bin.Gets the query for a containing group.getResourceQueryRecord(Type resourceRecordType) Gets the resource query record corresponding to the givenResourcerecordType.Multiple retrievals produce a nestedORterm.Gets the query for aa resource relationship.voidmatchAgentId(Id agentId, boolean match) Sets the agentIdfor this query.voidmatchAnyAgent(boolean match) Matches resources with any agent.voidmatchAnyAvatar(boolean match) Matches resources with any asset.voidmatchAnyContainingGroup(boolean match) Matches resources inside any group.voidmatchAnyResourceRelationship(boolean match) Matches resources with any resource relationship.voidmatchAvatarId(Id assetId, boolean match) Sets the assetIdfor this query.voidmatchBinId(Id binId, boolean match) Sets the binIdfor this query.voidmatchContainingGroupId(Id resourceId, boolean match) Sets the groupIdfor this query to match resources within the given group.voidmatchDemographic(boolean match) Matches resources that are also demographics.voidmatchGroup(boolean match) Matches resources that are also groups.voidmatchResourceRelationshipId(Id resourceRelationshipId, boolean match) Sets the resource relationshipIdfor this query.booleanTests if anAgentQueryis available.booleanTests if anAssetQueryis available.booleanTests if aBinQueryis available.booleanTests if aResourceQueryis available for querying containing groups.booleanTests if aResourceRelationshipQueryis 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.
-
Method Details
-
matchGroup
void matchGroup(boolean match) Matches resources that are also groups.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearGroupTerms
void clearGroupTerms()Clears the group terms.- Compliance:
mandatory- This method must be implemented.
-
matchDemographic
void matchDemographic(boolean match) Matches resources that are also demographics.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearDemographicTerms
void clearDemographicTerms()Clears the demographic terms.- Compliance:
mandatory- This method must be implemented.
-
matchContainingGroupId
Sets the groupIdfor this query to match resources within the given group.- Parameters:
resourceId- a resourceIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearContainingGroupIdTerms
void clearContainingGroupIdTerms()Clears the groupIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsContainingGroupQuery
boolean supportsContainingGroupQuery()Tests if aResourceQueryis available for querying containing groups.- Returns:
trueif a group resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getContainingGroupQuery
ResourceQuery getContainingGroupQuery()Gets the query for a containing group. Multiple retrievals produce a nestedORterm.- Returns:
- the resource query
- Throws:
UnimplementedException-supportsContainingGroupQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAgentQuery()} is {@code true} .
-
matchAnyContainingGroup
void matchAnyContainingGroup(boolean match) Matches resources inside any group.- Parameters:
match-trueto match any containing group,falseto match resources part of no groups- Compliance:
mandatory- This method must be implemented.
-
clearContainingGroupTerms
void clearContainingGroupTerms()Clears the containing group terms.- Compliance:
mandatory- This method must be implemented.
-
matchAvatarId
Sets the assetIdfor this query.- Parameters:
assetId- the assetIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-assetIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAvatarIdTerms
void clearAvatarIdTerms()Clears the assetIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsAvatarQuery
boolean supportsAvatarQuery()Tests if anAssetQueryis available.- Returns:
trueif an asset query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAvatarQuery
AssetQuery getAvatarQuery()Gets the query for an asset. Multiple retrievals produce a nestedORterm.- Returns:
- the asset query
- Throws:
UnimplementedException-supportsAvatarQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAvatarQuery()} is {@code true} .
-
matchAnyAvatar
void matchAnyAvatar(boolean match) Matches resources with any asset.- Parameters:
match-trueto match any asset,falseto match resources with no asset- Compliance:
mandatory- This method must be implemented.
-
clearAvatarTerms
void clearAvatarTerms()Clears the asset terms.- Compliance:
mandatory- This method must be implemented.
-
matchAgentId
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.
-
clearAgentIdTerms
void clearAgentIdTerms()Clears the agentIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsAgentQuery
boolean supportsAgentQuery()Tests if anAgentQueryis available.- Returns:
trueif an agent query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAgentQuery
AgentQuery getAgentQuery()Gets the query for an agent. Multiple retrievals produce a nestedORterm.- Returns:
- the agent query
- Throws:
UnimplementedException-supportsAgentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAgentQuery()} is {@code true} .
-
matchAnyAgent
void matchAnyAgent(boolean match) Matches resources with any agent.- Parameters:
match-trueto match any agent,falseto match resources with no agent- Compliance:
mandatory- This method must be implemented.
-
clearAgentTerms
void clearAgentTerms()Clears the agent terms.- Compliance:
mandatory- This method must be implemented.
-
matchResourceRelationshipId
Sets the resource relationshipIdfor this query.- Parameters:
resourceRelationshipId- the resource relationshipIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceRelationshipIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearResourceRelationshipIdTerms
void clearResourceRelationshipIdTerms()Clears the resource relationshipIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsResourceRelationshipQuery
boolean supportsResourceRelationshipQuery()Tests if aResourceRelationshipQueryis available.- Returns:
trueif a resource relationship query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getResourceRelationshipQuery
ResourceRelationshipQuery getResourceRelationshipQuery()Gets the query for aa resource relationship. Multiple retrievals produce a nestedORterm.- Returns:
- the resource relationship query
- Throws:
UnimplementedException-supportsResourceRelationshipQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsResourceRelationshipQuery()} is {@code true} .
-
matchAnyResourceRelationship
void matchAnyResourceRelationship(boolean match) Matches resources with any resource relationship.- Parameters:
match-trueto match any resource relationship,falseto match resources with no relationship- Compliance:
mandatory- This method must be implemented.
-
clearResourceRelationshipTerms
void clearResourceRelationshipTerms()Clears the resource relationship terms.- Compliance:
mandatory- This method must be implemented.
-
matchBinId
Sets the binIdfor this query.- Parameters:
binId- the binIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-binIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearBinIdTerms
void clearBinIdTerms()Clears the binIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsBinQuery
boolean supportsBinQuery()Tests if aBinQueryis available.- Returns:
trueif a bin query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getBinQuery
BinQuery getBinQuery()Gets the query for a bin. Multiple retrievals produce a nestedORterm.- Returns:
- the bin query
- Throws:
UnimplementedException-supportsBinQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBinQuery()} is {@code true} .
-
clearBinTerms
void clearBinTerms()Clears the bin terms.- Compliance:
mandatory- This method must be implemented.
-
getResourceQueryRecord
Gets the resource query record corresponding to the givenResourcerecordType.Multiple retrievals produce a nestedORterm.- Parameters:
resourceRecordType- a resource record type- Returns:
- the resource query record
- Throws:
NullArgumentException-resourceRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(resourceRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-