public interface BlockQuery extends OsidObjectQuery
This is the query for searching blocks. 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 |
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.
|
BlockQueryRecord |
getBlockQueryRecord(Type blockRecordType)
Gets the block query record corresponding to the given
Block
record Type. |
IssueQuery |
getIssueQuery()
Gets the query for an issue.
|
OublietteQuery |
getOublietteQuery()
Gets the query for an oubliette.
|
void |
matchAnyIssue(boolean match)
Matches blocks that have any issue.
|
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 blocks
assigned to foundries. |
boolean |
supportsIssueQuery()
Tests if an
IssueQuery is available. |
boolean |
supportsOublietteQuery()
Tests if a
OublietteQuery 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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
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 matchAnyIssue(boolean match)
match
- true
to match blocks with any issue,
false
to match blocks with no issuemandatory
- This method must be implemented. void clearIssueTerms()
mandatory
- This method must be implemented. void matchOublietteId(Id oublietteId, boolean match)
Id
for this query to match blocks
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. BlockQueryRecord getBlockQueryRecord(Type blockRecordType) throws OperationFailedException, PermissionDeniedException
Block
record Type.
Multiple record retrievals produce
a nested OR
term.blockRecordType
- a block record typeNullArgumentException
- blockRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
-
hasRecordType(blockRecordType)
is false
mandatory
- This method must be implemented.