Interface ControllerForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, Suppliable
- All Known Subinterfaces:
ControllerBatchForm
This is the form for creating and updating Controllers . Like
all OsidForm objects, various data elements may be set here for
use in the create and update methods in the ControllerAdminSession
. For each data element that may be set, metadata may be examined to
provide display hints or data constraints. Some data may be automatically
derived from the controller segments.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the address.voidRemoves the discreet states.voidRemoves the model.voidRemoves the toggle.voidRemoves the variable flag.voidRemoves the maximum variable amount.voidRemoves the minimum variable amount.voidRemoves the variable by percentage flag.voidRemoves the version.Gets the metadata for the address.getControllerFormRecord(Type controllerRecordType) Gets theControllerFormRecordcorresponding to the given controller recordType.Gets the metadata for the discreet states.Gets the metadata for the model.Gets the metadata for the toggle capability.Gets the metadata for the variable by percentage capability.Gets the metadata for the maximum variable amount.Gets the metadata for the variable capability.Gets the metadata for the minimum variable amount.Gets the metadata for the version.voidsetAddress(String address) Sets the address.voidsetDiscreetStates(Id[] stateIds) Sets the maximum variable amount.voidSets the model.voidsetToggleable(boolean toggle) Sets the toggleable capability.voidsetVariable(boolean variable) Sets the variable capability.voidsetVariableMaximum(BigDecimal amount) Sets the maximum variable amount.voidsetVariableMinimum(BigDecimal amount) Sets the minimum variable amount.voidsetVariablePercentage(boolean percentage) Sets the variable bt percentage capability.voidsetVersion(Version version) Sets the version.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesModifier and TypeMethodDescriptionGets the minimum required record types for successful submission of thisOsidForm.Methods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleModifier and TypeMethodDescriptionGets a default locale for the form.Metadata[]Gets a list of metadata for the elements in this form which are not valid.Gets the metadata for the comment corresponding to this form submission.Gets the locales available for this form.Gets text messages corresponding to additional instructions to pass form validation.booleanTests if this form is for an update operation.booleanisValid()Tests if this form is in a valid state for submission.voidsetJournalComment(String comment) Sets a comment.voidSpecifies a language and script type for the form.Methods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeModifier and TypeMethodDescriptionvoidClears the description.voidClears the display name.voidClears the genus type.Gets the metadata for a description.Gets the metadata for a display name.Gets the metadata for a genus type.voidsetDescription(String description) Sets a description.voidsetDisplayName(String displayName) Sets a display name.voidsetGenusType(Type genusType) Sets a genus.Methods inherited from interface OsidOperableForm
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledModifier and TypeMethodDescriptionvoidRemoves the administratively disabled flag.voidRemoves the administratively enabled flag.Gets the metadata for the disabled flag.Gets the metadata for the enabled flag.voidsetDisabled(boolean disabled) Sets the administratively disabled flag.voidsetEnabled(boolean enabled) Sets the administratively enabled flag.
-
Method Details
-
getAddressMetadata
Metadata getAddressMetadata()Gets the metadata for the address.- Returns:
- metadata for the address
- Compliance:
mandatory- This method must be implemented.
-
setAddress
Sets the address.- Parameters:
address- the new address- Throws:
InvalidArgumentException-addressis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-addressisnull- Compliance:
mandatory- This method must be implemented.
-
clearAddress
void clearAddress()Removes the address.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getModelMetadata
Metadata getModelMetadata()Gets the metadata for the model.- Returns:
- metadata for the model
- Compliance:
mandatory- This method must be implemented.
-
setModel
Sets the model.- Parameters:
modelId- the new model- Throws:
InvalidArgumentException-modelIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-modelIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearModel
void clearModel()Removes the model.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getVersionMetadata
Metadata getVersionMetadata()Gets the metadata for the version.- Returns:
- metadata for the version
- Compliance:
mandatory- This method must be implemented.
-
setVersion
Sets the version.- Parameters:
version- the new version- Throws:
InvalidArgumentException-versionis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-versionisnull- Compliance:
mandatory- This method must be implemented.
-
clearVersion
void clearVersion()Removes the version.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getToggleableMetadata
Metadata getToggleableMetadata()Gets the metadata for the toggle capability.- Returns:
- metadata for the toggle
- Compliance:
mandatory- This method must be implemented.
-
setToggleable
void setToggleable(boolean toggle) Sets the toggleable capability.- Parameters:
toggle- the new toggle flag- Throws:
InvalidArgumentException-toggleis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearToggleable
void clearToggleable()Removes the toggle.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getVariableMetadata
Metadata getVariableMetadata()Gets the metadata for the variable capability.- Returns:
- metadata for the variable
- Compliance:
mandatory- This method must be implemented.
-
setVariable
void setVariable(boolean variable) Sets the variable capability.- Parameters:
variable- the new variable flag- Throws:
InvalidArgumentException-variableis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearVariable
void clearVariable()Removes the variable flag.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getVariableByPercentageMetadata
Metadata getVariableByPercentageMetadata()Gets the metadata for the variable by percentage capability.- Returns:
- metadata for the percentage
- Compliance:
mandatory- This method must be implemented.
-
setVariablePercentage
void setVariablePercentage(boolean percentage) Sets the variable bt percentage capability.- Parameters:
percentage- the new percentage flag- Throws:
InvalidArgumentException-percentageis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearVariablePercentage
void clearVariablePercentage()Removes the variable by percentage flag.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getVariableMinimumMetadata
Metadata getVariableMinimumMetadata()Gets the metadata for the minimum variable amount.- Returns:
- metadata for the minimum variable amount
- Compliance:
mandatory- This method must be implemented.
-
setVariableMinimum
Sets the minimum variable amount.- Parameters:
amount- the new minimum variable amount- Throws:
InvalidArgumentException-amountis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-amountisnull- Compliance:
mandatory- This method must be implemented.
-
clearVariableMinimum
void clearVariableMinimum()Removes the minimum variable amount.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getVariableMaximumMetadata
Metadata getVariableMaximumMetadata()Gets the metadata for the maximum variable amount.- Returns:
- metadata for the maximum variable amount
- Compliance:
mandatory- This method must be implemented.
-
setVariableMaximum
Sets the maximum variable amount.- Parameters:
amount- the new maximum variable amount- Throws:
InvalidArgumentException-amountis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-amountisnull- Compliance:
mandatory- This method must be implemented.
-
clearVariableMaximum
void clearVariableMaximum()Removes the maximum variable amount.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getDiscreetStatesMetadata
Metadata getDiscreetStatesMetadata()Gets the metadata for the discreet states.- Returns:
- metadata for the discreet states
- Compliance:
mandatory- This method must be implemented.
-
setDiscreetStates
Sets the maximum variable amount.- Parameters:
stateIds- the new discreet states- Throws:
InvalidArgumentException-stateIdsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-stateIdsisnull- Compliance:
mandatory- This method must be implemented.
-
clearDiscreetStates
void clearDiscreetStates()Removes the discreet states.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getControllerFormRecord
ControllerFormRecord getControllerFormRecord(Type controllerRecordType) throws OperationFailedException Gets theControllerFormRecordcorresponding to the given controller recordType.- Parameters:
controllerRecordType- a controller record type- Returns:
- the controller form record
- Throws:
NullArgumentException-controllerRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(controllerRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-