OSID Logo
OSID Specifications
control package
Version 3.0.0
Release Candidate Preview
Interfaceosid.control.SettingQuery
Implementsosid.OsidObjectQuery
osid.OsidSubjugateableQuery
Description

This is the query for searching settings. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchControllerId
Description

Sets the controller Id for this query.

Parametersosid.id.IdcontrollerIdthe controller Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT controllerId is null
CompliancemandatoryThis method must be implemented.
MethodclearControllerIdTerms
Description

Clears the controller Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsControllerQuery
Description

Tests if a ControllerQuery is available.

Returnboolean true if a controller query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetControllerQuery
Description

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

Returnosid.control.ControllerQuerythe controller query
ErrorsUNIMPLEMENTED supportsControllerQuery() is false
ComplianceoptionalThis method must be implemented if supportsControllerQuery() is true.
MethodclearControllerTerms
Description

Clears the controller query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOn
Description

Matches on settings.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearOnTerms
Description

Clears the on query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOff
Description

Matches off settings.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearOffTerms
Description

Clears the off query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchVariablePercentage
Description

Matches variable percentages between the given range inclusive.

Parametersdecimalstartstart of range
decimalendend of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT start is greater than end
NULL_ARGUMENT start or end is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyVariablePercentage
Description

Matches any variable percentages.

Parametersbooleanmatch true to match settings with variable percentages, false to match settings with no variable percentages
CompliancemandatoryThis method must be implemented.
MethodclearVariablePercentageTerms
Description

Clears the variable percentages query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchVariableAmount
Description

Matches variable amount between the given range inclusive.

Parametersdecimalstartstart of range
decimalendend of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT start is greater than end
NULL_ARGUMENT start or end is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyVariableAmount
Description

Matches any variable amount.

Parametersbooleanmatch true to match settings with variable amounts, false to match settings with no variable amounts
CompliancemandatoryThis method must be implemented.
MethodclearVariableAmountTerms
Description

Clears the variable amount query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDiscreetStateId
Description

Sets the state Id for this query.

Parametersosid.id.IdstateIdthe state Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT stateId is null
CompliancemandatoryThis method must be implemented.
MethodclearDiscreetStateIdTerms
Description

Clears the state Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDiscreetStateQuery
Description

Tests if a StateQuery is available.

Returnboolean true if a state query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDiscreetStateQuery
Description

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

Returnosid.process.StateQuerythe state query
ErrorsUNIMPLEMENTED supportsDiscreetStateQuery() is false
ComplianceoptionalThis method must be implemented if supportsDiscreetStateQuery() is true.
MethodmatchAnyDiscreetState
Description

Matches any discreet states.

Parametersbooleanmatch true to match settings with discreet states, false to match settings with no discreet states
CompliancemandatoryThis method must be implemented.
MethodclearDiscreetStateTerms
Description

Clears the state query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRampRate
Description

Matches ramp rates between the given range inclusive.

Parametersosid.calendaring.Durationstartstart of range
osid.calendaring.Durationendend of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT start is greater than end
NULL_ARGUMENT start or end is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyRampRate
Description

Matches any ramp rate.

Parametersbooleanmatch true to match settings with ramp rates, false to match settings with no ramp rates
CompliancemandatoryThis method must be implemented.
MethodclearRampRateTerms
Description

Clears the ramp rate query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSystemId
Description

Sets the system Id for this query to match controllers assigned to systems.

Parametersosid.id.IdsystemIdthe system Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT systemId is null
CompliancemandatoryThis method must be implemented.
MethodclearSystemIdTerms
Description

Clears the system Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSystemQuery
Description

Tests if a SystemQuery is available.

Returnboolean true if a system query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSystemQuery
Description

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

Returnosid.control.SystemQuerythe system query
ErrorsUNIMPLEMENTED supportsSystemQuery() is false
ComplianceoptionalThis method must be implemented if supportsSystemQuery() is true.
MethodclearSystemTerms
Description

Clears the system query terms.

CompliancemandatoryThis method must be implemented.
MethodgetSettingQueryRecord
Description

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

Parametersosid.type.TypesettingRecordTypea setting record type
Returnosid.control.records.SettingQueryRecordthe setting query record
ErrorsNULL_ARGUMENT settingRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(settingRecordType) is false
CompliancemandatoryThis method must be implemented.