public interface Product extends OsidObject
A Product
represents something ordered.
Modifier and Type | Method and Description |
---|---|
long |
getAvailability()
Gets the availability.
|
java.lang.String |
getCode()
Gets the product code.
|
IdList |
getPriceScheduleIds()
Gets the price schedule
Ids. |
PriceScheduleList |
getPriceSchedules()
Gets the price schedules.
|
ProductRecord |
getProductRecord(Type productRecordType)
Gets the product record corresponding to the given
Product
record Type. |
boolean |
hasAvailability()
Tests if an availability is available for this product.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
java.lang.String getCode()
mandatory
- This method must be implemented. IdList getPriceScheduleIds()
Ids.
Id
mandatory
- This method must be implemented. PriceScheduleList getPriceSchedules() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean hasAvailability()
true
if an available is available, false
otherwisemandatory
- This method must be implemented. long getAvailability()
IllegalStateException
- hasAvailability()
is false
mandatory
- This method must be implemented. ProductRecord getProductRecord(Type productRecordType) throws OperationFailedException
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
.productRecordType
- the type of product record to retrieveNullArgumentException
- productRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(productRecordType)
is false
mandatory
- This method must be implemented.