OSID Logo
OSID Specifications
control package
Version 3.0.0
Release Candidate Preview
Interfaceosid.control.ControllerForm
Implementsosid.OsidObjectForm
osid.OsidOperableForm
Description

This is the form for creating and updating Controllers. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the ControllerAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints. Some data may be automatically derived from the controller segments.

MethodgetAddressMetadata
Description

Gets the metadata for the address.

Returnosid.Metadatametadata for the address
CompliancemandatoryThis method must be implemented.
MethodsetAddress
Description

Sets the address.

Parametersstringaddressthe new address
ErrorsINVALID_ARGUMENT address is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT address is null
CompliancemandatoryThis method must be implemented.
MethodclearAddress
Description

Removes the address.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetModelMetadata
Description

Gets the metadata for the model.

Returnosid.Metadatametadata for the model
CompliancemandatoryThis method must be implemented.
MethodsetModel
Description

Sets the model.

Parametersosid.id.IdmodelIdthe new model
ErrorsINVALID_ARGUMENT modelId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT modelId is null
CompliancemandatoryThis method must be implemented.
MethodclearModel
Description

Removes the model.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetVersionMetadata
Description

Gets the metadata for the version.

Returnosid.Metadatametadata for the version
CompliancemandatoryThis method must be implemented.
MethodsetVersion
Description

Sets the version.

Parametersosid.installation.Versionversionthe new version
ErrorsINVALID_ARGUMENT version is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT version is null
CompliancemandatoryThis method must be implemented.
MethodclearVersion
Description

Removes the version.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetToggleableMetadata
Description

Gets the metadata for the toggle capability.

Returnosid.Metadatametadata for the toggle
CompliancemandatoryThis method must be implemented.
MethodsetToggleable
Description

Sets the toggleable capability.

Parametersbooleantogglethe new toggle flag
ErrorsINVALID_ARGUMENT toggle is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearToggleable
Description

Removes the toggle.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetVariableMetadata
Description

Gets the metadata for the variable capability.

Returnosid.Metadatametadata for the variable
CompliancemandatoryThis method must be implemented.
MethodsetVariable
Description

Sets the variable capability.

Parametersbooleanvariablethe new variable flag
ErrorsINVALID_ARGUMENT variable is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearVariable
Description

Removes the variable flag.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetVariableByPercentageMetadata
Description

Gets the metadata for the variable by percentage capability.

Returnosid.Metadatametadata for the percentage
CompliancemandatoryThis method must be implemented.
MethodsetVariablePercentage
Description

Sets the variable bt percentage capability.

Parametersbooleanpercentagethe new percentage flag
ErrorsINVALID_ARGUMENT percentage is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearVariablePercentage
Description

Removes the variable by percentage flag.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetVariableMinimumMetadata
Description

Gets the metadata for the minimum variable amount.

Returnosid.Metadatametadata for the minimum variable amount
CompliancemandatoryThis method must be implemented.
MethodsetVariableMinimum
Description

Sets the minimum variable amount.

Parametersdecimalamountthe new minimum variable amount
ErrorsINVALID_ARGUMENT amount is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT amount is null
CompliancemandatoryThis method must be implemented.
MethodclearVariableMinimum
Description

Removes the minimum variable amount.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetVariableMaximumMetadata
Description

Gets the metadata for the maximum variable amount.

Returnosid.Metadatametadata for the maximum variable amount
CompliancemandatoryThis method must be implemented.
MethodsetVariableMaximum
Description

Sets the maximum variable amount.

Parametersdecimalamountthe new maximum variable amount
ErrorsINVALID_ARGUMENT amount is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT amount is null
CompliancemandatoryThis method must be implemented.
MethodclearVariableMaximum
Description

Removes the maximum variable amount.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetDiscreetStatesMetadata
Description

Gets the metadata for the discreet states.

Returnosid.Metadatametadata for the discreet states
CompliancemandatoryThis method must be implemented.
MethodsetDiscreetStates
Description

Sets the maximum variable amount.

Parametersosid.id.Id[]stateIdsthe new discreet states
ErrorsINVALID_ARGUMENT stateIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT stateIds is null
CompliancemandatoryThis method must be implemented.
MethodclearDiscreetStates
Description

Removes the discreet states.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetControllerFormRecord
Description

Gets the ControllerFormRecord corresponding to the given controller record Type.

Parametersosid.type.TypecontrollerRecordTypea controller record type
Returnosid.control.records.ControllerFormRecordthe controller form record
ErrorsNULL_ARGUMENT controllerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(controllerRecordType) is false
CompliancemandatoryThis method must be implemented.