Interface PriceEnablerForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidEnablerForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidRuleForm, OsidTemporalForm, Suppliable
This is the form for creating and updating PriceEnablers. Like
all OsidForm objects, various data elements may be set here for
use in the create and update methods in the
PriceEnablerAdminSession. For each data element that may be set, metadata
may be examined to provide display hints or data constraints.
Like all OsidForms, PriceEnablerForm is stateful and
must not be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the maximum quantity.voidClears the minimum quantity.Gets the metadata for the minimum quantity.Gets the metadata for the minimum quantity.getPriceEnablerFormRecord(Type priceEnablerRecordType) Gets thePriceEnablerFormRecordcorresponding to the given price enabler recordType.voidsetMaximumQuantity(long minQuantity) Sets the maximum quantity.voidsetMinimumQuantity(long minQuantity) Sets the minimum quantity.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidEnablerForm
clearCyclicEvent, clearCyclicTimePeriod, clearEvent, clearRequirement, clearSchedule, clearTimePeriod, getCyclicEventMetadata, getCyclicTimePeriodPeriodMetadata, getEventMetadata, getRequirementMetadata, getScheduleMetadata, getTimePeriodPeriodMetadata, setCyclicEvent, setCyclicTimePeriod, setEvent, setRequirement, setSchedule, setTimePeriodMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesMethods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleMethods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeMethods inherited from interface OsidOperableForm
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledMethods inherited from interface OsidRuleForm
clearConditionRecordTypes, clearRule, getConditionRecordTypesMetadata, getRuleMetadata, setConditionRecordTypes, setRuleMethods inherited from interface OsidTemporalForm
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
-
Method Details
-
getMinQuantityMetadata
Metadata getMinQuantityMetadata()Gets the metadata for the minimum quantity.- Returns:
- metadata for the minumim quantity
- Compliance:
mandatory- This method must be implemented.
-
setMinimumQuantity
void setMinimumQuantity(long minQuantity) Sets the minimum quantity.- Parameters:
minQuantity- the new minumim quantity- Throws:
InvalidArgumentException-minQuantityis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearMinimumQuantity
void clearMinimumQuantity()Clears the minimum quantity.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getMaxQuantityMetadata
Metadata getMaxQuantityMetadata()Gets the metadata for the minimum quantity.- Returns:
- metadata for the maximum quantity
- Compliance:
mandatory- This method must be implemented.
-
setMaximumQuantity
void setMaximumQuantity(long minQuantity) Sets the maximum quantity.- Parameters:
minQuantity- the new maximum quantity- Throws:
InvalidArgumentException-maxQuantityis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearMaximumQuantity
void clearMaximumQuantity()Clears the maximum quantity.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getPriceEnablerFormRecord
PriceEnablerFormRecord getPriceEnablerFormRecord(Type priceEnablerRecordType) throws OperationFailedException Gets thePriceEnablerFormRecordcorresponding to the given price enabler recordType.- Parameters:
priceEnablerRecordType- a price enabler record type- Returns:
- the price enabler form record
- Throws:
NullArgumentException-priceEnablerRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(priceEnablerRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-