Interface Product

All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject

public interface Product extends OsidObject

A Product represents something ordered.

  • Method Details

    • getCode

      String getCode()
      Gets the product code.
      Returns:
      a product code
      Compliance:
      mandatory - This method must be implemented.
    • getPriceScheduleIds

      IdList getPriceScheduleIds()
      Gets the price schedule Ids .
      Returns:
      a price schedule Id
      Compliance:
      mandatory - This method must be implemented.
    • getPriceSchedules

      PriceScheduleList getPriceSchedules() throws OperationFailedException
      Gets the price schedules.
      Returns:
      the price schedules
      Throws:
      OperationFailedException - unable to complete request
      Compliance:
      mandatory - This method must be implemented.
    • hasAvailability

      boolean hasAvailability()
      Tests if an availability is available for this product.
      Returns:
      true if an available is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getAvailability

      long getAvailability()
      Gets the availability.
      Returns:
      the availability
      Throws:
      IllegalStateException - hasAvailability() is false
      Compliance:
      mandatory - This method must be implemented.
    • getProductRecord

      ProductRecord getProductRecord(Type productRecordType) throws OperationFailedException
      Gets the product record corresponding to the given Product record Type .This method is used to retrieve an object implementing the requested record. The productRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(productRecordType) is true .
      Parameters:
      productRecordType - the type of product record to retrieve
      Returns:
      the product record
      Throws:
      NullArgumentException - productRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(productRecordType) is false
      Compliance:
      mandatory - This method must be implemented.