public interface PriceForm extends OsidRuleForm, OsidSubjugateableForm
This is the form for creating and updating Prices.
Like
all OsidForm
objects, various data elements may be set here
for use in the create and update methods in the PriceAdminSession.
For each data element that may be set, metadata may be examined to
provide display hints or data constraints.
Modifier and Type | Method and Description |
---|---|
void |
clearAmount()
Clears the amount.
|
void |
clearDemographic()
Clears the demographic.
|
void |
clearMaximumQuantity()
Clears the maximum quantity.
|
void |
clearMinimumQuantity()
Clears the minimum quantity.
|
void |
clearRecurringInterval()
Clears the recurring interval.
|
Metadata |
getAmountMetadata()
Gets the metadata for the amount.
|
Metadata |
getDemographicMetadata()
Gets the metadata for the demographic.
|
Metadata |
getMaxQuantityMetadata()
Gets the metadata for the minimum quantity.
|
Metadata |
getMinQuantityMetadata()
Gets the metadata for the minimum quantity.
|
PriceFormRecord |
getPriceFormRecord(Type priceRecordType)
Gets the
PriceFormRecord corresponding to the given
price record Type. |
Metadata |
getRecurringIntervalMetadata()
Gets the metadata for the recurring interval.
|
void |
setAmount(CurrencyRangeTerm[] amount)
Sets the amount.
|
void |
setDemographic(Id resourceId)
Sets the demographic.
|
void |
setMaximumQuantity(long minQuantity)
Sets the maximum quantity.
|
void |
setMinimumQuantity(long minQuantity)
Sets the minimum quantity.
|
void |
setRecurringInterval(Duration interval)
Sets the recurring interval.
|
clearRule, getRuleMetadata, setRule
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabled
Metadata getMinQuantityMetadata()
mandatory
- This method must be implemented. void setMinimumQuantity(long minQuantity)
minQuantity
- the new minumim quantityInvalidArgumentException
- minQuantity
is invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearMinimumQuantity()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getMaxQuantityMetadata()
mandatory
- This method must be implemented. void setMaximumQuantity(long minQuantity)
minQuantity
- the new maximum quantityInvalidArgumentException
- maxQuantity
is invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearMaximumQuantity()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getDemographicMetadata()
mandatory
- This method must be implemented. void setDemographic(Id resourceId)
resourceId
- the new demographicInvalidArgumentException
- resourceId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearDemographic()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getAmountMetadata()
mandatory
- This method must be implemented. void setAmount(CurrencyRangeTerm[] amount)
amount
- the new amountInvalidArgumentException
- amount
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearAmount()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getRecurringIntervalMetadata()
mandatory
- This method must be implemented. void setRecurringInterval(Duration interval)
interval
- the new recurring intervalInvalidArgumentException
- interval
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearRecurringInterval()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. PriceFormRecord getPriceFormRecord(Type priceRecordType) throws OperationFailedException
PriceFormRecord
corresponding to the given
price record Type.
priceRecordType
- the price record typeNullArgumentException
- priceRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(priceRecordType)
is false
mandatory
- This method must be implemented.