OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.ProductForm
Implementsosid.OsidObjectForm
Implemented Byosid.ordering.batch.ProductBatchForm
Used Byosid.ordering.ProductAdminSession
Description

This is the form for creating and updating Products.Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the ProductAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetCodeMetadata
Description

Gets the metadata for the code.

Returnosid.Metadata metadata for the code
Compliancemandatory This method must be implemented.
MethodsetCode
Description

Sets the code.

Parametersstringcode the new code
ErrorsINVALID_ARGUMENT code is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT code is null
Compliancemandatory This method must be implemented.
MethodclearCode
Description

Clears the code.

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

Gets the metadata for the price schedules.

Returnosid.Metadata metadata for the price schedules
Compliancemandatory This method must be implemented.
MethodsetPriceSchedules
Description

Sets the price schedules.

Parametersosid.id.Id[]priceScheduleids the new price schedules
ErrorsINVALID_ARGUMENT priceScheduleIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT priceScheduleIds is null
Compliancemandatory This method must be implemented.
MethodclearPriceSchedules
Description

Clears the price schedules.

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

Gets the metadata for the availability.

Returnosid.Metadata metadata for the availability
Compliancemandatory This method must be implemented.
MethodsetAvailability
Description

Sets the availability.

Parameterscardinalavailability the new availability
ErrorsINVALID_ARGUMENT availability is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearAvailability
Description

Clears the availability.

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

Gets the ProductFormRecord corresponding to the given product record Type.

Parametersosid.type.TypeproductRecordType the product record type
Returnosid.ordering.records.ProductFormRecord the product form record
ErrorsNULL_ARGUMENT productRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(productRecordType) is false
Compliancemandatory This method must be implemented.