OSID Logo
OSID Specifications
hold package
Version 3.0.0
Release Candidate Preview
Interfaceosid.hold.BlockQuery
Implementsosid.OsidObjectQuery
Description

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.

MethodmatchIssueId
Description

Sets the issue Id for this query.

Parametersosid.id.IdissueIdthe issue Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT issueId is null
CompliancemandatoryThis method must be implemented.
MethodclearIssueIdTerms
Description

Clears the issue Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsIssueQuery
Description

Tests if an IssueQuery is available.

Returnboolean true if an issue query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetIssueQuery
Description

Gets the query for an issue. Multiple retrievals produce a nested OR term.

Returnosid.hold.IssueQuerythe issue query
ErrorsUNIMPLEMENTED supportsIssueQuery() is false
ComplianceoptionalThis method must be implemented if supportsIssueQuery() is true.
MethodmatchAnyIssue
Description

Matches blocks that have any issue.

Parametersbooleanmatch true to match blocks with any issue, false to match blocks with no issue
CompliancemandatoryThis method must be implemented.
MethodclearIssueTerms
Description

Clears the issue query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOublietteId
Description

Sets the oubliette Id for this query to match blocks assigned to foundries.

Parametersosid.id.IdoublietteIdthe oubliette Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT oublietteId is null
CompliancemandatoryThis method must be implemented.
MethodclearOublietteIdTerms
Description

Clears the oubliette Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsOublietteQuery
Description

Tests if a OublietteQuery is available.

Returnboolean true if an oubliette query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetOublietteQuery
Description

Gets the query for an oubliette. Multiple retrievals produce a nested OR term.

Returnosid.hold.OublietteQuerythe oubliette query
ErrorsUNIMPLEMENTED supportsOublietteQuery() is false
ComplianceoptionalThis method must be implemented if supportsOublietteQuery() is true.
MethodclearOublietteTerms
Description

Clears the oubliette query terms.

CompliancemandatoryThis method must be implemented.
MethodgetBlockQueryRecord
Description

Gets the block query record corresponding to the given Block record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypeblockRecordTypea block record type
Returnosid.hold.records.BlockQueryRecordthe block query record
ErrorsNULL_ARGUMENT blockRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED hasRecordType(blockRecordType) is false
CompliancemandatoryThis method must be implemented.