OSID Logo
OSID Specifications
control package
Version 3.1.0
Interfaceosid.control.ControllerForm
Implementsosid.OsidObjectForm
osid.OsidOperableForm
Implemented Byosid.control.batch.ControllerBatchForm
Used Byosid.control.ControllerAdminSession
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.Metadata metadata for the address
Compliancemandatory This method must be implemented.
MethodsetAddress
Description

Sets the address.

Parametersstringaddress the new address
ErrorsINVALID_ARGUMENT address is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT address is null
Compliancemandatory This method must be implemented.
MethodclearAddress
Description

Removes the address.

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

Gets the metadata for the model.

Returnosid.Metadata metadata for the model
Compliancemandatory This method must be implemented.
MethodsetModel
Description

Sets the model.

Parametersosid.id.IdmodelId the new model
ErrorsINVALID_ARGUMENT modelId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT modelId is null
Compliancemandatory This method must be implemented.
MethodclearModel
Description

Removes the model.

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

Gets the metadata for the version.

Returnosid.Metadata metadata for the version
Compliancemandatory This method must be implemented.
MethodsetVersion
Description

Sets the version.

Parametersosid.installation.Versionversion the new version
ErrorsINVALID_ARGUMENT version is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT version is null
Compliancemandatory This method must be implemented.
MethodclearVersion
Description

Removes the version.

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

Gets the metadata for the toggle capability.

Returnosid.Metadata metadata for the toggle
Compliancemandatory This method must be implemented.
MethodsetToggleable
Description

Sets the toggleable capability.

Parametersbooleantoggle the new toggle flag
ErrorsINVALID_ARGUMENT toggle is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearToggleable
Description

Removes the toggle.

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

Gets the metadata for the variable capability.

Returnosid.Metadata metadata for the variable
Compliancemandatory This method must be implemented.
MethodsetVariable
Description

Sets the variable capability.

Parametersbooleanvariable the new variable flag
ErrorsINVALID_ARGUMENT variable is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearVariable
Description

Removes the variable flag.

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

Gets the metadata for the variable by percentage capability.

Returnosid.Metadata metadata for the percentage
Compliancemandatory This method must be implemented.
MethodsetVariablePercentage
Description

Sets the variable bt percentage capability.

Parametersbooleanpercentage the new percentage flag
ErrorsINVALID_ARGUMENT percentage is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearVariablePercentage
Description

Removes the variable by percentage flag.

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

Gets the metadata for the minimum variable amount.

Returnosid.Metadata metadata for the minimum variable amount
Compliancemandatory This method must be implemented.
MethodsetVariableMinimum
Description

Sets the minimum variable amount.

Parametersdecimalamount the new minimum variable amount
ErrorsINVALID_ARGUMENT amount is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT amount is null
Compliancemandatory This method must be implemented.
MethodclearVariableMinimum
Description

Removes the minimum variable amount.

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

Gets the metadata for the maximum variable amount.

Returnosid.Metadata metadata for the maximum variable amount
Compliancemandatory This method must be implemented.
MethodsetVariableMaximum
Description

Sets the maximum variable amount.

Parametersdecimalamount the new maximum variable amount
ErrorsINVALID_ARGUMENT amount is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT amount is null
Compliancemandatory This method must be implemented.
MethodclearVariableMaximum
Description

Removes the maximum variable amount.

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

Gets the metadata for the discreet states.

Returnosid.Metadata metadata for the discreet states
Compliancemandatory This method must be implemented.
MethodsetDiscreetStates
Description

Sets the maximum variable amount.

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

Removes the discreet states.

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

Gets the ControllerFormRecord corresponding to the given controller record Type.

Parametersosid.type.TypecontrollerRecordType a controller record type
Returnosid.control.records.ControllerFormRecord the controller form record
ErrorsNULL_ARGUMENT controllerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(controllerRecordType) is false
Compliancemandatory This method must be implemented.